Skip to content

Commit cf5598e

Browse files
committed
build: update project eslint to flat config
1 parent d0551e2 commit cf5598e

File tree

196 files changed

+6073
-7126
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+6073
-7126
lines changed

.eslintrc.cjs

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

.vscode/settings.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,15 @@
5151
}
5252
],
5353
"mdx.server.enable": true,
54-
"eslint.experimental.useFlatConfig": false,
54+
"eslint.experimental.useFlatConfig": true,
5555
"eslint.options": {
56-
"extensions": [".js", ".jsx", ".mdx", ".ts", ".tsx"]
56+
"extensions": [
57+
".js",
58+
".jsx",
59+
".mdx",
60+
".ts",
61+
".tsx"
62+
]
5763
},
5864
"eslint.validate": [
5965
"mdx",

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.8-next.4
1+
1.5.8-next.5

cspell.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@
8686
"uncast",
8787
"unoptimized",
8888
"valibot",
89-
"weakref"
89+
"weakref",
90+
"nocheck",
91+
"IIFEs"
9092
]
9193
}

eslint.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// @ts-check
2+
3+
// TODO - https://github.com/eslint/eslint/pull/17909
4+
// either it gets back-ported (https://github.com/eslint/eslint/issues/17966) or we wait till v9
5+
6+
/** @type {import('@typescript-eslint/utils/ts-eslint').FlatConfig.ConfigPromise} */
7+
const config = (async () => (await import("./eslint.config.mjs")).default)();
8+
module.exports = config;

0 commit comments

Comments
 (0)