forked from snabbdom/snabbdom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
45 lines (45 loc) · 1.33 KB
/
.eslintrc.cjs
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
module.exports = {
extends: 'standard-with-typescript',
parserOptions: {
project: [
'./src/package/tsconfig.json',
'./src/test/tsconfig.json',
]
},
plugins: [
'markdown',
],
overrides: [
{
files: ['**/*.md'],
processor: 'markdown/markdown'
},
{
files: ['**/*.md/*.@(mjs|ts)'],
rules: {
'no-undef': 'off',
'no-unused-expressions': 'off',
'no-unused-vars': 'off',
},
}
],
rules: {
'import/newline-after-import': 'error',
'max-statements-per-line': 'error',
'no-var': 'error',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/prefer-optional-chain': 'off',
'@typescript-eslint/prefer-includes': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/no-dynamic-delete': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/method-signature-style': 'off',
'comma-dangle': ['error', 'only-multiline'],
'no-mixed-operators': 'off',
}
}