Skip to content

Commit 862624a

Browse files
committed
Add .eslintrc for example
1 parent 1ec070a commit 862624a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

examples/.eslintrc

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"extends": "airbnb",
3+
"parser": "babel-eslint",
4+
"rules": {
5+
// max length
6+
"max-len": [2, 120, 2],
7+
// validate JSDoc
8+
"valid-jsdoc": 2,
9+
// disable requirement to use initial caps for constructors
10+
"new-cap": 0,
11+
// 2 space indent
12+
"indent": [2, 2, {"SwitchCase": 1}],
13+
// disable limit length for identifiers
14+
"id-length": 0,
15+
// disable jsx-no-bind
16+
"react/jsx-no-bind": 0,
17+
// disable no-console
18+
"no-console": 0,
19+
}
20+
}

0 commit comments

Comments
 (0)