eslint-config-heck 5.0.0 → 6.0.0

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/biomeCss.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3
+ "linter": {
4
+ "enabled": true,
5
+ "rules": {
6
+ "a11y": {
7
+ "useGenericFontNames": "error"
8
+ },
9
+ "correctness": {
10
+ "noInvalidDirectionInLinearGradient": "error",
11
+ "noInvalidGridAreas": "error",
12
+ "noInvalidPositionAtImportRule": "error",
13
+ "noUnknownFunction": "error",
14
+ "noUnknownMediaFeatureName": "error",
15
+ "noUnknownProperty": "error",
16
+ "noUnknownUnit": "error",
17
+ "noUnmatchableAnbSelector": "error"
18
+ },
19
+ "suspicious": {
20
+ "noDuplicateAtImportRules": "error",
21
+ "noDuplicateFontNames": "error",
22
+ "noDuplicateSelectorsKeyframeBlock": "error",
23
+ "noEmptyBlock": "error",
24
+ "noImportantInKeyframe": "error",
25
+ "noShorthandPropertyOverrides": "error"
26
+ },
27
+ "nursery": {
28
+ "noDescendingSpecificity": "error",
29
+ "noDuplicateCustomProperties": "error",
30
+ "noDuplicateProperties": "error",
31
+ "noIrregularWhitespace": "error",
32
+ "noMissingVarFunction": "error",
33
+ "noUnknownPseudoClass": "error",
34
+ "noUnknownPseudoElement": "error",
35
+ "noUnknownTypeSelector": "error",
36
+ "noValueAtRule": "error"
37
+ }
38
+ }
39
+ }
40
+ }
package/biomeJson.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3
+ "linter": {
4
+ "enabled": true,
5
+ "rules": {
6
+ "suspicious": {
7
+ "noDuplicateObjectKeys": "error"
8
+ }
9
+ }
10
+ }
11
+ }
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "eslint-config-heck",
3
- "version": "5.0.0",
3
+ "version": "6.0.0",
4
4
  "description": "Contains an ESLint configuration for ES2015+, TypeScript, and React.",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "exports": {
8
- "./biome": "./biomeLinting.json",
8
+ "./biomeJsTs": "./biomeJsTs.json",
9
+ "./biomeCss": "./biomeCss.json",
10
+ "./biomeJson": "./biomeJson.json",
9
11
  "./node": "./node.js",
10
12
  "./nodeWithBiome": "./nodeWithBiome.js",
11
13
  "./complexity": "./complexity.js",
@@ -26,10 +28,10 @@
26
28
  "author": "atheck",
27
29
  "license": "MIT",
28
30
  "dependencies": {
29
- "@stylistic/eslint-plugin": "4.0.0",
31
+ "@stylistic/eslint-plugin": "4.0.1",
30
32
  "@typescript-eslint/eslint-plugin": "8.24.1",
31
33
  "@typescript-eslint/parser": "8.24.1",
32
- "eslint": "9.20.1",
34
+ "eslint": "9.21.0",
33
35
  "eslint-plugin-import": "2.31.0",
34
36
  "eslint-plugin-jest": "28.11.0",
35
37
  "eslint-plugin-react": "7.37.4",
@@ -45,7 +47,7 @@
45
47
  "@testing-library/react": "16.2.0",
46
48
  "@types/jest": "29.5.14",
47
49
  "@types/react": "18.3.18",
48
- "globals": "15.15.0",
50
+ "globals": "16.0.0",
49
51
  "jest": "29.7.0",
50
52
  "react": "18.3.1",
51
53
  "semantic-release": "24.2.3"
package/readme.md CHANGED
@@ -87,11 +87,17 @@ If you are using Biome you can use the "nodeWithBiome" configuration:
87
87
  }
88
88
  ~~~
89
89
 
90
- If you are using Biome you can also extend your Biome config with the "biomeLinting.json":
90
+ If you are using Biome you can also extend your Biome config with the following Biome configurations:
91
+
92
+ - JavaScript/TypeScript: biomeJsTs
93
+ - CSS: biomeCss
94
+ - JSON: biomeJson
95
+
96
+ To enable all Biome rules, you can use the following configuration:
91
97
 
92
98
  ~~~json
93
99
  {
94
100
  "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
95
- "extends": ["eslint-config-heck/biome"]
101
+ "extends": ["eslint-config-heck/biomeJsTs", "eslint-config-heck/biomeCss", "eslint-config-heck/biomeJson"],
96
102
  }
97
103
  ~~~
File without changes