eslint-config-heck 1.52.1 → 2.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/node.js +1 -0
- package/nodeWithBiome.js +1 -0
- package/package.json +14 -14
- package/readme.md +1 -13
- package/excludeRome.js +0 -122
package/node.js
CHANGED
|
@@ -1054,6 +1054,7 @@ const overrides = [
|
|
|
1054
1054
|
"@typescript-eslint/no-unsafe-enum-comparison": "error",
|
|
1055
1055
|
"@typescript-eslint/no-unsafe-member-access": "error",
|
|
1056
1056
|
"@typescript-eslint/no-unsafe-return": "error",
|
|
1057
|
+
"@typescript-eslint/no-unsafe-unary-minus": "error",
|
|
1057
1058
|
"@typescript-eslint/no-useless-empty-export": "error",
|
|
1058
1059
|
"@typescript-eslint/no-var-requires": "error",
|
|
1059
1060
|
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
package/nodeWithBiome.js
CHANGED
|
@@ -895,6 +895,7 @@ const overrides = [
|
|
|
895
895
|
"@typescript-eslint/no-unsafe-enum-comparison": "error",
|
|
896
896
|
"@typescript-eslint/no-unsafe-member-access": "error",
|
|
897
897
|
"@typescript-eslint/no-unsafe-return": "error",
|
|
898
|
+
"@typescript-eslint/no-unsafe-unary-minus": "error",
|
|
898
899
|
"@typescript-eslint/no-useless-empty-export": "off",
|
|
899
900
|
"@typescript-eslint/no-var-requires": "error",
|
|
900
901
|
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-heck",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Contains an ESLint configuration for ES2015+, TypeScript, and React.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,29 +17,29 @@
|
|
|
17
17
|
"author": "atheck",
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
21
|
-
"@typescript-eslint/parser": "6.
|
|
22
|
-
"eslint": "8.
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "6.12.0",
|
|
21
|
+
"@typescript-eslint/parser": "6.12.0",
|
|
22
|
+
"eslint": "8.54.0",
|
|
23
23
|
"eslint-import-resolver-typescript": "3.6.1",
|
|
24
24
|
"eslint-plugin-deprecation": "2.0.0",
|
|
25
|
-
"eslint-plugin-import": "2.
|
|
26
|
-
"eslint-plugin-jest": "27.
|
|
25
|
+
"eslint-plugin-import": "2.29.0",
|
|
26
|
+
"eslint-plugin-jest": "27.6.0",
|
|
27
27
|
"eslint-plugin-react": "7.33.2",
|
|
28
28
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
29
29
|
"eslint-plugin-react-native": "4.1.0",
|
|
30
|
-
"eslint-plugin-testing-library": "6.
|
|
30
|
+
"eslint-plugin-testing-library": "6.2.0",
|
|
31
31
|
"eslint-plugin-typescript-heck": "1.3.1",
|
|
32
|
-
"eslint-plugin-unicorn": "
|
|
33
|
-
"typescript": "5.
|
|
32
|
+
"eslint-plugin-unicorn": "49.0.0",
|
|
33
|
+
"typescript": "5.3.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@biomejs/biome": "1.3.
|
|
37
|
-
"@testing-library/react": "14.
|
|
38
|
-
"@types/jest": "29.5.
|
|
39
|
-
"@types/react": "18.2.
|
|
36
|
+
"@biomejs/biome": "1.3.3",
|
|
37
|
+
"@testing-library/react": "14.1.2",
|
|
38
|
+
"@types/jest": "29.5.10",
|
|
39
|
+
"@types/react": "18.2.38",
|
|
40
40
|
"jest": "29.7.0",
|
|
41
41
|
"react": "18.2.0",
|
|
42
|
-
"semantic-release": "22.0.
|
|
42
|
+
"semantic-release": "22.0.8"
|
|
43
43
|
},
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|
package/readme.md
CHANGED
|
@@ -62,7 +62,7 @@ If you are using react-native, you can enable react-native specific rules:
|
|
|
62
62
|
|
|
63
63
|
### No formatting
|
|
64
64
|
|
|
65
|
-
To disable some of the formatting rules (when using a formatter like prettier or
|
|
65
|
+
To disable some of the formatting rules (when using a formatter like prettier or Biome) you can use this configuration:
|
|
66
66
|
|
|
67
67
|
~~~json
|
|
68
68
|
{
|
|
@@ -88,15 +88,3 @@ If you are using Biome you can also extend your Biome config with the "biomeLint
|
|
|
88
88
|
"extends": ["./node_modules/eslint-config-heck/biomeLinting.json"]
|
|
89
89
|
}
|
|
90
90
|
~~~
|
|
91
|
-
|
|
92
|
-
### Exclude rules included in Rome
|
|
93
|
-
|
|
94
|
-
To disable some the rules that are already included in Rome you can use this configuration:
|
|
95
|
-
|
|
96
|
-
~~~json
|
|
97
|
-
{
|
|
98
|
-
"extends": ["heck/node", "heck/excludeRome"]
|
|
99
|
-
}
|
|
100
|
-
~~~
|
|
101
|
-
|
|
102
|
-
**Attention:** Since Rome is no longer maintained, this will not be the case with this ruleset. Use the Biome rulesets instead.
|
package/excludeRome.js
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
rules: {
|
|
5
|
-
// ESLint
|
|
6
|
-
"constructor-super": "off",
|
|
7
|
-
"default-case-last": "off",
|
|
8
|
-
"default-param-last": "off",
|
|
9
|
-
eqeqeq: "off",
|
|
10
|
-
"for-direction": "off",
|
|
11
|
-
"no-async-promise-executor": "off",
|
|
12
|
-
"no-case-declarations": "off",
|
|
13
|
-
"no-class-assign": "off",
|
|
14
|
-
"no-compare-neg-zero": "off",
|
|
15
|
-
"no-cond-assign": "off",
|
|
16
|
-
"no-const-assign": "off",
|
|
17
|
-
"no-constructor-return": "off",
|
|
18
|
-
"no-debugger": "off",
|
|
19
|
-
"no-delete-var": "off",
|
|
20
|
-
"no-dupe-args": "off",
|
|
21
|
-
"no-dupe-class-members": "off",
|
|
22
|
-
"no-dupe-keys": "off",
|
|
23
|
-
"no-duplicate-case": "off",
|
|
24
|
-
"no-else-return": "off",
|
|
25
|
-
"no-empty-character-class": "off",
|
|
26
|
-
"no-empty-static-block": "off",
|
|
27
|
-
"no-empty": "off",
|
|
28
|
-
"no-ex-assign": "off",
|
|
29
|
-
"no-extra-label": "off",
|
|
30
|
-
"no-extra-semi": "off",
|
|
31
|
-
"no-func-assign": "off",
|
|
32
|
-
"no-import-assign": "off",
|
|
33
|
-
"no-inner-declarations": "off",
|
|
34
|
-
"no-label-var": "off",
|
|
35
|
-
"no-lone-blocks": "error",
|
|
36
|
-
"no-lonely-if": "off",
|
|
37
|
-
"no-loss-of-precision": "off",
|
|
38
|
-
"no-mixed-operators": "off",
|
|
39
|
-
"no-negated-condition": "off",
|
|
40
|
-
"no-new-native-nonconstructor": "off",
|
|
41
|
-
"no-new-symbol": "off",
|
|
42
|
-
"no-obj-calls": "off",
|
|
43
|
-
"no-param-reassign": "off",
|
|
44
|
-
"no-prototype-builtins": "off",
|
|
45
|
-
"no-redeclare": "off",
|
|
46
|
-
"no-regex-spaces": "off",
|
|
47
|
-
"no-return-assign": "off",
|
|
48
|
-
"no-self-compare": "off",
|
|
49
|
-
"no-sequences": "off",
|
|
50
|
-
"no-setter-return": "off",
|
|
51
|
-
"no-shadow-restricted-names": "off",
|
|
52
|
-
"no-sparse-arrays": "off",
|
|
53
|
-
"no-this-before-super": "off",
|
|
54
|
-
"no-undef": "off",
|
|
55
|
-
"no-unreachable": "off",
|
|
56
|
-
"no-unsafe-finally": "off",
|
|
57
|
-
"no-unsafe-negation": "off",
|
|
58
|
-
"no-unsafe-optional-chaining": "off",
|
|
59
|
-
"no-unused-labels": "off",
|
|
60
|
-
"no-unused-vars": "off",
|
|
61
|
-
"no-useless-catch": "off",
|
|
62
|
-
"no-useless-constructor": "off",
|
|
63
|
-
"no-useless-rename": "off",
|
|
64
|
-
"no-var": "off",
|
|
65
|
-
"no-with": "off",
|
|
66
|
-
"one-var": "off",
|
|
67
|
-
"operator-assignment": "off",
|
|
68
|
-
"prefer-const": "off",
|
|
69
|
-
"prefer-exponentiation-operator": "off",
|
|
70
|
-
"prefer-numeric-literals": "off",
|
|
71
|
-
"prefer-rest-params": "off",
|
|
72
|
-
"prefer-template": "off",
|
|
73
|
-
"require-yield": "off",
|
|
74
|
-
"sort-imports": "off",
|
|
75
|
-
"valid-typeof": "off",
|
|
76
|
-
"wrap-regex": "off",
|
|
77
|
-
|
|
78
|
-
// Typescript
|
|
79
|
-
"@typescript-eslint/array-type": "off",
|
|
80
|
-
"@typescript-eslint/default-param-last": "off",
|
|
81
|
-
"@typescript-eslint/no-dupe-class-members": "off",
|
|
82
|
-
"@typescript-eslint/no-empty-interface": "off",
|
|
83
|
-
"@typescript-eslint/no-explicit-any": "off",
|
|
84
|
-
"@typescript-eslint/no-extra-non-null-assertion": "off",
|
|
85
|
-
"@typescript-eslint/no-extra-semi": "off",
|
|
86
|
-
"@typescript-eslint/no-inferrable-types": "off",
|
|
87
|
-
"@typescript-eslint/no-loss-of-precision": "off",
|
|
88
|
-
"@typescript-eslint/no-misused-new": "off",
|
|
89
|
-
"@typescript-eslint/no-namespace": "off",
|
|
90
|
-
"@typescript-eslint/no-non-null-assertion": "off",
|
|
91
|
-
"@typescript-eslint/no-redeclare": "off",
|
|
92
|
-
"@typescript-eslint/no-unnecessary-type-constraint": "off",
|
|
93
|
-
"@typescript-eslint/no-unused-vars": "off",
|
|
94
|
-
"@typescript-eslint/no-useless-constructor": "off",
|
|
95
|
-
"@typescript-eslint/prefer-as-const": "off",
|
|
96
|
-
"@typescript-eslint/prefer-enum-initializers": "off",
|
|
97
|
-
"@typescript-eslint/prefer-namespace-keyword": "off",
|
|
98
|
-
|
|
99
|
-
// Unicorn
|
|
100
|
-
"unicorn/no-extra-boolean-cast": "off",
|
|
101
|
-
"unicorn/no-lonely-if": "off",
|
|
102
|
-
"unicorn/no-negated-condition": "off",
|
|
103
|
-
"unicorn/no-useless-switch-case": "off",
|
|
104
|
-
"unicorn/prefer-array-flat-map": "off",
|
|
105
|
-
"unicorn/prefer-prototype-methods": "off",
|
|
106
|
-
"unicorn/switch-case-braces": "off",
|
|
107
|
-
|
|
108
|
-
// React
|
|
109
|
-
"react/button-has-type": "off",
|
|
110
|
-
"react/jsx-boolean-value": "off",
|
|
111
|
-
"react/jsx-fragments": "off",
|
|
112
|
-
"react/jsx-no-blank-target": "off",
|
|
113
|
-
"react/jsx-no-comment-textnodes": "off",
|
|
114
|
-
"react/jsx-no-useless-fragment": "off",
|
|
115
|
-
"react/no-array-index-key": "off",
|
|
116
|
-
"react/no-children-prop": "off",
|
|
117
|
-
"react/no-danger-with-children": "off",
|
|
118
|
-
"react/no-render-return-value": "off",
|
|
119
|
-
"react/self-closing-comp": "off",
|
|
120
|
-
"react/void-dom-elements-no-children": "off",
|
|
121
|
-
},
|
|
122
|
-
};
|