-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
42 lines (41 loc) · 1.09 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
{
"parser": "babel-eslint",
"env": {
"es6": true,
"jest": true,
"browser": true
},
parserOptions: {
"ecmaVersion": 2017,
"sourceType": "module",
ecmaFeatures: {
jsx: true
}
},
"extends": ["xo/esnext", "prettier", "prettier/flowtype", "prettier/react"],
"plugins": ["import", "react", "jsx-a11y", "flowtype", "prettier"],
"rules": {
"max-len": ["error", 80, {
"ignoreStrings": true,
"ignoreRegExpLiterals": true
}],
"curly": "error",
"indent": ["error", 2, {"SwitchCase": 1}],
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": "off",
"import/newline-after-import": "error",
"capitalized-comments": "off",
"camelcase": "off",
"flowtype/define-flow-type": "error",
"flowtype/use-flow-type": "error",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/jsx-closing-bracket-location": "error",
"prettier/prettier": ["warn", {
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false,
"jsxBracketSameLine": false
}]
}
}