@modern-js-app/eslint-config 1.2.8 → 1.2.9
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 +10 -0
- package/package.json +2 -18
- package/ts.withType.js +12 -37
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @modern-js-app/eslint-config
|
|
2
2
|
|
|
3
|
+
## 1.2.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 86c243ca: refactor: ts type checking extends `@typescript-eslint/recommended-requiring-type-checking`
|
|
8
|
+
- 3908299a: fix: peer deps warning of eslint plugins
|
|
9
|
+
- Updated dependencies [a0475f1a]
|
|
10
|
+
- @modern-js/plugin-jarvis@1.2.8
|
|
11
|
+
- @modern-js/babel-preset-app@1.2.7
|
|
12
|
+
|
|
3
13
|
## 1.2.8
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js-app/eslint-config",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"description": "The meta-framework suite designed from scratch for frontend-focused modern web development.",
|
|
5
5
|
"homepage": "https://modernjs.dev",
|
|
6
6
|
"bugs": "https://github.com/modern-js-dev/modern.js/issues",
|
|
@@ -13,23 +13,7 @@
|
|
|
13
13
|
"modern.js"
|
|
14
14
|
],
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@
|
|
17
|
-
"@babel/eslint-plugin": "^7.13.10",
|
|
18
|
-
"@typescript-eslint/eslint-plugin": "^5.17.0",
|
|
19
|
-
"@typescript-eslint/parser": "^5.17.0",
|
|
20
|
-
"eslint": "^7.32.0",
|
|
21
|
-
"eslint-config-prettier": "^8.3.0",
|
|
22
|
-
"eslint-import-resolver-webpack": "^0.13.1",
|
|
23
|
-
"eslint-plugin-eslint-comments": "^3.1.1",
|
|
24
|
-
"eslint-plugin-filenames": "^1.3.2",
|
|
25
|
-
"eslint-plugin-import": "^2.18.2",
|
|
26
|
-
"eslint-plugin-markdown": "^2.2.0",
|
|
27
|
-
"eslint-plugin-node": "^11.1.0",
|
|
28
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
29
|
-
"eslint-plugin-promise": "^5.1.0",
|
|
30
|
-
"eslint-plugin-react": "^7.24.0",
|
|
31
|
-
"eslint-plugin-react-hooks": "^4.2.0",
|
|
32
|
-
"prettier": "^2.5.1"
|
|
16
|
+
"@modern-js/plugin-jarvis": "^1.2.8"
|
|
33
17
|
},
|
|
34
18
|
"dependencies": {
|
|
35
19
|
"@modern-js/babel-preset-app": "^1.2.7"
|
package/ts.withType.js
CHANGED
|
@@ -9,48 +9,23 @@ module.exports = {
|
|
|
9
9
|
// don't set tsconfigRootDir, using the path relative to the cwd
|
|
10
10
|
project: ['./tsconfig.json'],
|
|
11
11
|
},
|
|
12
|
+
extends: [
|
|
13
|
+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
14
|
+
],
|
|
12
15
|
rules: {
|
|
13
|
-
|
|
14
|
-
'@typescript-eslint/await-thenable': 'error',
|
|
15
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-for-in-array.md
|
|
16
|
-
'@typescript-eslint/no-for-in-array': 'error',
|
|
17
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-implied-eval.md
|
|
18
|
-
'no-implied-eval': 'off',
|
|
19
|
-
'@typescript-eslint/no-implied-eval': 'error',
|
|
20
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-misused-promises.md
|
|
16
|
+
'@typescript-eslint/no-floating-promises': 'off',
|
|
21
17
|
'@typescript-eslint/no-misused-promises': [
|
|
22
18
|
'error',
|
|
23
19
|
{ checksVoidReturn: false },
|
|
24
20
|
],
|
|
25
|
-
|
|
26
|
-
'@typescript-eslint/no-
|
|
27
|
-
|
|
28
|
-
'@typescript-eslint/no-
|
|
29
|
-
|
|
30
|
-
'@typescript-eslint/
|
|
31
|
-
|
|
32
|
-
'@typescript-eslint/
|
|
33
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin//docs/rules/no-unnecessary-type-arguments.md
|
|
34
|
-
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
|
35
|
-
// https://github.com/typescript-eslint/typescript-eslint/pull/294
|
|
36
|
-
'@typescript-eslint/prefer-includes': 'error',
|
|
37
|
-
// https://github.com/typescript-eslint/typescript-eslint/pull/289
|
|
38
|
-
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
|
|
39
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-regexp-exec.md
|
|
40
|
-
'@typescript-eslint/prefer-regexp-exec': 'error',
|
|
41
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-readonly.md
|
|
42
|
-
'@typescript-eslint/prefer-readonly': 'error',
|
|
43
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/switch-exhaustiveness-check.md
|
|
44
|
-
'@typescript-eslint/switch-exhaustiveness-check': 'error',
|
|
45
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/55eb0cfac20ccbc2e954083dd554dbcfcbed64fb/packages/eslint-plugin/docs/rules/return-await.md
|
|
46
|
-
'no-return-await': 'off',
|
|
47
|
-
'@typescript-eslint/return-await': 'error',
|
|
48
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/dot-notation.md
|
|
49
|
-
'dot-notation': 'off',
|
|
50
|
-
'@typescript-eslint/dot-notation': ['error', { allowKeywords: true }],
|
|
51
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-throw-literal.md
|
|
52
|
-
'no-throw-literal': 'off',
|
|
53
|
-
'@typescript-eslint/no-throw-literal': 'error',
|
|
21
|
+
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
22
|
+
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
23
|
+
'@typescript-eslint/no-unsafe-call': 'off',
|
|
24
|
+
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
25
|
+
'@typescript-eslint/no-unsafe-return': 'off',
|
|
26
|
+
'@typescript-eslint/require-await': 'off',
|
|
27
|
+
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
28
|
+
'@typescript-eslint/unbound-method': 'off',
|
|
54
29
|
},
|
|
55
30
|
},
|
|
56
31
|
],
|