-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy path.eslintrc
More file actions
79 lines (75 loc) · 2.36 KB
/
.eslintrc
File metadata and controls
79 lines (75 loc) · 2.36 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import"],
"extends": ["airbnb"],
"ignorePatterns": [
"node_modules",
"dist",
"packages/api/types.ts"
],
"env":{
"browser": true,
"node": true,
"jasmine": true
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"ts": {
"alwaysTryTypes": true // always try to resolve types under `<roo/>@types` directory even it doesn't contain any source code, like `@types/unist`
},
"node": {
"extensions": [".ts", ".tsx"]
}
}
},
"rules": {
"import/no-unresolved": "error",
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": 0,
"import/extensions": 0,
"import-name": 0,
"no-unused-vars": ["error", {
"argsIgnorePattern": "^_",
"args": "after-used",
"ignoreRestSiblings": true
}],
"@typescript-eslint/no-unused-vars": ["error"],
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": 2,
"array-bracket-spacing": ["error", "never"],
"arrow-parens": ["error", "as-needed"],
"class-methods-use-this": 0,
"comma-dangle": ["error", "never"],
"computed-property-spacing": ["error", "never"],
"consistent-return": 0,
"implicit-arrow-linebreak": 0,
"import/no-cycle": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/label-has-associated-control": 0,
"jsx-a11y/no-static-element-interactions": 0,
"linebreak-style": 0,
"max-classes-per-file": 0, // Leads to too many files
"no-empty-function": ["error", {"allow": ["constructors"]}], // Needed by NestJS dep injection
"no-empty": [2, {
"allowEmptyCatch": true
}],
"no-underscore-dangle": 0,
"no-useless-constructor": 0, // Needed by NestJS dep injection
"object-curly-newline": 0,
"object-curly-spacing": ["error", "always"],
"padded-blocks": 0,
"react/jsx-closing-tag-location": 0,
"react/jsx-curly-newline": 0,
"react/jsx-filename-extension": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-wrap-multilines": [0, "never"],
"react/prop-types": 0, // Typescript handles this,
"react/static-property-placement": 0,
"no-nested-ternary": 0,
"no-case-declarations": 0
}
}