forked from data-driven-forms/react-forms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
92 lines (92 loc) · 2.42 KB
/
.eslintrc.json
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
81
82
83
84
85
86
87
88
89
90
91
92
{
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
}
},
"settings": {
"react": {
"version": "16.6"
}
},
"globals": {
"beforeAll": true,
"describe": true,
"expect": true,
"it": true,
"arguments": true
},
"plugins": ["react", "jest"],
"extends": ["react-app", "eslint:recommended", "plugin:react/recommended", "plugin:prettier/recommended", "prettier"],
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true
},
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/display-name": "off",
"comma-spacing": ["error", {
"after": true
}],
"comma-style": "error",
"camelcase": "error",
"curly": ["error", "all"],
"eol-last": "error",
"eqeqeq": "error",
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": ["warn", "unix"],
"new-cap": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-console": "warn",
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": ["error", {
"max": 1
}],
"no-trailing-spaces": "error",
"no-use-before-define": ["error", {
"functions": false
}],
"no-undef": "error",
"no-var": "error",
"no-with": "error",
"object-shorthand": "error",
"one-var": ["error", "never"],
"padding-line-between-statements": ["error", {
"blankLine": "always",
"prev": "block-like",
"next": "*"
}],
"quote-props": ["error", "as-needed"],
"quotes": ["error", "single", {
"allowTemplateLiterals": true
}],
"semi": ["error", "always"],
"space-in-parens": "error",
"space-infix-ops": "error",
"wrap-iife": "error",
"yoda": ["error", "never"],
"jsx-a11y/href-no-hash": "off",
"react/jsx-curly-spacing": "off",
"no-unused-vars": "error",
"react/no-unused-prop-types": "error",
"react-hooks/rules-of-hooks": "error",
"react/prop-types": "error",
"react/no-unescaped-entities": "error",
"no-prototype-builtins": "error",
"no-mixed-operators": "error",
"no-unused-expressions": "error",
"no-sequences": "error",
"react-hooks/exhaustive-deps": 0,
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error"
}
}