Skip to content

Commit a400e32

Browse files
lcustodiodanilowoz
authored andcommitted
style(eslint-fixes): change eslint to standard and fix warnings (#18)
This PR is just a proposition in order to enhance the code practices. * Eslint configuration changes from 4 to 2. * Fix warnings about missing `;`.
1 parent 3bc4a1a commit a400e32

File tree

5 files changed

+237
-329
lines changed

5 files changed

+237
-329
lines changed

.eslintrc

Lines changed: 16 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,17 @@
11
{
2-
"parser": "babel-eslint",
3-
"env": {
4-
"browser": true,
5-
"node": true,
6-
"es6": true
7-
},
8-
"ecmaFeatures": {
9-
"modules": true
10-
},
11-
"rules": {
12-
"no-bitwise": 2,
13-
"no-else-return": 2,
14-
"no-eq-null": 2,
15-
"no-extra-parens": 0,
16-
"no-floating-decimal": 2,
17-
"no-inner-declarations": [2, "both"],
18-
"no-lonely-if": 2,
19-
"no-multiple-empty-lines": [2, {"max": 3}],
20-
"no-self-compare": 2,
21-
"no-underscore-dangle": 0,
22-
"no-use-before-define": 0,
23-
"no-unused-expressions": 0,
24-
"no-void": 2,
25-
"brace-style": [2, "1tbs"],
26-
"camelcase": [1, {"properties": "never"}],
27-
"consistent-return": 0,
28-
"comma-style": [2, "last"],
29-
"complexity": [1, 12],
30-
"func-names": 0,
31-
"guard-for-in": 2,
32-
"indent": [2, 4],
33-
"max-len": [0, 120, 4],
34-
"new-cap": [2, {"newIsCap": true, "capIsNew": false}],
35-
"quotes": [2, "single"],
36-
"keyword-spacing": [2, {"before": true, "after": true}],
37-
"space-before-blocks": [2, "always"],
38-
"array-bracket-spacing": [2, "never"],
39-
"space-in-parens": [2, "never"],
40-
"strict": [0],
41-
"valid-jsdoc": 2,
42-
"wrap-iife": [2, "any"],
43-
"yoda": [1, "never"]
44-
},
45-
"plugins": [
46-
"react"
47-
],
48-
"globals": {
49-
50-
}
51-
}
2+
"parser": "babel-eslint",
3+
"env": {
4+
"browser": true,
5+
"node": true,
6+
"es6": true
7+
},
8+
"ecmaFeatures": {
9+
"modules": true
10+
},
11+
"extends": [
12+
"prettier"
13+
],
14+
"plugins": [
15+
"prettier"
16+
]
17+
}

.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"printWidth": 100,
3+
"tabWidth": 2,
4+
"singleQuote": true,
5+
"trailingComma": "es5",
6+
"bracketSpacing": true,
7+
"jsxBracketSameLine": false,
8+
"parser": "babylon",
9+
"semi": false
10+
}

0 commit comments

Comments
 (0)