@enke.dev/lint 0.8.2 → 0.8.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/README.md +10 -2
- package/eslint.config.js +7 -1
- package/package.json +15 -12
package/README.md
CHANGED
|
@@ -66,12 +66,20 @@ Like the experimental typescript config flag above, the VSCode Eslint plugin can
|
|
|
66
66
|
|
|
67
67
|
Using a shared Stylelint config with two major presets, `stylelint-config-standard-scss` and `stylelint-config-rational-order`.
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
As this is totally opt-in, all required dependencies must be installed:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
npm i -D stylelint stylelint-config-rational-order stylelint-config-standard-scss stylelint-order
|
|
73
|
+
```
|
|
70
74
|
|
|
71
75
|
Create a `stylelint.config.js` file in the root of your project and add the following content:
|
|
72
76
|
|
|
73
77
|
```js
|
|
78
|
+
// @ts-check
|
|
79
|
+
|
|
74
80
|
import { defineConfig } from '@enke.dev/lint/stylelint.config.js';
|
|
75
81
|
|
|
76
|
-
export default defineConfig('
|
|
82
|
+
export default defineConfig({ cssCustomPropertyPrefix: 'your-prefix' });
|
|
77
83
|
```
|
|
84
|
+
|
|
85
|
+
For now, no TypeScript support is included.
|
package/eslint.config.js
CHANGED
|
@@ -12,7 +12,7 @@ import eslintPluginUnusedImports from 'eslint-plugin-unused-imports';
|
|
|
12
12
|
import { configs as eslintPluginWebComponentsConfigs } from 'eslint-plugin-wc';
|
|
13
13
|
import eslintTs from 'typescript-eslint';
|
|
14
14
|
export default eslintTs.config(eslintJs.configs.recommended, ...eslintTs.configs.strict, ...eslintTs.configs.stylistic, eslintPluginPrettierRecommended, eslintPluginImport.flatConfigs.recommended, eslintPluginPackageJson.configs.recommended, eslintPluginLitConfigs['flat/recommended'], eslintPluginWebComponentsConfigs['flat/recommended'], {
|
|
15
|
-
ignores: ['node_modules/', 'dist/'
|
|
15
|
+
ignores: ['node_modules/', 'dist/'],
|
|
16
16
|
}, {
|
|
17
17
|
plugins: {
|
|
18
18
|
'simple-import-sort': eslintPluginSimpleImportSort,
|
|
@@ -20,6 +20,12 @@ export default eslintTs.config(eslintJs.configs.recommended, ...eslintTs.configs
|
|
|
20
20
|
'import-extensions': fixupPluginRules(eslintPluginImportExtension),
|
|
21
21
|
},
|
|
22
22
|
}, {
|
|
23
|
+
languageOptions: {
|
|
24
|
+
parserOptions: {
|
|
25
|
+
project: true,
|
|
26
|
+
tsconfigRootDir: __dirname,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
23
29
|
settings: {
|
|
24
30
|
'import/resolver': {
|
|
25
31
|
typescript: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enke.dev/lint",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "Meta package to provide linting for web projects",
|
|
5
5
|
"homepage": "https://github.com/enke-dev/lint",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"eslint": "^9.
|
|
34
|
+
"eslint": "^9.34.0",
|
|
35
35
|
"prettier": "^3.6.2"
|
|
36
36
|
},
|
|
37
37
|
"optionalDependencies": {
|
|
@@ -41,30 +41,33 @@
|
|
|
41
41
|
"stylelint-order": "^7.0.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@eslint/compat": "^1.3.
|
|
45
|
-
"@eslint/js": "^9.
|
|
44
|
+
"@eslint/compat": "^1.3.2",
|
|
45
|
+
"@eslint/js": "^9.34.0",
|
|
46
46
|
"@eslint/json": "^0.13.2",
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
48
|
-
"@typescript-eslint/parser": "^8.
|
|
49
|
-
"eslint-config-prettier": "^10.1.
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^8.42.0",
|
|
48
|
+
"@typescript-eslint/parser": "^8.42.0",
|
|
49
|
+
"eslint-config-prettier": "^10.1.8",
|
|
50
50
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
51
51
|
"eslint-plugin-import": "^2.32.0",
|
|
52
52
|
"eslint-plugin-import-extensions": "^0.1.5",
|
|
53
53
|
"eslint-plugin-lit": "^2.1.1",
|
|
54
54
|
"eslint-plugin-package-json": "^0.56.1",
|
|
55
|
-
"eslint-plugin-prettier": "^5.5.
|
|
55
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
56
56
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
57
|
-
"eslint-plugin-unused-imports": "^4.
|
|
57
|
+
"eslint-plugin-unused-imports": "^4.2.0",
|
|
58
58
|
"eslint-plugin-wc": "^3.0.1",
|
|
59
|
-
"typescript": "^5.
|
|
60
|
-
"typescript-eslint": "^8.
|
|
59
|
+
"typescript": "^5.9.2",
|
|
60
|
+
"typescript-eslint": "^8.42.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@types/node": "24.3.
|
|
63
|
+
"@types/node": "24.3.1",
|
|
64
64
|
"jiti": "2.5.1",
|
|
65
65
|
"typescript": "5.9.2"
|
|
66
66
|
},
|
|
67
67
|
"overrides": {
|
|
68
|
+
"eslint-plugin-unused-imports": {
|
|
69
|
+
"@typescript-eslint/eslint-plugin": "$@typescript-eslint/eslint-plugin"
|
|
70
|
+
},
|
|
68
71
|
"typescript-eslint": {
|
|
69
72
|
"typescript": "$typescript"
|
|
70
73
|
}
|