forked from pixijs/assetpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
44 lines (44 loc) · 1.44 KB
/
.eslintrc.js
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
module.exports = {
extends: ['@pixi/eslint-config'],
parserOptions: {
project: ['./tsconfig.eslint.json', './packages/*/tsconfig.json'],
tsconfigRootDir: __dirname
},
settings: {
jsdoc: {
mode: 'typescript',
tagNamePreference: {
method: 'method',
function: 'function',
extends: 'extends',
typeParam: 'typeParam',
api: 'api'
}
}
},
rules: {
'spaced-comment': [1, 'always', { markers: ['/'] }],
'@typescript-eslint/triple-slash-reference': [1, { path: 'always' }],
'@typescript-eslint/consistent-type-imports': [1, { disallowTypeAnnotations: false }],
'@typescript-eslint/no-parameter-properties': 1,
'@typescript-eslint/type-annotation-spacing': 1,
"@typescript-eslint/no-non-null-assertion": 0,
},
overrides: [
{
files: ['*.tests.ts', '*.test.ts'],
rules: {
'@typescript-eslint/no-unused-expressions': 0,
'@typescript-eslint/dot-notation': [
0,
{
allowPrivateClassPropertyAccess: true,
allowProtectedClassPropertyAccess: true,
allowIndexSignaturePropertyAccess: true
}
],
'dot-notation': 0
}
}
]
};