@tim-code/eslint-config 2.0.0 → 2.0.1

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.
Files changed (2) hide show
  1. package/eslint.config.js +3 -3
  2. package/package.json +2 -1
package/eslint.config.js CHANGED
@@ -1,10 +1,10 @@
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
- /** @type {import("eslint").Linter.FlatConfig[]} */
7
- export default [
7
+ export default defineConfig([
8
8
  // base: ESLint core + prettier + import/recommended
9
9
  js.configs.all,
10
10
  prettierConfig,
@@ -168,4 +168,4 @@ export default [
168
168
  },
169
169
  },
170
170
  },
171
- ]
171
+ ])
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@tim-code/eslint-config",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "",
5
+ "type": "module",
5
6
  "main": "eslint.config.js",
6
7
  "author": "",
7
8
  "license": "MIT",