Skip to content

Commit 0c2f70f

Browse files
committed
feat: add max char length to eslint
1 parent 132fb15 commit 0c2f70f

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.eslintrc

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"parser": "babel-eslint",
33
"rules": {
4+
"max-len": [
5+
"error",
6+
{ "code": 80, "tabWidth": 2 }
7+
],
48
"indent": [
59
1,
610
2,
@@ -30,10 +34,12 @@
3034
"node": true
3135
},
3236
"globals": {
33-
'__BASE_URL__': true,
34-
expect: true
37+
"expect": true
3538
},
36-
"extends": "eslint:recommended",
39+
"extends": [
40+
"eslint:recommended",
41+
"plugin:react/recommended"
42+
],
3743
"parserOptions": {
3844
"sourceType": "module",
3945
"ecmaFeatures": {
@@ -43,6 +49,7 @@
4349
"ecmaVersion": 6
4450
},
4551
"plugins": [
46-
"react"
52+
"babel",
53+
"react"
4754
]
4855
}

0 commit comments

Comments
 (0)