forked from rdkcentral/Lightning-UI-Components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
39 lines (39 loc) · 1.16 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
{
"extends": ["react-app", "plugin:jsx-a11y/recommended", "prettier"],
"settings": {
"react": {
"version": "detect"
}
},
"plugins": ["jsx-a11y", "prettier"],
"rules": {
"prettier/prettier": ["error"],
"arrow-parens": ["error", "as-needed"],
"indent": ["error", 2, { "VariableDeclarator": 2, "SwitchCase": 1 }],
"max-len": [
"error",
{
"code": 80,
"ignoreComments": true,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreUrls": true
}
],
"no-console": ["warn", { "allow": ["warn", "info", "time", "timeEnd"] }],
"no-debugger": ["error"],
"no-else-return": ["error"],
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-undef": ["error"],
"object-curly-spacing": ["error", "always"],
"prefer-destructuring": ["warn", { "object": true, "array": false }],
"require-jsdoc": ["off"],
"quote-props": ["error", "as-needed"],
"valid-jsdoc": ["off"],
"react/jsx-uses-react": ["error"],
"react/jsx-uses-vars": ["error"],
"jsx-a11y/label-has-for": ["off"],
"semi": [2, "always"]
}
}