-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
43 lines (43 loc) · 1.04 KB
/
.eslintrc.json
File metadata and controls
43 lines (43 loc) · 1.04 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
{
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"env": {
"es6": true,
"browser": true,
"node": true,
"jest/globals": true
},
"settings": {
"react": {
"version": "detect"
}
},
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
},
"sourceType": "module"
},
"parser": "babel-eslint",
"plugins": ["react", "jest"],
"rules": {
"no-var": "error",
"prefer-const": "error",
"no-console": "off",
"quotes": ["error", "double", {"allowTemplateLiterals": true}],
"semi": ["error", "always"],
"comma-dangle": ["error", "only-multiline"],
"max-len": ["error", 120],
"key-spacing": ["error"],
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"react/jsx-filename-extension": "error",
"react/jsx-uses-react": "error",
"react/react-in-jsx-scope": "error",
"react/jsx-uses-vars": "error",
"react/prop-types": "error"
}
}