forked from unbxd/react-search-JS-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
33 lines (33 loc) · 1.09 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
{
"extends": ["airbnb", "eslint:recommended","prettier/react","prettier"],
"plugins": ["prettier"],
"env": {
"browser": true,
"node": true
},
"rules": {
"prettier/prettier": "error",
"no-unused-vars": "warn",
"object-shorthand": "off",
"function-call-argument-newline": ["error", "always"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-one-expression-per-line": [0],
"jsx-a11y/no-static-element-interactions": [
"error",
{
"handlers": [
"onClick",
"onMouseDown",
"onMouseUp",
"onKeyPress",
"onKeyDown",
"onKeyUp"
]
}
],
"dot-notation":[0],
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "optionalDependencies": false, "peerDependencies": false}],
"quotes": [2, "single", "avoid-escape"],
"radix": ["error", "as-needed"]
}
}