-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
80 lines (80 loc) · 2.13 KB
/
Copy path.eslintrc.js
File metadata and controls
80 lines (80 loc) · 2.13 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
80
module.exports = {
//'parser': 'babel-eslint',
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"process": "readonly",
"require": "readonly",
"__DEV__": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint",
"eslint-plugin-import-helpers"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-unused-vars": "error",
"react/display-name": "off",
"no-unused-vars": 'off',
"key-spacing": "error",
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "never"],
'no-use-before-define': 'off',
'react/jsx-filename-extension': 'off',
'react/prop-types': 'off',
'comma-dangle': 'off',
"linebreak-style": 'off',
"react/jsx-indent": ["error", 'tab'],
"jsx-quotes": ["error", "prefer-single"],
//"indent": ["error", "tab", { "SwitchCase": 1 }],
"no-tabs": 0,
"arrow-body-style": 0,
"semi": 0,
"arrow-parens": 0,
"eol-last": 0,
"arrow-spacing": 0,
"react/no-array-index-key": 0,
"react/jsx-indent-props": ["error", 'tab'],
"camelcase": ["error", { "ignoreDestructuring": false }],
"max-len": 0,
"no-param-reassign": ["error", { "props": false }],
"import/prefer-default-export": 0,
"no-trailing-spaces": ['error', { skipBlankLines: true, ignoreComments: true }],
"object-curly-newline": ["error", { multiline: true, consistent: true }],
"switch-colon-spacing": ["error", { "after": true, "before": false }],
"react/jsx-props-no-spreading": 0,
"import-helpers/order-imports": [
"warn",
{
"newlinesBetween": "always", // new line between groups
"groups": [
"/^react/",
"module",
"/components/",
["parent", "sibling", "index"],
"/\/graphql\//"
],
"alphabetize": { "order": "asc", "ignoreCase": true }
}
]
}
};