Skip to content

Commit a06f14c

Browse files
🏗️✨ Adopt ESLint for code linting
1 parent 69ef4ff commit a06f14c

File tree

3 files changed

+816
-0
lines changed

3 files changed

+816
-0
lines changed

.eslintrc.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"es6": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/eslint-recommended"
10+
],
11+
"globals": {
12+
"Atomics": "readonly",
13+
"SharedArrayBuffer": "readonly"
14+
},
15+
"parser": "@typescript-eslint/parser",
16+
"parserOptions": {
17+
"ecmaVersion": 2018,
18+
"sourceType": "module"
19+
},
20+
"plugins": [
21+
"@typescript-eslint"
22+
],
23+
"rules": {
24+
"indent": [
25+
"error",
26+
2
27+
],
28+
"linebreak-style": [
29+
"error",
30+
"unix"
31+
],
32+
"quotes": [
33+
"error",
34+
"single"
35+
],
36+
"semi": [
37+
"error",
38+
"always"
39+
]
40+
}
41+
}

0 commit comments

Comments
 (0)