-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathaglint-all.ts
More file actions
28 lines (24 loc) · 840 Bytes
/
aglint-all.ts
File metadata and controls
28 lines (24 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
* @file Configuration preset for AGLint that enables all rules.
*/
import { AdblockSyntax } from '@adguard/agtree';
import { type LinterConfig } from '../common';
const config: LinterConfig = {
syntax: [AdblockSyntax.Common],
rules: {
'no-invalid-css-syntax': 'error',
'no-invalid-css-declaration': 'error',
'duplicated-hint-platforms': 'error',
'duplicated-hints': 'error',
'duplicated-modifiers': 'error',
'if-closed': 'error',
'inconsistent-hint-platforms': 'error',
'invalid-domain-list': 'error',
'single-selector': 'warn',
'invalid-modifiers': 'error',
'unknown-hints-and-platforms': 'error',
'unknown-preprocessor-directives': 'error',
'no-short-rules': 'error',
},
};
export default Object.freeze(config);