Skip to content

Commit 25b4c68

Browse files
author
Micah Riggan
committed
Adding editorconfig and eslint files
1 parent 1d2743f commit 25b4c68

File tree

5 files changed

+252
-1
lines changed

5 files changed

+252
-1
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# EditorConfig helps developers define and maintain consistent
3+
# coding styles between different editors and IDEs
4+
# http://editorconfig.org
5+
6+
root = true
7+
8+
[*]
9+
indent_style = space
10+
indent_size = 2
11+
end_of_line = lf
12+
charset = utf-8
13+
trim_trailing_whitespace = true
14+
insert_final_newline = true

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*node_modules

.eslintrc.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parserOptions": {
3+
"ecmaVersion": 2017
4+
},
5+
"env": {
6+
"es6": true,
7+
"node": true
8+
},
9+
"extends": "eslint:recommended",
10+
"rules": {
11+
"linebreak-style": [
12+
"error",
13+
"unix"
14+
],
15+
"quotes": [
16+
"error",
17+
"single"
18+
],
19+
"semi": [
20+
"error",
21+
"always"
22+
]
23+
}
24+
}
25+

package-lock.json

Lines changed: 209 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
"postinstall": "./node_modules/.bin/lerna bootstrap"
1010
},
1111
"devDependencies": {
12-
"lerna": "^2.9.1"
12+
"lerna": "^2.9.1",
13+
"eslint-config-airbnb-base": "^12.1.0",
14+
"eslint-plugin-import": "^2.8.0"
1315
}
1416
}

0 commit comments

Comments
 (0)