-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
64 lines (64 loc) · 1.87 KB
/
.eslintrc
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
{
"env": {
"browser": true,
"es6": true
},
"extends": ["airbnb", "plugin:prettier/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": false
}
},
"settings": {
"import/resolver": {
"typescript": {}, // use <root>/tsconfig.json
"node": { "extensions": [".ts", ".js", ".tsx", "json"] }
}
},
"rules": {
"arrow-parens": "off",
"camelcase": "off",
"class-methods-use-this": "off",
"consistent-return": "off",
"import/extensions": [
"error",
{ "js": "never", "ts": "never", "json": "always" }
],
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"lines-between-class-members": [
"error",
"always",
{ "exceptAfterSingleLine": true }
],
"no-nested-ternary": "off",
"max-len": "off",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-undef": "off",
"no-bitwise": "off",
"no-unused-vars": "off",
"import/no-duplicates": "off",
"no-restricted-globals": "off",
"prefer-promise-reject-errors": "off",
"no-underscore-dangle": "off",
"max-classes-per-file": "warn",
"prefer-object-spread": "warn",
"react/jsx-props-no-spreading": "off",
"react/jsx-filename-extension": "off",
"react/destructuring-assignment": "off",
"react/prop-types": "off",
"react/jsx-pascal-case": "off",
"react/jsx-wrap-multilines": "off",
"react/require-default-props": "off",
"react/no-unused-prop-types": "off",
"jsx-a11y/label-has-associated-control": "off",
"prettier/prettier": ["error", { "singleQuote": false }],
"no-use-before-define": "off",
"import/no-webpack-loader-syntax": "off"
},
"plugins": ["prettier", "import"]
}