@enke.dev/lint 0.10.3 → 0.10.5
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 +1 -1
- package/eslint.config.js +12 -5
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Make sure to install the necessary peer dependencies:
|
|
|
8
8
|
npm i -D @enke.dev/lint eslint prettier
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
For Typescript support, install:
|
|
11
|
+
For Typescript support, additionally install:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
14
|
npm i -D @enke.dev/lint eslint prettier jiti typescript typescript-eslint
|
package/eslint.config.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="./eslint-plugins.d.ts" />
|
|
2
2
|
import { readFile } from 'node:fs/promises';
|
|
3
|
+
import { pathToFileURL } from 'node:url';
|
|
3
4
|
import { fixupPluginRules } from '@eslint/compat';
|
|
4
5
|
import eslintPluginJs from '@eslint/js';
|
|
5
6
|
import eslintPluginJson from '@eslint/json';
|
|
@@ -17,11 +18,17 @@ import eslintPluginUnusedImports from 'eslint-plugin-unused-imports';
|
|
|
17
18
|
import { configs as eslintPluginWebComponentsConfigs } from 'eslint-plugin-wc';
|
|
18
19
|
import eslintTs from 'typescript-eslint';
|
|
19
20
|
// collect gitignore excludes
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
.
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
let gitIgnoreLines = [];
|
|
22
|
+
try {
|
|
23
|
+
const gitIgnores = await readFile(pathToFileURL(`${process.cwd()}/.gitignore`).href, 'utf-8');
|
|
24
|
+
gitIgnoreLines = gitIgnores
|
|
25
|
+
.split('\n')
|
|
26
|
+
.map(line => line.trim().replace(/^\//, ''))
|
|
27
|
+
.filter(line => line && !line.startsWith('#'));
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
// noop - maybe a warning?
|
|
31
|
+
}
|
|
25
32
|
// shared parser options
|
|
26
33
|
const parserOptions = {
|
|
27
34
|
ecmaVersion: 'latest',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enke.dev/lint",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.5",
|
|
4
4
|
"description": "Meta package to provide linting for web projects",
|
|
5
5
|
"homepage": "https://github.com/enke-dev/lint",
|
|
6
6
|
"repository": {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"eslint-plugin-import-extensions": "0.1.5",
|
|
60
60
|
"eslint-plugin-lit": "2.1.1",
|
|
61
61
|
"eslint-plugin-lit-a11y": "5.1.1",
|
|
62
|
-
"eslint-plugin-package-json": "0.56.
|
|
62
|
+
"eslint-plugin-package-json": "0.56.3",
|
|
63
63
|
"eslint-plugin-prettier": "5.5.4",
|
|
64
64
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
65
65
|
"eslint-plugin-unused-imports": "4.2.0",
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@eslint/config-inspector": "1.2.0",
|
|
70
|
-
"@types/node": "24.
|
|
70
|
+
"@types/node": "24.5.2",
|
|
71
71
|
"eslint": "9.35.0",
|
|
72
72
|
"jiti": "2.5.1",
|
|
73
73
|
"prettier": "3.6.2",
|
|
74
74
|
"typescript": "5.9.2",
|
|
75
|
-
"typescript-eslint": "8.
|
|
75
|
+
"typescript-eslint": "8.44.0"
|
|
76
76
|
}
|
|
77
77
|
}
|