@jarsec/eslint-config 3.2.2 → 4.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/CHANGELOG.md +15 -0
- package/index.js +34 -55
- package/package.json +18 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @jarsec/eslint-config
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 39fa095: - Remove xo and xo-typescript configurations
|
|
8
|
+
- Add standard-with-typescript configuration
|
|
9
|
+
- Remove eslint-plugin-prettier, let Prettier handle formatting in a separate step
|
|
10
|
+
- Remove custom TypeScript rules
|
|
11
|
+
|
|
12
|
+
## 3.2.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- ee1b9c4: fix(deps): update dependency eslint-plugin-perfectionist to v2.4.0
|
|
17
|
+
|
|
3
18
|
## 3.2.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/index.js
CHANGED
|
@@ -1,57 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
|
4
|
-
|
|
5
|
-
require("@rushstack/eslint-patch/modern-module-resolution");
|
|
6
|
-
|
|
7
|
-
const rules = {
|
|
8
|
-
"comma-dangle": "off",
|
|
9
|
-
"import/first": "error",
|
|
10
|
-
"import/newline-after-import": "error",
|
|
11
|
-
"import/no-duplicates": "error",
|
|
12
|
-
"no-mixed-spaces-and-tabs": "off",
|
|
13
|
-
"no-warning-comments": "off",
|
|
14
|
-
"object-curly-spacing": "off",
|
|
15
|
-
"operator-linebreak": "off",
|
|
16
|
-
};
|
|
1
|
+
require('@rushstack/eslint-patch/modern-module-resolution')
|
|
17
2
|
|
|
18
3
|
module.exports = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"import/resolver": {
|
|
53
|
-
node: true,
|
|
54
|
-
typescript: true,
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
};
|
|
4
|
+
env: {
|
|
5
|
+
node: true
|
|
6
|
+
},
|
|
7
|
+
extends: [
|
|
8
|
+
'eslint:recommended',
|
|
9
|
+
'plugin:@typescript-eslint/recommended',
|
|
10
|
+
'plugin:@typescript-eslint/stylistic',
|
|
11
|
+
'plugin:perfectionist/recommended-natural',
|
|
12
|
+
'prettier'
|
|
13
|
+
],
|
|
14
|
+
overrides: [
|
|
15
|
+
{
|
|
16
|
+
files: ['**/*/*.{test,spec}.ts'],
|
|
17
|
+
rules: {
|
|
18
|
+
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
19
|
+
'@typescript-eslint/no-unsafe-call': 'off',
|
|
20
|
+
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
21
|
+
'@typescript-eslint/unbound-method': 'off'
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
parser: '@typescript-eslint/parser',
|
|
26
|
+
parserOptions: {
|
|
27
|
+
project: './tsconfig.json'
|
|
28
|
+
},
|
|
29
|
+
plugins: ['import', 'perfectionist', '@typescript-eslint/eslint-plugin'],
|
|
30
|
+
settings: {
|
|
31
|
+
'import/resolver': {
|
|
32
|
+
node: true,
|
|
33
|
+
typescript: true
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jarsec/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "jsec's eslint configurations",
|
|
5
5
|
"author": "Jarrod Seccombe <jarrod.seccombe@icloud.com>",
|
|
6
6
|
"main": "index.js",
|
|
@@ -9,24 +9,26 @@
|
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@rushstack/eslint-patch": "1.
|
|
13
|
-
"@
|
|
14
|
-
"@typescript-eslint/
|
|
15
|
-
"eslint
|
|
16
|
-
"eslint
|
|
17
|
-
"eslint-config-
|
|
18
|
-
"eslint-
|
|
19
|
-
"eslint-plugin-import": "2.29.0",
|
|
20
|
-
"eslint-plugin-
|
|
21
|
-
"eslint-plugin-
|
|
12
|
+
"@rushstack/eslint-patch": "^1.6.0",
|
|
13
|
+
"@types/node": "^20.9.3",
|
|
14
|
+
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
15
|
+
"@typescript-eslint/parser": "^6.12.0",
|
|
16
|
+
"eslint": "^8.52.0",
|
|
17
|
+
"eslint-config-prettier": "^9.0.0",
|
|
18
|
+
"eslint-config-standard-with-typescript": "^40.0.0",
|
|
19
|
+
"eslint-plugin-import": "^2.29.0",
|
|
20
|
+
"eslint-plugin-n": "^16.3.1",
|
|
21
|
+
"eslint-plugin-perfectionist": "^2.4.0",
|
|
22
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
23
|
+
"typescript": "^5.2.2"
|
|
22
24
|
},
|
|
23
25
|
"devDependencies": {
|
|
24
|
-
"@types/node": "20.9.
|
|
25
|
-
"eslint": "8.53.0",
|
|
26
|
-
"typescript": "5.2.2"
|
|
26
|
+
"@types/node": "^20.9.1",
|
|
27
|
+
"eslint": "^8.53.0",
|
|
28
|
+
"typescript": "^5.2.2"
|
|
27
29
|
},
|
|
28
30
|
"peerDependencies": {
|
|
29
|
-
"eslint": "8.53.0",
|
|
30
|
-
"typescript": "5.2.2"
|
|
31
|
+
"eslint": "^8.53.0",
|
|
32
|
+
"typescript": "^5.2.2"
|
|
31
33
|
}
|
|
32
34
|
}
|