Skip to content

Commit 40ad105

Browse files
committed
Move to flat ESLint config
1 parent e391e11 commit 40ad105

File tree

3 files changed

+106
-68
lines changed

3 files changed

+106
-68
lines changed

eslint.config.js

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import loguxTsConfig from '@logux/eslint-config/ts'
2+
3+
/** @type {import('eslint').Linter.FlatConfig[]} */
4+
export default [
5+
{
6+
ignores: ['**/errors.ts', 'coverage']
7+
},
8+
...loguxTsConfig,
9+
{
10+
languageOptions: {
11+
globals: {
12+
WebSocket: 'readonly'
13+
}
14+
},
15+
rules: {
16+
'@typescript-eslint/no-explicit-any': 'off',
17+
'no-invalid-this': 'off'
18+
}
19+
},
20+
{
21+
files: ['server-connection/*.ts', 'ws-connection/*.ts'],
22+
rules: {
23+
'import/order': 'off'
24+
}
25+
}
26+
]

package.json

+2-31
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,12 @@
3636
"nanoevents": "^9.0.0"
3737
},
3838
"devDependencies": {
39-
"@logux/eslint-config": "^52.0.2",
39+
"@logux/eslint-config": "^53.0.0",
4040
"@types/ws": "^8.5.10",
41-
"@typescript-eslint/eslint-plugin": "^7.1.1",
42-
"@typescript-eslint/parser": "^7.1.1",
4341
"c8": "^9.1.0",
4442
"check-dts": "^0.7.2",
4543
"clean-publish": "^4.3.0",
4644
"eslint": "^8.57.0",
47-
"eslint-config-standard": "^17.1.0",
48-
"eslint-plugin-import": "^2.29.1",
49-
"eslint-plugin-n": "^16.6.2",
50-
"eslint-plugin-perfectionist": "^2.6.0",
51-
"eslint-plugin-prefer-let": "^3.0.1",
52-
"eslint-plugin-promise": "^6.1.1",
5345
"nanodelay": "^2.0.2",
5446
"nanospy": "^1.0.0",
5547
"tsm": "^2.3.0",
@@ -78,26 +70,5 @@
7870
],
7971
"skip-full": true,
8072
"clean": true
81-
},
82-
"eslintConfig": {
83-
"extends": "@logux/eslint-config/ts",
84-
"rules": {
85-
"@typescript-eslint/no-explicit-any": "off",
86-
"no-invalid-this": "off"
87-
},
88-
"overrides": [
89-
{
90-
"files": [
91-
"server-connection/*.ts",
92-
"ws-connection/*.ts"
93-
],
94-
"rules": {
95-
"import/order": "off"
96-
}
97-
}
98-
]
99-
},
100-
"eslintIgnore": [
101-
"**/errors.ts"
102-
]
73+
}
10374
}

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)