@crycode/eslint-config 1.2.0 → 1.2.2
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 +11 -1
- package/eslint-config.js +11 -4
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ESLint config
|
|
2
2
|
|
|
3
|
-
This modules provides an ESLint configuration to be used with TypeScript
|
|
3
|
+
This modules provides an ESLint configuration to be used with **TypeScript**
|
|
4
4
|
according to my personal preferences.
|
|
5
5
|
|
|
6
6
|
## Usage
|
|
@@ -48,6 +48,16 @@ module.exports = {
|
|
|
48
48
|
Placeholder for the next version (at the beginning of the line):
|
|
49
49
|
### **WORK IN PROGRESS**
|
|
50
50
|
-->
|
|
51
|
+
### 1.2.2 (2023-09-07)
|
|
52
|
+
|
|
53
|
+
* Fixed usage of `eslint-plugin-import`
|
|
54
|
+
* Added recommended `import` rules
|
|
55
|
+
|
|
56
|
+
### 1.2.1 (2023-09-07)
|
|
57
|
+
|
|
58
|
+
* Replaced deprecated rule `@typescript-eslint/no-duplicate-imports` with `import/no-duplicates` (added dependency to `eslint-plugin-import`)
|
|
59
|
+
* Renamed rule `@typescript-eslint/no-parameter-properties` to `@typescript-eslint/parameter-properties`
|
|
60
|
+
|
|
51
61
|
### 1.2.0 (2023-09-07)
|
|
52
62
|
|
|
53
63
|
* Fixed rule `@typescript-eslint/restrict-plus-operands`
|
package/eslint-config.js
CHANGED
|
@@ -16,9 +16,16 @@ module.exports = {
|
|
|
16
16
|
|
|
17
17
|
extends: [
|
|
18
18
|
'plugin:@typescript-eslint/recommended',
|
|
19
|
+
'plugin:import/recommended',
|
|
20
|
+
'plugin:import/typescript',
|
|
19
21
|
],
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
settings: {
|
|
24
|
+
'import/resolver': {
|
|
25
|
+
typescript: true,
|
|
26
|
+
node: true,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
22
29
|
|
|
23
30
|
ignorePatterns: [
|
|
24
31
|
'/build/*',
|
|
@@ -221,10 +228,10 @@ module.exports = {
|
|
|
221
228
|
'no-console': 'error',
|
|
222
229
|
|
|
223
230
|
'no-duplicate-imports': 'off',
|
|
224
|
-
'
|
|
231
|
+
'import/no-duplicates': [
|
|
225
232
|
'error',
|
|
226
233
|
{
|
|
227
|
-
|
|
234
|
+
considerQueryString: true,
|
|
228
235
|
},
|
|
229
236
|
],
|
|
230
237
|
|
|
@@ -250,7 +257,7 @@ module.exports = {
|
|
|
250
257
|
|
|
251
258
|
'@typescript-eslint/no-namespace': 'error',
|
|
252
259
|
|
|
253
|
-
'@typescript-eslint/
|
|
260
|
+
'@typescript-eslint/parameter-properties': 'error',
|
|
254
261
|
|
|
255
262
|
'no-redeclare': 'off',
|
|
256
263
|
'@typescript-eslint/no-redeclare': 'error',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crycode/eslint-config",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "ESLint configuration to be used with TypeScript according to my personal preferences",
|
|
5
5
|
"main": "eslint-config.js",
|
|
6
6
|
"scripts": {
|
|
@@ -27,7 +27,9 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@typescript-eslint/eslint-plugin": "^6.6.0",
|
|
30
|
-
"@typescript-eslint/parser": "^6.6.0"
|
|
30
|
+
"@typescript-eslint/parser": "^6.6.0",
|
|
31
|
+
"eslint-import-resolver-typescript": "^3.6.0",
|
|
32
|
+
"eslint-plugin-import": "^2.28.1"
|
|
31
33
|
},
|
|
32
34
|
"peerDependencies": {
|
|
33
35
|
"eslint": "^8.48.0"
|