Skip to content

Commit 01e72a3

Browse files
committed
tsconfig | eslint config
1 parent 2055b20 commit 01e72a3

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.eslintrc.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es2021": true
6+
},
7+
"extends": [
8+
"standard"
9+
],
10+
"parser": "@typescript-eslint/parser",
11+
"parserOptions": {
12+
"ecmaVersion": 12
13+
},
14+
"plugins": [
15+
"@typescript-eslint"
16+
],
17+
"rules": {
18+
"arrow-spacing": "error",
19+
"no-const-assign": "error",
20+
"no-var": "error",
21+
"prefer-const": "error",
22+
"prefer-template": "error",
23+
"prefer-destructuring": ["error", { "object": true, "array": false }],
24+
"object-curly-spacing": [2, "always"]
25+
}
26+
}

tsconfig.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"compilerOptions": {
3+
"strict": true,
4+
"target": "esnext",
5+
"module": "commonjs",
6+
"moduleResolution": "node",
7+
"allowSyntheticDefaultImports": true,
8+
"esModuleInterop": true,
9+
"jsx": "preserve",
10+
"skipLibCheck": true
11+
}
12+
}
13+

0 commit comments

Comments
 (0)