Skip to content

Commit 755889e

Browse files
committed
style: configure eslint
1 parent 0ecf99e commit 755889e

File tree

3 files changed

+1876
-76
lines changed

3 files changed

+1876
-76
lines changed

.eslintrc.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"extends": [
4+
"airbnb-typescript/base",
5+
"plugin:@typescript-eslint/recommended"
6+
],
7+
"parserOptions": {
8+
"project": "./tsconfig.json"
9+
},
10+
"rules": {
11+
"quotes": ["error", "single"],
12+
"no-multiple-empty-lines": [2, { "max": 2, "maxEOF": 1 } ],
13+
"max-len": ["error", { "code": 120 }],
14+
"arrow-parens": [2, "as-needed"],
15+
"comma-dangle": ["error", "never"],
16+
"import/extensions": ["error", { "ts": "never" }],
17+
"arrow-body-style": 0,
18+
"no-underscore-dangle": 0,
19+
"no-cond-assign": 0,
20+
"linebreak-style": 0
21+
}
22+
}

0 commit comments

Comments
 (0)