@enke.dev/lint 0.11.2 → 0.11.4
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.d.ts +3 -3
- package/eslint.config.js +4 -3
- package/package.json +18 -17
package/eslint.config.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
1
|
+
import { defineConfig } from 'eslint/config';
|
|
2
|
+
declare const config: ReturnType<typeof defineConfig>;
|
|
3
|
+
export default config;
|
package/eslint.config.js
CHANGED
|
@@ -31,7 +31,7 @@ const parserOptions = {
|
|
|
31
31
|
ecmaVersion: 'latest',
|
|
32
32
|
sourceType: 'module',
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
const config = defineConfig([
|
|
35
35
|
globalIgnores([...gitIgnoreLines, 'dist/']),
|
|
36
36
|
eslintPluginPrettierRecommended,
|
|
37
37
|
// Javascript and Typescript files
|
|
@@ -136,7 +136,7 @@ export default defineConfig([
|
|
|
136
136
|
html: eslintPluginHtml,
|
|
137
137
|
htmlScripts: eslintPluginHtmlScripts,
|
|
138
138
|
},
|
|
139
|
-
extends: [
|
|
139
|
+
extends: ['html/recommended'],
|
|
140
140
|
language: 'html/html',
|
|
141
141
|
languageOptions: {
|
|
142
142
|
parser: eslintParserHtml,
|
|
@@ -163,7 +163,7 @@ export default defineConfig([
|
|
|
163
163
|
'html/require-input-label': 'error',
|
|
164
164
|
},
|
|
165
165
|
rules: {
|
|
166
|
-
'
|
|
166
|
+
'html/indent': ['error', 2],
|
|
167
167
|
},
|
|
168
168
|
},
|
|
169
169
|
// JSON files
|
|
@@ -178,3 +178,4 @@ export default defineConfig([
|
|
|
178
178
|
},
|
|
179
179
|
},
|
|
180
180
|
]);
|
|
181
|
+
export default config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enke.dev/lint",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
4
4
|
"description": "Meta package to provide linting for web projects",
|
|
5
5
|
"homepage": "https://github.com/enke-dev/lint",
|
|
6
6
|
"repository": {
|
|
@@ -21,8 +21,9 @@
|
|
|
21
21
|
"main": "eslint.config.js",
|
|
22
22
|
"types": "eslint.config.d.ts",
|
|
23
23
|
"scripts": {
|
|
24
|
-
"
|
|
24
|
+
"check": "tsc -p tsconfig.build.json --noEmit",
|
|
25
25
|
"lint": "eslint -c test.eslint.config.ts .",
|
|
26
|
+
"test": "node --experimental-strip-types --test test.run.ts",
|
|
26
27
|
"inspect": "./node_modules/.bin/eslint-config-inspector --config eslint.config.ts",
|
|
27
28
|
"dev": "tsc -p tsconfig.build.json --watch",
|
|
28
29
|
"build": "tsc -p tsconfig.build.json"
|
|
@@ -50,11 +51,11 @@
|
|
|
50
51
|
},
|
|
51
52
|
"dependencies": {
|
|
52
53
|
"@awmottaz/prettier-plugin-void-html": "1.9.0",
|
|
53
|
-
"@eslint/compat": "
|
|
54
|
-
"@eslint/js": "9.
|
|
55
|
-
"@eslint/json": "0.
|
|
56
|
-
"@html-eslint/eslint-plugin": "0.
|
|
57
|
-
"@html-eslint/parser": "0.
|
|
54
|
+
"@eslint/compat": "2.0.0",
|
|
55
|
+
"@eslint/js": "9.39.1",
|
|
56
|
+
"@eslint/json": "0.14.0",
|
|
57
|
+
"@html-eslint/eslint-plugin": "0.49.0",
|
|
58
|
+
"@html-eslint/parser": "0.49.0",
|
|
58
59
|
"eslint-config-prettier": "10.1.8",
|
|
59
60
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
60
61
|
"eslint-plugin-html": "8.1.3",
|
|
@@ -62,23 +63,23 @@
|
|
|
62
63
|
"eslint-plugin-import-extensions": "0.1.5",
|
|
63
64
|
"eslint-plugin-lit": "2.1.1",
|
|
64
65
|
"eslint-plugin-lit-a11y": "5.1.1",
|
|
65
|
-
"eslint-plugin-package-json": "0.
|
|
66
|
+
"eslint-plugin-package-json": "0.85.0",
|
|
66
67
|
"eslint-plugin-prettier": "5.5.4",
|
|
67
68
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
68
|
-
"eslint-plugin-unused-imports": "4.
|
|
69
|
-
"eslint-plugin-wc": "3.0.
|
|
69
|
+
"eslint-plugin-unused-imports": "4.3.0",
|
|
70
|
+
"eslint-plugin-wc": "3.0.2"
|
|
70
71
|
},
|
|
71
72
|
"devDependencies": {
|
|
72
|
-
"@eslint/config-inspector": "1.
|
|
73
|
-
"@types/node": "24.
|
|
74
|
-
"eslint": "9.
|
|
75
|
-
"jiti": "2.
|
|
73
|
+
"@eslint/config-inspector": "1.4.2",
|
|
74
|
+
"@types/node": "24.10.1",
|
|
75
|
+
"eslint": "9.39.1",
|
|
76
|
+
"jiti": "2.6.1",
|
|
76
77
|
"prettier": "3.6.2",
|
|
77
|
-
"stylelint": "16.
|
|
78
|
+
"stylelint": "16.26.0",
|
|
78
79
|
"stylelint-config-rational-order": "0.1.2",
|
|
79
80
|
"stylelint-config-standard-scss": "16.0.0",
|
|
80
81
|
"stylelint-order": "7.0.0",
|
|
81
|
-
"typescript": "5.9.
|
|
82
|
-
"typescript-eslint": "8.
|
|
82
|
+
"typescript": "5.9.3",
|
|
83
|
+
"typescript-eslint": "8.47.0"
|
|
83
84
|
}
|
|
84
85
|
}
|