Skip to content

Commit 5111e28

Browse files
committed
chore: make the eslintrc file a JSON
1 parent a485314 commit 5111e28

File tree

2 files changed

+51
-39
lines changed

2 files changed

+51
-39
lines changed

.eslintrc.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

.eslintrc.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"parserOptions": {
4+
"project": "./tsconfig.json"
5+
},
6+
"plugins": [
7+
"@typescript-eslint"
8+
],
9+
"extends": [
10+
"eslint:recommended",
11+
"plugin:@typescript-eslint/recommended",
12+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
13+
"airbnb-base",
14+
"airbnb-typescript/base",
15+
"plugin:import/recommended",
16+
"plugin:import/typescript",
17+
"prettier",
18+
"plugin:prettier/recommended"
19+
],
20+
"rules": {
21+
"no-self-compare": "error",
22+
"no-void": [
23+
"error",
24+
{
25+
"allowAsStatement": true
26+
}
27+
],
28+
"@typescript-eslint/consistent-type-imports": [
29+
"error",
30+
{
31+
"disallowTypeAnnotations": false
32+
}
33+
],
34+
"import/order": [
35+
"error",
36+
{
37+
"groups": [
38+
"builtin",
39+
"external",
40+
"internal",
41+
"parent",
42+
"sibling",
43+
"index",
44+
"object",
45+
"type"
46+
]
47+
}
48+
],
49+
"import/prefer-default-export": "off"
50+
}
51+
}

0 commit comments

Comments
 (0)