This repository has been archived by the owner on May 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
50 lines (50 loc) · 1.67 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
{
"extends": [
"react-app",
"airbnb",
"plugin:jsx-a11y/recommended",
"prettier",
"prettier/react"
],
"plugins": [
"jsx-a11y",
"prettier"
],
"ignorePatterns": ["node_modules/", "build/"],
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"semi": ["error", "always"],
"indent": ["warn", 2, {"SwitchCase": 1}],
"quotes": "warn",
"jsx-quotes": ["warn", "prefer-single"],
"react/no-typos": "warn",
"camelcase": "warn",
"no-console": ["warn", {"allow": ["warn", "error"]}],
"max-lines": ["warn", 600],
"arrow-body-style": ["error", "as-needed"],
"no-param-reassign": ["error", { "props": false }],
"no-underscore-dangle": "off",
"no-restricted-syntax": "off",
"react/no-array-index-key": "off",
"import/prefer-default-export": "off",
"react/jsx-indent": [2, 2, {"indentLogicalExpressions": true}],
"react/jsx-indent-props": [2, "first"],
"react/jsx-first-prop-new-line": ["warn", "multiline"],
"react/jsx-closing-bracket-location": ["warn", "tag-aligned"],
"react/jsx-no-bind": "error",
"react/sort-comp": "warn",
"react/prop-types": ["error", {"ignore": ["classes", "match", "theme", "ref"]}],
"react/jsx-props-no-spreading": "off",
"import/no-cycle": "off",
"object-curly-spacing": ["warn", "never"],
"template-curly-spacing": ["warn", "never"],
"react/jsx-tag-spacing": ["warn", {
"closingSlash": "never",
"beforeSelfClosing": "never",
"afterOpening": "never",
"beforeClosing": "never"
}],
"lines-between-class-members": "off",
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }]
}
}