Skip to content

Commit a82db02

Browse files
committed
Move to ESLint flat config
1 parent acd00c1 commit a82db02

File tree

3 files changed

+110
-59
lines changed

3 files changed

+110
-59
lines changed

eslint.config.js

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import loguxTsConfig from '@logux/eslint-config/ts'
2+
import globals from 'globals'
3+
4+
/** @type {import('eslint').Linter.FlatConfig[]} */
5+
export default [
6+
{
7+
ignores: ['test/demo/dist', '**/errors.ts']
8+
},
9+
...loguxTsConfig,
10+
{
11+
languageOptions: {
12+
globals: globals.browser
13+
},
14+
rules: {
15+
'@typescript-eslint/no-explicit-any': 'off',
16+
'camelcase': 'off',
17+
'no-console': 'off',
18+
'symbol-description': 'off'
19+
}
20+
}
21+
]

package.json

+2-22
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
"devDependencies": {
8282
"@logux/core": "github:logux/core#next",
83-
"@logux/eslint-config": "^52.0.2",
83+
"@logux/eslint-config": "^53.0.0",
8484
"@nanostores/preact": "^0.5.1",
8585
"@nanostores/react": "^0.7.2",
8686
"@nanostores/vue": "^0.10.0",
@@ -93,20 +93,13 @@
9393
"@types/react": "^18.2.73",
9494
"@types/react-dom": "^18.2.23",
9595
"@types/ws": "^8.5.10",
96-
"@typescript-eslint/eslint-plugin": "^7.5.0",
97-
"@typescript-eslint/parser": "^7.5.0",
9896
"@vitest/coverage-v8": "^1.4.0",
9997
"@vue/compiler-sfc": "^3.4.21",
10098
"check-dts": "^0.7.2",
10199
"clean-publish": "^4.3.0",
102100
"eslint": "^8.57.0",
103-
"eslint-config-standard": "^17.1.0",
104-
"eslint-plugin-import": "^2.29.1",
105-
"eslint-plugin-n": "^16.6.2",
106-
"eslint-plugin-perfectionist": "^2.7.0",
107-
"eslint-plugin-prefer-let": "^3.0.1",
108-
"eslint-plugin-promise": "^6.1.1",
109101
"fake-indexeddb": "^5.0.2",
102+
"globals": "^15.0.0",
110103
"happy-dom": "^14.3.10",
111104
"nanospy": "^1.0.0",
112105
"nanostores": "^0.10.2",
@@ -131,19 +124,6 @@
131124
"singleQuote": true,
132125
"trailingComma": "none"
133126
},
134-
"eslintConfig": {
135-
"extends": "@logux/eslint-config/ts",
136-
"rules": {
137-
"@typescript-eslint/no-explicit-any": "off",
138-
"symbol-description": "off",
139-
"no-console": "off",
140-
"camelcase": "off"
141-
}
142-
},
143-
"eslintIgnore": [
144-
"test/demo/dist",
145-
"**/errors.ts"
146-
],
147127
"size-limit": [
148128
{
149129
"name": "CrossTabClient",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)