Skip to content

Commit 322efb0

Browse files
committed
Add eslint configuration with precommit npm hook
1 parent eab86f2 commit 322efb0

File tree

4 files changed

+2050
-3
lines changed

4 files changed

+2050
-3
lines changed

.eslintrc.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"env": {
3+
"es6": true,
4+
"node": true
5+
},
6+
"extends": ["airbnb-base"],
7+
"globals": {
8+
"Atomics": "readonly",
9+
"SharedArrayBuffer": "readonly"
10+
},
11+
"parser": "@typescript-eslint/parser",
12+
"parserOptions": {
13+
"ecmaVersion": 2018,
14+
"sourceType": "module"
15+
},
16+
"plugins": ["@typescript-eslint"],
17+
"rules": {
18+
"arrow-body-style": 0,
19+
"arrow-parens": [2, "as-needed", { "requireForBlockBody": true }],
20+
"comma-dangle": [2, "always-multiline"],
21+
"import/prefer-default-export": 0,
22+
"max-len": ["error", {
23+
"code": 120,
24+
"comments": 120,
25+
"ignoreComments": false,
26+
"tabWidth": 2
27+
}],
28+
"no-confusing-arrow": 0,
29+
"no-underscore-dangle": ["error", { "allow": ["__typename"] }],
30+
"semi": [2, "never"]
31+
}
32+
}

0 commit comments

Comments
 (0)