Skip to content

Commit cbde752

Browse files
committed
added eslint & editorconfig
1 parent c7782fc commit cbde752

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

.editorconfig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
max_line_length = 100
10+
trim_trailing_whitespace = true
11+
12+
[*.md]
13+
max_line_length = 0
14+
trim_trailing_whitespace = false
15+
16+
[COMMIT_EDITMSG]
17+
max_line_length = 0

.eslintrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "airbnb",
3+
"rules": {
4+
"no-underscore-dangle": [2, { "allow": ["_id", "_json"] }]
5+
},
6+
"settings": {
7+
"import/resolver": {
8+
"babel-root-import": {}
9+
}
10+
}
11+
}

package.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"start": "npm run start-dev",
88
"start-dev": "better-npm-run start-dev",
99
"test": "better-npm-run test",
10-
"coverage": "better-npm-run coverage"
10+
"coverage": "better-npm-run coverage",
11+
"lint": "eslint ."
1112
},
1213
"betterScripts": {
1314
"start-dev": {
@@ -67,6 +68,12 @@
6768
"babel-core": "^6.17.0",
6869
"babel-preset-es2015": "^6.16.0",
6970
"chai": "^3.5.0",
71+
"eslint": "^3.12.2",
72+
"eslint-config-airbnb": "^13.0.0",
73+
"eslint-import-resolver-babel-root-import": "0.0.2",
74+
"eslint-plugin-import": "^2.2.0",
75+
"eslint-plugin-jsx-a11y": "^2.2.3",
76+
"eslint-plugin-react": "^6.8.0",
7077
"istanbul": "1.1.0-alpha.1",
7178
"mocha": "^3.1.0",
7279
"mockgoose": "^6.0.8",

0 commit comments

Comments
 (0)