Skip to content

Commit cef1d4c

Browse files
committed
chore: 🤖 update the linting rules
1 parent 1cba1bd commit cef1d4c

File tree

4 files changed

+41
-23
lines changed

4 files changed

+41
-23
lines changed

.eslintrc

+36-9
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,54 @@
11
{
22
"env": {
33
"browser": true,
4-
"es2021": true
4+
"es2021": true,
55
},
6-
"extends": ["airbnb", "airbnb-typescript/base", "plugin:prettier/recommended", "prettier"],
7-
"plugins": ["simple-import-sort"],
6+
"extends": [
7+
"prettier",
8+
"eslint:recommended",
9+
"plugin:prettier/recommended",
10+
"plugin:import/recommended",
11+
"plugin:@typescript-eslint/recommended",
12+
"airbnb",
13+
"airbnb-typescript/base",
14+
],
15+
"plugins": ["prettier", "import", "@typescript-eslint"],
816
"parserOptions": {
917
"ecmaVersion": "latest",
1018
"sourceType": "module",
11-
"project": "./tsconfig.json"
19+
"project": "./tsconfig.json",
1220
},
1321
"rules": {
22+
"@typescript-eslint/indent": "off",
1423
"@typescript-eslint/lines-between-class-members": "off",
15-
"import/order": "off",
24+
"@typescript-eslint/no-extra-semi": "off",
25+
"@typescript-eslint/semi": "off",
26+
"import/order": [
27+
"error",
28+
{
29+
"groups": ["builtin", "external", "internal"],
30+
"pathGroups": [
31+
{
32+
"pattern": "classes/**",
33+
"group": "external",
34+
"position": "before",
35+
},
36+
],
37+
"pathGroupsExcludedImportTypes": ["classes"],
38+
"alphabetize": {
39+
"order": "asc",
40+
"caseInsensitive": true,
41+
},
42+
},
43+
],
1644
"import/prefer-default-export": "off",
1745
"no-bitwise": "off",
1846
"no-continue": "off",
1947
"no-param-reassign": "off",
2048
"no-plusplus": "off",
2149
"no-restricted-syntax": "off",
50+
"operator-linebreak": "off",
2251
"prefer-destructuring": "off",
23-
"simple-import-sort/exports": "error",
24-
"simple-import-sort/imports": "error",
25-
"sort-imports": "off"
26-
}
52+
"semi-style": "off",
53+
},
2754
}

.prettierrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"tabWidth": 4,
44
"printWidth": 100,
55
"singleQuote": true,
6-
"trailingComma": "none",
6+
"trailingComma": "all",
77
"semi": false
88
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"eslint-config-airbnb": "^19.0.4",
2121
"eslint-config-airbnb-typescript": "^18.0.0",
2222
"eslint-config-prettier": "^9.1.0",
23+
"eslint-plugin-import": "^2.29.1",
2324
"eslint-plugin-prettier": "^5.1.3",
24-
"eslint-plugin-simple-import-sort": "^12.1.0",
2525
"husky": "^8.0.0",
2626
"lint-staged": "^15.2.2",
2727
"prettier": "^3.2.5",

pnpm-lock.yaml

+3-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)