@wopjs/eslint-config 0.1.8 → 0.1.9
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.js +3 -4
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import jsEslint from "@eslint/js";
|
|
2
|
-
import json from "@eslint/json";
|
|
3
2
|
import gitignore from "eslint-config-flat-gitignore";
|
|
4
3
|
import eslintConfigPrettier from "eslint-config-prettier";
|
|
5
4
|
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
|
|
|
@@ -94,7 +94,7 @@ export default tsEslint.config(
|
|
|
94
94
|
},
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
|
-
extends:
|
|
97
|
+
extends: jsonc.configs["flat/recommended-with-json"],
|
|
98
98
|
files: [
|
|
99
99
|
"src/**/*.json",
|
|
100
100
|
"scripts/**/*.json",
|
|
@@ -104,10 +104,9 @@ export default tsEslint.config(
|
|
|
104
104
|
"typedoc.json",
|
|
105
105
|
"mangle-cache.json",
|
|
106
106
|
],
|
|
107
|
-
language: "json/json",
|
|
108
107
|
name: "json",
|
|
109
108
|
rules: {
|
|
110
|
-
"
|
|
109
|
+
"jsonc/sort-keys": ["error", "asc", { caseSensitive: true, minKeys: 2, natural: true }],
|
|
111
110
|
},
|
|
112
111
|
},
|
|
113
112
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wopjs/eslint-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
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",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@eslint/js": "^9.19.0",
|
|
43
|
-
"
|
|
44
|
-
"eslint-config-flat-gitignore": "^1.0.0",
|
|
43
|
+
"eslint-config-flat-gitignore": "^2.0.0",
|
|
45
44
|
"eslint-config-prettier": "^10.0.1",
|
|
46
45
|
"eslint-plugin-import-x": "^4.6.1",
|
|
46
|
+
"eslint-plugin-jsonc": "^2.19.1",
|
|
47
47
|
"eslint-plugin-perfectionist": "^4.7.0",
|
|
48
|
-
"typescript-eslint": "^8.
|
|
48
|
+
"typescript-eslint": "^8.23.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"eslint": "^9.19.0",
|