@tim-code/eslint-config 2.0.2 → 2.0.3
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 +2 -2
- package/package.json +1 -1
package/eslint.config.js
CHANGED
|
@@ -1,17 +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
|
+
import { defineConfig, globalIgnores } from "eslint/config"
|
|
5
5
|
import globals from "globals"
|
|
6
6
|
|
|
7
7
|
export default defineConfig([
|
|
8
|
+
globalIgnores(["dist/**", "dist-old/**", ".aws-sam"]),
|
|
8
9
|
// base: ESLint core + prettier + import/recommended
|
|
9
10
|
js.configs.all,
|
|
10
11
|
prettierConfig,
|
|
11
12
|
importPlugin.flatConfigs.recommended,
|
|
12
13
|
{
|
|
13
14
|
files: ["**/*.{js,mjs,cjs,jsx,ts,tsx}"],
|
|
14
|
-
ignores: ["dist/**", "dist-old/**"],
|
|
15
15
|
|
|
16
16
|
languageOptions: {
|
|
17
17
|
// es6 seems to be needed for Promise
|