eslint-config-heck 1.5.0 → 1.6.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/.releaserc.json +3 -0
- package/CHANGELOG.md +152 -0
- package/node.js +5 -13
- package/package.json +14 -8
package/.releaserc.json
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# [1.5.0](https://github.com/atheck/eslint-config-heck/compare/v1.4.0...v1.5.0) (2022-03-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add new typescript linting rules ([ee6162e](https://github.com/atheck/eslint-config-heck/commit/ee6162eaaf2f59094f494127c457ba4029c30df5))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# [1.4.0](https://github.com/atheck/eslint-config-heck/compare/v1.3.1...v1.4.0) (2022-02-27)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* add new rules ([6fe363d](https://github.com/atheck/eslint-config-heck/commit/6fe363d9a4d981337d251a29bac84e9be18ddac5))
|
|
16
|
+
* enable option to report unused disable directives ([b18e91a](https://github.com/atheck/eslint-config-heck/commit/b18e91a1bbcb7ab5bf42c3d80aaa08edc169450e))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## [1.3.1](https://github.com/atheck/eslint-config-heck/compare/v1.3.0...v1.3.1) (2022-01-18)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* modify options of @typescript-eslint/explicit-function-return-type rule ([a66e2d6](https://github.com/atheck/eslint-config-heck/commit/a66e2d6d5edee403d218e27c9e9d3085b875e4bc))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# [1.3.0](https://github.com/atheck/eslint-config-heck/compare/v1.2.0...v1.3.0) (2022-01-18)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
* add and update new and modified rules ([a466ddc](https://github.com/atheck/eslint-config-heck/commit/a466ddcad0be6f32085df41ad5c0c7b0cb367681))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# [1.2.0](https://github.com/atheck/eslint-config-heck/compare/v1.1.2...v1.2.0) (2021-12-03)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Features
|
|
42
|
+
|
|
43
|
+
* replace deprecation plugin with @delagen/depreaction ([c07f621](https://github.com/atheck/eslint-config-heck/commit/c07f621d05e721a396f75ec5e4d9fb20b6e9cb5b))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## [1.1.2](https://github.com/atheck/eslint-config-heck/compare/v1.1.1...v1.1.2) (2021-12-03)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Bug Fixes
|
|
51
|
+
|
|
52
|
+
* change order in react sort-comp rule ([0ce0b78](https://github.com/atheck/eslint-config-heck/commit/0ce0b786edaf9a5049ac0a1f98269715cbc3990f))
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## [1.1.1](https://github.com/atheck/eslint-config-heck/compare/v1.1.0...v1.1.1) (2021-11-30)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Bug Fixes
|
|
60
|
+
|
|
61
|
+
* use avoidEscape option in quotes rule ([cb0b732](https://github.com/atheck/eslint-config-heck/commit/cb0b732a6fb0329892d203a06e1a909c2db2511b))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# [1.1.0](https://github.com/atheck/eslint-config-heck/compare/v1.0.0...v1.1.0) (2021-11-29)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Features
|
|
69
|
+
|
|
70
|
+
* use advanced config of array-type-spacing rule ([d78a729](https://github.com/atheck/eslint-config-heck/commit/d78a7293749b0c1df9a219ca5a00ae8a7ea878a5))
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
# [1.0.0](https://github.com/atheck/eslint-config-heck/compare/v0.1.4...v1.0.0) (2021-11-28)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### Features
|
|
78
|
+
|
|
79
|
+
* add eslint-plugin-typescript-heck ([6075e26](https://github.com/atheck/eslint-config-heck/commit/6075e26f23b9e9c111e256296a60ad95400dc805))
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
## [0.1.4](https://github.com/atheck/eslint-config-heck/compare/v0.1.3...v0.1.4) (2021-11-23)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Bug Fixes
|
|
87
|
+
|
|
88
|
+
* modify some rules ([b6a51a3](https://github.com/atheck/eslint-config-heck/commit/b6a51a35292f8abf6b97f08d799fcb2277fdf562))
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## [0.1.3](https://github.com/atheck/eslint-config-heck/compare/v0.1.2...v0.1.3) (2021-11-22)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Bug Fixes
|
|
96
|
+
|
|
97
|
+
* modify some rules ([3187118](https://github.com/atheck/eslint-config-heck/commit/31871182cc4df92d92ff42dae9798c13f88bca77))
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
## [0.1.2](https://github.com/atheck/eslint-config-heck/compare/v0.1.1...v0.1.2) (2021-11-21)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Bug Fixes
|
|
105
|
+
|
|
106
|
+
* modify object-curly-spacing rule ([15c0a9f](https://github.com/atheck/eslint-config-heck/commit/15c0a9fd7d10a7a0090be2c249e798a5dfc9271d))
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
## [0.1.1](https://github.com/atheck/eslint-config-heck/compare/v0.1.0...v0.1.1) (2021-11-19)
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### Features
|
|
114
|
+
|
|
115
|
+
* modified some rules ([276ec84](https://github.com/atheck/eslint-config-heck/commit/276ec848d4b416b5e932aa681d266dd1298a8e20))
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
# [0.1.0](https://github.com/atheck/eslint-config-heck/compare/v0.0.4...v0.1.0) (2021-11-17)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
## [0.0.4](https://github.com/atheck/eslint-config-heck/compare/v0.0.3...v0.0.4) (2021-11-10)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### Bug Fixes
|
|
127
|
+
|
|
128
|
+
* update eslint jest plugin rules ([705c86a](https://github.com/atheck/eslint-config-heck/commit/705c86a2d75f95a975188064f49979b1d5bf6c17))
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
## [0.0.3](https://github.com/atheck/eslint-config-heck/compare/v0.0.2...v0.0.3) (2021-11-10)
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
## [0.0.2](https://github.com/atheck/eslint-config-heck/compare/v0.0.1...v0.0.2) (2021-11-10)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
## [0.0.1](https://github.com/atheck/eslint-config-heck/compare/9fd6de87a11caab48a79eb3831d74470cab22f03...v0.0.1) (2021-11-10)
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### Features
|
|
144
|
+
|
|
145
|
+
* activate rules only for js ([c5a6ebf](https://github.com/atheck/eslint-config-heck/commit/c5a6ebfaf565cc1305047947ac26bea103e05562))
|
|
146
|
+
* add deprecation plugin and rules ([d064788](https://github.com/atheck/eslint-config-heck/commit/d064788d75a81ad0104aeba44ba4b0b603854296))
|
|
147
|
+
* add eslint rules and test files ([9fd6de8](https://github.com/atheck/eslint-config-heck/commit/9fd6de87a11caab48a79eb3831d74470cab22f03))
|
|
148
|
+
* add more typescript rules ([3e8f21d](https://github.com/atheck/eslint-config-heck/commit/3e8f21d72b1bb5cc4cbc643eb08c7ae7e475d57b))
|
|
149
|
+
* add more typescript rules ([5657b83](https://github.com/atheck/eslint-config-heck/commit/5657b836788da0864c5eb998dd898f58fc2f54d5))
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
package/node.js
CHANGED
|
@@ -725,12 +725,14 @@ const rules = {
|
|
|
725
725
|
"unicorn/no-thenable": "error",
|
|
726
726
|
"unicorn/no-this-assignment": "error",
|
|
727
727
|
"unicorn/no-unreadable-array-destructuring": "error",
|
|
728
|
+
"unicorn/no-unreadable-iife": "error",
|
|
728
729
|
"unicorn/no-unsafe-regex": "off",
|
|
729
730
|
"unicorn/no-unused-properties": "error",
|
|
730
731
|
"unicorn/no-useless-fallback-in-spread": "error",
|
|
731
732
|
"unicorn/no-useless-length-check": "error",
|
|
732
733
|
"unicorn/no-useless-promise-resolve-reject": "error",
|
|
733
734
|
"unicorn/no-useless-spread": "error",
|
|
735
|
+
"unicorn/no-useless-switch-case:": "error",
|
|
734
736
|
"unicorn/no-useless-undefined": "error",
|
|
735
737
|
"unicorn/no-zero-fractions": "error",
|
|
736
738
|
"unicorn/number-literal-case": "error",
|
|
@@ -759,7 +761,9 @@ const rules = {
|
|
|
759
761
|
"unicorn/prefer-keyboard-event-key": "error",
|
|
760
762
|
"unicorn/prefer-math-trunc": "error",
|
|
761
763
|
"unicorn/prefer-modern-dom-apis": "error",
|
|
764
|
+
"unicorn/prefer-modern-math-apis": "error",
|
|
762
765
|
"unicorn/prefer-module": "off",
|
|
766
|
+
"unicorn/prefer-native-coercion-functions": "error",
|
|
763
767
|
"unicorn/prefer-negative-index": "error",
|
|
764
768
|
"unicorn/prefer-node-protocol": "error",
|
|
765
769
|
"unicorn/prefer-number-properties": "error",
|
|
@@ -987,19 +991,7 @@ const overrides = [
|
|
|
987
991
|
"brace-style": "off",
|
|
988
992
|
"@typescript-eslint/brace-style": "error",
|
|
989
993
|
"comma-dangle": "off",
|
|
990
|
-
"@typescript-eslint/comma-dangle": [
|
|
991
|
-
"error",
|
|
992
|
-
{
|
|
993
|
-
arrays: "always-multiline",
|
|
994
|
-
objects: "always-multiline",
|
|
995
|
-
imports: "always-multiline",
|
|
996
|
-
exports: "always-multiline",
|
|
997
|
-
functions: "never",
|
|
998
|
-
enums: "always-multiline",
|
|
999
|
-
generics: "never",
|
|
1000
|
-
tuples: "always-multiline",
|
|
1001
|
-
},
|
|
1002
|
-
],
|
|
994
|
+
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
|
|
1003
995
|
"comma-spacing": "off",
|
|
1004
996
|
"@typescript-eslint/comma-spacing": "error",
|
|
1005
997
|
"default-param-last": "off",
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-heck",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Contains an ESLint configuration for ES2015+, TypeScript, and React.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"install-peers": "npm install --no-save react",
|
|
8
|
-
"lint": "eslint --ext '.ts,.tsx' ."
|
|
8
|
+
"lint": "eslint --ext '.ts,.tsx' .",
|
|
9
|
+
"semantic-release": "semantic-release"
|
|
9
10
|
},
|
|
10
11
|
"keywords": [
|
|
11
12
|
"ESLint",
|
|
@@ -17,21 +18,26 @@
|
|
|
17
18
|
"license": "MIT",
|
|
18
19
|
"dependencies": {
|
|
19
20
|
"@delagen/eslint-plugin-deprecation": "1.3.2",
|
|
20
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
21
|
-
"@typescript-eslint/parser": "5.
|
|
22
|
-
"eslint": "8.
|
|
23
|
-
"eslint-plugin-jest": "26.1.
|
|
21
|
+
"@typescript-eslint/eslint-plugin": "5.18.0",
|
|
22
|
+
"@typescript-eslint/parser": "5.18.0",
|
|
23
|
+
"eslint": "8.13.0",
|
|
24
|
+
"eslint-plugin-jest": "26.1.4",
|
|
24
25
|
"eslint-plugin-react": "7.29.4",
|
|
25
26
|
"eslint-plugin-typescript-heck": "1.2.1",
|
|
26
|
-
"eslint-plugin-unicorn": "
|
|
27
|
+
"eslint-plugin-unicorn": "42.0.0",
|
|
27
28
|
"typescript": "4.6.3"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"@types/jest": "27.4.1",
|
|
31
32
|
"@types/react": "17.0.43",
|
|
32
|
-
"jest": "27.5.1"
|
|
33
|
+
"jest": "27.5.1",
|
|
34
|
+
"semantic-release": "19.0.2"
|
|
33
35
|
},
|
|
34
36
|
"peerDependencies": {
|
|
35
37
|
"react": ">=16.8.0"
|
|
38
|
+
},
|
|
39
|
+
"repository": {
|
|
40
|
+
"type": "git",
|
|
41
|
+
"url": "https://github.com/atheck/eslint-config-heck.git"
|
|
36
42
|
}
|
|
37
43
|
}
|