@modern-js-app/eslint-config 1.2.11 → 1.2.14
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 +19 -0
- package/base.js +4 -24
- package/package.json +24 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @modern-js-app/eslint-config
|
|
2
2
|
|
|
3
|
+
## 1.2.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 811d83f94: fix(eslint-config): inconsistent experience between format and auto fix
|
|
8
|
+
- Updated dependencies [63c354ad5]
|
|
9
|
+
- Updated dependencies [12fc5ac88]
|
|
10
|
+
- Updated dependencies [97bb6adb9]
|
|
11
|
+
- @modern-js/babel-preset-app@1.4.2
|
|
12
|
+
|
|
13
|
+
## 1.2.13
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- a1198d509: feat: bump babel 7.18.0
|
|
18
|
+
- Updated dependencies [a1198d509]
|
|
19
|
+
- Updated dependencies [a1198d509]
|
|
20
|
+
- @modern-js/babel-preset-app@1.4.0
|
|
21
|
+
|
|
3
22
|
## 1.2.10
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/base.js
CHANGED
|
@@ -44,8 +44,6 @@ module.exports = {
|
|
|
44
44
|
'promise',
|
|
45
45
|
// https://www.npmjs.com/package/eslint-plugin-node
|
|
46
46
|
'node',
|
|
47
|
-
// https://github.com/gajus/eslint-plugin-jsdoc
|
|
48
|
-
// 'jsdoc',
|
|
49
47
|
// https: //github.com/eslint/eslint-plugin-markdown
|
|
50
48
|
'markdown',
|
|
51
49
|
],
|
|
@@ -828,11 +826,6 @@ module.exports = {
|
|
|
828
826
|
// https://eslint.org/docs/rules/wrap-regex
|
|
829
827
|
'wrap-regex': 'off',
|
|
830
828
|
|
|
831
|
-
/*
|
|
832
|
-
* ECMAScript 6
|
|
833
|
-
* https://eslint.org/docs/rules/arrow-body-style
|
|
834
|
-
*/
|
|
835
|
-
'arrow-body-style': ['error', 'as-needed'],
|
|
836
829
|
// https://eslint.org/docs/rules/arrow-parens
|
|
837
830
|
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }],
|
|
838
831
|
// https://eslint.org/docs/rules/arrow-spacing
|
|
@@ -893,8 +886,6 @@ module.exports = {
|
|
|
893
886
|
'no-var': 'error',
|
|
894
887
|
// https://eslint.org/docs/rules/object-shorthand
|
|
895
888
|
'object-shorthand': ['error', 'always'],
|
|
896
|
-
// https://eslint.org/docs/rules/prefer-arrow-callback
|
|
897
|
-
'prefer-arrow-callback': ['error', { allowNamedFunctions: true }],
|
|
898
889
|
// https://eslint.org/docs/rules/prefer-const
|
|
899
890
|
'prefer-const': [
|
|
900
891
|
'error',
|
|
@@ -942,22 +933,11 @@ module.exports = {
|
|
|
942
933
|
/*
|
|
943
934
|
* prettier
|
|
944
935
|
* https://github.com/prettier/prettier#options
|
|
936
|
+
* https://github.com/prettier/eslint-plugin-prettier#recommended-configuration
|
|
945
937
|
*/
|
|
946
|
-
'prettier/prettier':
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
printWidth: 80,
|
|
950
|
-
tabWidth: 2,
|
|
951
|
-
useTabs: false,
|
|
952
|
-
semi: true,
|
|
953
|
-
singleQuote: true,
|
|
954
|
-
trailingComma: 'all',
|
|
955
|
-
bracketSpacing: true,
|
|
956
|
-
bracketSameLine: true,
|
|
957
|
-
arrowParens: 'avoid',
|
|
958
|
-
endOfLine: 'auto',
|
|
959
|
-
},
|
|
960
|
-
],
|
|
938
|
+
'prettier/prettier': 'error',
|
|
939
|
+
'arrow-body-style': 'off',
|
|
940
|
+
'prefer-arrow-callback': 'off',
|
|
961
941
|
|
|
962
942
|
/*
|
|
963
943
|
* import
|
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.14",
|
|
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",
|
|
@@ -12,17 +12,30 @@
|
|
|
12
12
|
"modern",
|
|
13
13
|
"modern.js"
|
|
14
14
|
],
|
|
15
|
-
"peerDependencies": {
|
|
16
|
-
"@modern-js/plugin-jarvis": "^1.2.11"
|
|
17
|
-
},
|
|
18
15
|
"dependencies": {
|
|
19
|
-
"@
|
|
16
|
+
"@babel/core": "^7.18.0",
|
|
17
|
+
"@babel/eslint-parser": "^7.18.0",
|
|
18
|
+
"@babel/eslint-plugin": "^7.17.7",
|
|
19
|
+
"@modern-js/babel-preset-app": "^1.4.2",
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "^5.17.0",
|
|
21
|
+
"@typescript-eslint/parser": "^5.17.0",
|
|
22
|
+
"eslint": "^7.32.0",
|
|
23
|
+
"eslint-config-prettier": "^8.3.0",
|
|
24
|
+
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
25
|
+
"eslint-plugin-filenames": "^1.3.2",
|
|
26
|
+
"eslint-plugin-import": "^2.24.1",
|
|
27
|
+
"eslint-plugin-markdown": "^2.2.0",
|
|
28
|
+
"eslint-plugin-node": "^11.1.0",
|
|
29
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
30
|
+
"eslint-plugin-promise": "^5.1.0",
|
|
31
|
+
"eslint-plugin-react": "^7.24.0",
|
|
32
|
+
"eslint-plugin-react-hooks": "^4.2.0",
|
|
33
|
+
"prettier": "^2.3.2",
|
|
34
|
+
"typescript": "^4"
|
|
20
35
|
},
|
|
21
36
|
"devDependencies": {
|
|
22
37
|
"@scripts/build": "0.0.0",
|
|
23
|
-
"eslint": "^
|
|
24
|
-
"eslint-find-rules": "^3.4.0",
|
|
25
|
-
"eslint-index": "^1.5.0"
|
|
38
|
+
"eslint-find-rules": "^3.4.0"
|
|
26
39
|
},
|
|
27
40
|
"publishConfig": {
|
|
28
41
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -30,7 +43,7 @@
|
|
|
30
43
|
},
|
|
31
44
|
"main": "index.js",
|
|
32
45
|
"scripts": {
|
|
33
|
-
"check": "eslint-find-rules --unused index.js"
|
|
34
|
-
|
|
35
|
-
|
|
46
|
+
"check": "eslint-find-rules --unused index.js"
|
|
47
|
+
},
|
|
48
|
+
"readme": "\n<p align=\"center\">\n <a href=\"https://modernjs.dev\" target=\"blank\"><img src=\"https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png\" width=\"300\" alt=\"Modern.js Logo\" /></a>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/apis)\n\n## Contributing\n\n- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)\n"
|
|
36
49
|
}
|