@enke.dev/lint 0.6.6 → 0.7.1

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.
@@ -0,0 +1,20 @@
1
+ {
2
+ "extends": ["stylelint-config-standard-scss", "stylelint-config-rational-order"],
3
+ "rules": {
4
+ "custom-property-pattern": [
5
+ "^-?kvlm-[a-z0-9]*(-[a-z0-9]+)*$",
6
+ {
7
+ "message": "Custom properties should be written in lowercase with hyphens starting with `--kvlm-` (or internals with a triple-slash `---kvlm-`)"
8
+ }
9
+ ],
10
+ "declaration-empty-line-before": null,
11
+ "rule-empty-line-before": ["always-multi-line", { "except": ["first-nested"] }],
12
+ "plugin/rational-order": [
13
+ true,
14
+ {
15
+ "border-in-box-model": false,
16
+ "empty-line-between-groups": true
17
+ }
18
+ ]
19
+ }
20
+ }
package/eslint.config.js CHANGED
@@ -19,7 +19,7 @@ export default eslintTs.config(eslintJs.configs.recommended, ...eslintTs.configs
19
19
  ecmaVersion: 'latest',
20
20
  project: true,
21
21
  sourceType: 'module',
22
- tsconfigRootDir: './',
22
+ tsconfigRootDir: import.meta.dirname,
23
23
  },
24
24
  },
25
25
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enke.dev/lint",
3
- "version": "0.6.6",
3
+ "version": "0.7.1",
4
4
  "description": "Meta package to provide linting for web projects",
5
5
  "homepage": "https://github.com/enke-dev/lint",
6
6
  "repository": {
@@ -8,6 +8,7 @@
8
8
  "url": "git+https://github.com/enke-dev/lint.git"
9
9
  },
10
10
  "files": [
11
+ ".stylelintrc.json",
11
12
  "eslint.config.js",
12
13
  "eslint.config.d.ts",
13
14
  "eslint-plugins.d.ts",
@@ -17,6 +18,7 @@
17
18
  "main": "eslint.config.js",
18
19
  "types": "eslint.config.d.ts",
19
20
  "scripts": {
21
+ "lint": "eslint -c eslint.config.ts ./eslint.config.ts",
20
22
  "build": "tsc"
21
23
  },
22
24
  "author": {
@@ -31,10 +33,16 @@
31
33
  "eslint": "^9.30.0",
32
34
  "prettier": "^3.6.2"
33
35
  },
36
+ "optionalDependencies": {
37
+ "stylelint": "^16.23.1",
38
+ "stylelint-config-rational-order": "^0.1.2",
39
+ "stylelint-config-standard-scss": "^15.0.1",
40
+ "stylelint-order": "^7.0.0"
41
+ },
34
42
  "dependencies": {
35
43
  "@eslint/compat": "^1.3.1",
36
44
  "@eslint/js": "^9.30.0",
37
- "@eslint/json": "^0.12.0",
45
+ "@eslint/json": "^0.13.2",
38
46
  "@typescript-eslint/eslint-plugin": "^8.35.0",
39
47
  "@typescript-eslint/parser": "^8.35.0",
40
48
  "eslint-config-prettier": "^10.1.5",
@@ -52,6 +60,7 @@
52
60
  },
53
61
  "devDependencies": {
54
62
  "@types/node": "22.15.33",
63
+ "jiti": "2.5.1",
55
64
  "typescript": "5.8.3"
56
65
  }
57
66
  }