-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.yml
40 lines (40 loc) · 962 Bytes
/
.eslintrc.yml
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
extends:
- eslint:recommended
- plugin:react/recommended
parserOptions:
sourceType: "module"
ecmaVersion: 7
ecmaFeatures:
jsx: true
arrowFunctions: true
blockBindings: true
defaultParams: true
destructuring: true
forOf: true
generators: true
modules: true
spread: true
templateStrings: true
env:
browser: true
es6: true
node: true
rules:
react/no-multi-comp: off
react/jsx-indent-props: [2, 4]
object-curly-spacing: ["error", "never"]
object-shorthand: off
no-unused-vars: ["error", {"argsIgnorePattern": "_$", "varsIgnorePattern": "_$"}]
indent: ["off", 4, {"VariableDeclarator": 1}]
quotes: [0]
key-spacing: [0]
new-cap: [0]
no-console: ["error", {"allow": ["warn", "error"]}]
no-multi-spaces: [0]
no-shadow: [0]
no-use-before-define: [2, "nofunc"]
eqeqeq: [1]
comma-dangle: ["error", "always-multiline"]
space-before-function-paren: ["error", "never"]
plugins:
- react