-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
52 lines (50 loc) · 1.75 KB
/
.eslintrc.json
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
{
"extends": ["@pixi/eslint-config"],
"plugins": ["import", "simple-import-sort"],
"ignorePatterns": ["**/*.index.d.ts", "**/*.js"],
"settings": {
"jsdoc": {
"mode": "typescript",
"tagNamePreference": {
"method": "method",
"function": "function",
"extends": "extends",
"typeParam": "typeParam",
"api": "api"
}
}
},
"rules": {
"@typescript-eslint/no-non-null-assertion": 0,
"no-multi-spaces": [1, { "exceptions": {} }],
"object-curly-newline": [1, { "multiline": true, "consistent": true }],
// Imports and Exports
"import/first": 1,
"import/newline-after-import": 1,
"simple-import-sort/imports": [1, {
"groups": [
[
"^\\w", // External
"^\\u0000", // External side effect
"^@pixi/", // @pixi/*
"^\\u0000@pixi/", // @pixi/* side effect
"^\\.", // Relative
"^\\u0000\\.", // Relative side effect
"^" // Others
],
[
"^\\w.*\\u0000$", // External types
"^@pixi/.*\\u0000$", // @pixi/* types
"^\\..*\\u0000$", // Relative types
"\\u0000$" // Other types
]
]
}],
"simple-import-sort/exports": 1,
"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
}
}