@enke.dev/lint 0.10.5 → 0.10.7

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 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, additionally install:
11
+ For Typescript support, install:
12
12
 
13
13
  ```bash
14
14
  npm i -D @enke.dev/lint eslint prettier jiti typescript typescript-eslint
@@ -26,7 +26,7 @@ export default config;
26
26
 
27
27
  ### Using Typescript
28
28
 
29
- If you intend to use Typescript for your config file, you just have to install `typescript` and `jiti`.
29
+ If you intend to use Typescript for your config file, you just have to install `typescript`, `typescript-eslint` and `jiti`.
30
30
 
31
31
  Your config file can then be renamed to `eslint.config.ts` and look like this at minimum:
32
32
 
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 { cwd } from 'node:process';
3
4
  import { pathToFileURL } from 'node:url';
4
5
  import { fixupPluginRules } from '@eslint/compat';
5
6
  import eslintPluginJs from '@eslint/js';
@@ -20,7 +21,7 @@ import eslintTs from 'typescript-eslint';
20
21
  // collect gitignore excludes
21
22
  let gitIgnoreLines = [];
22
23
  try {
23
- const gitIgnores = await readFile(pathToFileURL(`${process.cwd()}/.gitignore`).href, 'utf-8');
24
+ const gitIgnores = await readFile(pathToFileURL(`${cwd()}/.gitignore`).href, 'utf-8');
24
25
  gitIgnoreLines = gitIgnores
25
26
  .split('\n')
26
27
  .map(line => line.trim().replace(/^\//, ''))
@@ -166,7 +167,7 @@ export default defineConfig([
166
167
  'html/require-input-label': 'error',
167
168
  },
168
169
  rules: {
169
- 'html/indent': ['error', 2],
170
+ '@html-eslint/indent': ['error', 2],
170
171
  },
171
172
  },
172
173
  // JSON files
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enke.dev/lint",
3
- "version": "0.10.5",
3
+ "version": "0.10.7",
4
4
  "description": "Meta package to provide linting for web projects",
5
5
  "homepage": "https://github.com/enke-dev/lint",
6
6
  "repository": {
@@ -19,8 +19,8 @@
19
19
  "main": "eslint.config.js",
20
20
  "types": "eslint.config.d.ts",
21
21
  "scripts": {
22
- "lint": "eslint -c test.config.ts .",
23
22
  "test": "node --experimental-strip-types --test test.run.ts",
23
+ "lint": "eslint -c test.eslint.config.ts .",
24
24
  "inspect": "./node_modules/.bin/eslint-config-inspector --config eslint.config.ts",
25
25
  "dev": "tsc -p tsconfig.build.json --watch",
26
26
  "build": "tsc -p tsconfig.build.json"
@@ -71,6 +71,10 @@
71
71
  "eslint": "9.35.0",
72
72
  "jiti": "2.5.1",
73
73
  "prettier": "3.6.2",
74
+ "stylelint": "16.24.0",
75
+ "stylelint-config-rational-order": "0.1.2",
76
+ "stylelint-config-standard-scss": "16.0.0",
77
+ "stylelint-order": "7.0.0",
74
78
  "typescript": "5.9.2",
75
79
  "typescript-eslint": "8.44.0"
76
80
  }