@wopjs/eslint-config 0.1.43 → 0.1.45

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 (3) hide show
  1. package/index.d.ts +4 -2
  2. package/index.js +7 -13
  3. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -1,7 +1,9 @@
1
- import { type config, type ConfigArray } from "typescript-eslint";
1
+ import { type ConfigObject } from "@eslint/core";
2
+ import { type defineConfig as config } from "eslint/config";
2
3
 
3
- declare const wopjs: ConfigArray;
4
+ declare const wopjs: ConfigObject[];
4
5
 
5
6
  export default wopjs;
6
7
 
8
+ /** @deprecated use `import { defineConfig } from "eslint/config";` instead. */
7
9
  export declare const defineConfig: typeof config;
package/index.js CHANGED
@@ -4,11 +4,13 @@ import eslintConfigPrettier from "eslint-config-prettier";
4
4
  import importX from "eslint-plugin-import-x";
5
5
  import jsonc from "eslint-plugin-jsonc";
6
6
  import perfectionist from "eslint-plugin-perfectionist";
7
+ import { defineConfig } from "eslint/config";
7
8
  import tsEslint from "typescript-eslint";
8
9
 
9
- export const defineConfig = tsEslint.config;
10
+ /** @deprecated use `import { defineConfig } from "eslint/config";` instead. */
11
+ export { defineConfig };
10
12
 
11
- export default tsEslint.config(
13
+ export default defineConfig(
12
14
  gitignore(),
13
15
  eslintConfigPrettier,
14
16
  {
@@ -16,18 +18,12 @@ export default tsEslint.config(
16
18
  files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
17
19
  languageOptions: {
18
20
  ecmaVersion: "latest",
19
- globals: {
20
- console: true,
21
- process: true,
22
- },
21
+ globals: { console: true, process: true },
23
22
  parser: tsEslint.parser,
24
23
  sourceType: "module",
25
24
  },
26
25
  name: "typescript",
27
- plugins: {
28
- "@typescript-eslint": tsEslint.plugin,
29
- perfectionist: perfectionist,
30
- },
26
+ plugins: { "@typescript-eslint": tsEslint.plugin, perfectionist },
31
27
  rules: {
32
28
  "@typescript-eslint/consistent-type-imports": ["error", { fixStyle: "inline-type-imports" }],
33
29
  "@typescript-eslint/no-empty-interface": "off",
@@ -75,8 +71,6 @@ export default tsEslint.config(
75
71
  "mangle-cache.json",
76
72
  ],
77
73
  name: "json",
78
- rules: {
79
- "jsonc/sort-keys": ["error", "asc", { caseSensitive: true, minKeys: 2, natural: true }],
80
- },
74
+ rules: { "jsonc/sort-keys": ["error", "asc", { caseSensitive: true, minKeys: 2, natural: true }] },
81
75
  },
82
76
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wopjs/eslint-config",
3
- "version": "0.1.43",
3
+ "version": "0.1.45",
4
4
  "description": "Wopjs eslint config that aims to enforce code style that is consistent and diff-friendly, easy to review.",
5
5
  "repository": "wopjs/eslint-config",
6
6
  "main": "./index.js",
@@ -45,7 +45,7 @@
45
45
  "eslint-plugin-import-x": "^4.16.1",
46
46
  "eslint-plugin-jsonc": "^2.21.0",
47
47
  "eslint-plugin-perfectionist": "^4.15.1",
48
- "typescript-eslint": "^8.45.0"
48
+ "typescript-eslint": "^8.46.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "eslint": "^9.37.0",