-
-
Notifications
You must be signed in to change notification settings - Fork 180
/
.eslintrc.js
57 lines (57 loc) · 1.68 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
45
46
47
48
49
50
51
52
53
54
55
56
57
module.exports = {
root: true,
extends: ['@pixi/eslint-config'],
parserOptions: {
project: ['tsconfig.eslint.json'],
tsconfigRootDir: __dirname,
},
settings: {
jsdoc: {
mode: 'typescript',
tagNamePreference: {
method: 'method',
function: 'function',
extends: 'extends',
typeParam: 'typeParam',
api: 'api'
}
}
},
ignorePatterns: [
'dist',
'node_modules',
'packages/docs/build',
'packages/docs/docs',
'packages/*/index.d.ts',
'**/test/__fixtures__',
],
rules: {
'no-empty-function': 0,
'no-prototype-builtins': 0,
'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
},
overrides: [
{
files: ['**/test/**'],
rules: {
'@typescript-eslint/no-unused-expressions': 0,
'@typescript-eslint/dot-notation': [
0,
{
allowPrivateClassPropertyAccess: true,
allowProtectedClassPropertyAccess: true,
allowIndexSignaturePropertyAccess: true
}
],
'dot-notation': 0
},
env: {
jest: true
}
}
]
};