@wopjs/eslint-config 0.1.5 → 0.1.6
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/index.d.ts +2 -2
- package/index.js +4 -3
- package/package.json +5 -5
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { config, type ConfigArray } from "typescript-eslint";
|
|
1
|
+
import { type config, type ConfigArray } from "typescript-eslint";
|
|
2
2
|
|
|
3
3
|
declare const wopjs: ConfigArray;
|
|
4
4
|
|
|
5
5
|
export default wopjs;
|
|
6
6
|
|
|
7
|
-
export const defineConfig
|
|
7
|
+
export declare const defineConfig: typeof config;
|
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import jsEslint from "@eslint/js";
|
|
2
|
+
import json from "@eslint/json";
|
|
2
3
|
import gitignore from "eslint-config-flat-gitignore";
|
|
3
4
|
import eslintConfigPrettier from "eslint-config-prettier";
|
|
4
5
|
import importX from "eslint-plugin-import-x";
|
|
5
|
-
import jsonc from "eslint-plugin-jsonc";
|
|
6
6
|
import perfectionist from "eslint-plugin-perfectionist";
|
|
7
7
|
import tsEslint from "typescript-eslint";
|
|
8
8
|
|
|
@@ -68,7 +68,7 @@ export default tsEslint.config(
|
|
|
68
68
|
},
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
extends: [
|
|
71
|
+
extends: [json.configs.recommended],
|
|
72
72
|
files: [
|
|
73
73
|
"src/**/*.json",
|
|
74
74
|
"scripts/**/*.json",
|
|
@@ -78,9 +78,10 @@ export default tsEslint.config(
|
|
|
78
78
|
"typedoc.json",
|
|
79
79
|
"mangle-cache.json",
|
|
80
80
|
],
|
|
81
|
+
language: "json/json",
|
|
81
82
|
name: "json",
|
|
82
83
|
rules: {
|
|
83
|
-
"
|
|
84
|
+
"json/sort-keys": ["error", "asc", { caseSensitive: true, minKeys: 2, natural: true }],
|
|
84
85
|
},
|
|
85
86
|
},
|
|
86
87
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wopjs/eslint-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
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",
|
|
@@ -39,16 +39,16 @@
|
|
|
39
39
|
"eslint": "9.x"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@eslint/js": "^9.
|
|
42
|
+
"@eslint/js": "^9.19.0",
|
|
43
|
+
"@eslint/json": "^0.10.0",
|
|
43
44
|
"eslint-config-flat-gitignore": "^1.0.0",
|
|
44
45
|
"eslint-config-prettier": "^10.0.1",
|
|
45
46
|
"eslint-plugin-import-x": "^4.6.1",
|
|
46
|
-
"eslint-plugin-
|
|
47
|
-
"eslint-plugin-perfectionist": "^4.6.0",
|
|
47
|
+
"eslint-plugin-perfectionist": "^4.7.0",
|
|
48
48
|
"typescript-eslint": "^8.21.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"eslint": "^9.
|
|
51
|
+
"eslint": "^9.19.0",
|
|
52
52
|
"prettier": "^3.4.2",
|
|
53
53
|
"typescript": "^5.7.3"
|
|
54
54
|
}
|