-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
54 lines (53 loc) · 1.49 KB
/
Copy path.eslintrc.js
File metadata and controls
54 lines (53 loc) · 1.49 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
module.exports = {
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"prettier",
"import",
"module-resolver"
],
"extends": [
"airbnb",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:react/recommended",
"plugin:import/recommended",
"prettier",
"prettier/@typescript-eslint",
"prettier/react"
],
"env": {
"browser": true,
"jasmine": true,
"jest": true
},
"rules": {
"prettier/prettier": ["error"],
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-use-before-define": 0,
"no-use-before-define": 0,
"@typescript-eslint/indent": ["error", 2],
"max-len": ["error", 150],
"react/jsx-filename-extension": [1, { "extensions": [".jsx", ".tsx"] }],
"object-curly-newline": ["error", { "ImportDeclaration": "never" }],
"@typescript-eslint/interface-name-prefix": 0,
"class-methods-use-this": 0,
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_[0-9]?" }],
"react/display-name": 0,
"react/prop-types": 0, // not necessary as we use typescript
"object-curly-newline": 0,
},
"settings": {
"import/resolver": {
"babel-module": {},
"typescript": {}
}
},
"globals": {
"__DEV__": true
}
}