Skip to content

Commit 258213d

Browse files
committed
Added eslint and editorconfig configs.
1 parent 4732cf2 commit 258213d

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
max_line_length = 80
11+
12+
[docs/CHANGES.txt]
13+
indent_style = space
14+
indent_size = 2

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*.md
2+
LICENSE
3+
package.json
4+
package-lock.json
5+
/docs/**

.eslintrc.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"env": {
3+
"browser": false,
4+
"mocha": true,
5+
"node": true,
6+
"es6": true
7+
},
8+
"extends": "eslint:recommended",
9+
"rules": {
10+
"no-console": 0,
11+
"no-unused-vars": 0,
12+
"indent": [
13+
"error",
14+
4,
15+
{"SwitchCase": 1}
16+
],
17+
"linebreak-style": [
18+
"error",
19+
"unix"
20+
],
21+
"quotes": [
22+
2, "single", "avoid-escape"
23+
],
24+
"semi": [
25+
"error",
26+
"always"
27+
],
28+
"space-before-function-paren": ["error", "never"]
29+
}
30+
}

0 commit comments

Comments
 (0)