-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
106 lines (106 loc) · 2.11 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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"env": {
"browser": true,
"node": true,
"es6": true
},
"rules": {
"func-names": 0,
"comma-dangle": [
2,
"never"
],
"no-console": 1,
"max-len": [
2,
100
],
"import/no-extraneous-dependencies": 0,
"no-param-reassign": 0,
"no-unneeded-ternary": 0,
"class-methods-use-this": 0,
"no-plusplus": 0,
"arrow-body-style": 0,
"arrow-parens": 0,
"no-lonely-if": 0,
"react/jsx-filename-extension": 0,
"no-nested-ternary": 0,
"no-mixed-spaces-and-tabs": 2,
"indent": [
"error",
"tab"
],
"no-irregular-whitespace": "error",
"no-trailing-spaces": "error",
"object-curly-newline": [
"error",
{
"ObjectExpression": {
"minProperties": 2
},
"ObjectPattern": {
"multiline": true
},
"ImportDeclaration": {
"multiline": true,
"minProperties": 5
},
"ExportDeclaration": {
"multiline": true,
"minProperties": 5
}
}
],
"object-curly-spacing": ["error", "always"],
"react/jsx-curly-spacing": [2, {"when": "always"}],
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
}
],
"no-unused-expressions": "error",
"no-unused-vars": 1,
"react/jsx-curly-newline": [
"error",
{
"multiline": "consistent",
"singleline": "consistent"
}
],
"react/prop-types": "off",
"react/jsx-one-expression-per-line": "error",
"quotes": ["error", "single"],
"react/display-name": 0
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"ignorePatterns": ["node_modules/", "dist/"],
"settings": {
"react": {
"createClass": "createReactClass",
"pragma": "React",
"version": "detect",
"flowVersion": "0.53"
},
"propWrapperFunctions": [
"forbidExtraProps",
{"property": "freeze", "object": "Object"},
{"property": "myFavoriteWrapper"}
],
"linkComponents": [
"Hyperlink",
{"name": "Link", "linkAttribute": "to"}
]
}
}