@tim-code/eslint-config 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/eslint.config.js +4 -3
- package/package.json +2 -1
package/eslint.config.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import js from "@eslint/js"
|
|
2
2
|
import prettierConfig from "eslint-config-prettier/flat"
|
|
3
3
|
import importPlugin from "eslint-plugin-import"
|
|
4
|
+
import { defineConfig } from "eslint/config"
|
|
4
5
|
import globals from "globals"
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
export default [
|
|
7
|
+
export default defineConfig([
|
|
8
8
|
// base: ESLint core + prettier + import/recommended
|
|
9
9
|
js.configs.all,
|
|
10
10
|
prettierConfig,
|
|
11
11
|
importPlugin.flatConfigs.recommended,
|
|
12
12
|
{
|
|
13
13
|
files: ["**/*.{js,mjs,cjs,jsx,ts,tsx}"],
|
|
14
|
+
ignores: ["dist/**", "dist-old/**"],
|
|
14
15
|
|
|
15
16
|
languageOptions: {
|
|
16
17
|
// es6 seems to be needed for Promise
|
|
@@ -168,4 +169,4 @@ export default [
|
|
|
168
169
|
},
|
|
169
170
|
},
|
|
170
171
|
},
|
|
171
|
-
]
|
|
172
|
+
])
|