@modern-js-app/eslint-config 1.1.0 → 1.2.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 -66
- package/eslintrc.js +2 -1
- package/eslintrc.prettier.js +9 -0
- package/jest.config.js +8 -0
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,85 +1,34 @@
|
|
|
1
1
|
# @modern-js-app/eslint-config
|
|
2
2
|
|
|
3
|
-
## 1.
|
|
3
|
+
## 1.2.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
1. 全面支持 Windows 平台
|
|
10
|
-
|
|
11
|
-
ISSUE:
|
|
12
|
-
|
|
13
|
-
- [182](https://github.com/modern-js-dev/modern.js/issues/182)
|
|
14
|
-
- [236](https://github.com/modern-js-dev/modern.js/issues/236)
|
|
15
|
-
|
|
16
|
-
PR
|
|
17
|
-
|
|
18
|
-
- [219](https://github.com/modern-js-dev/modern.js/pull/219)
|
|
19
|
-
- [247](https://github.com/modern-js-dev/modern.js/pull/247)
|
|
20
|
-
- [249](https://github.com/modern-js-dev/modern.js/pull/249)
|
|
21
|
-
- [253](https://github.com/modern-js-dev/modern.js/pull/253)
|
|
22
|
-
- [268](https://github.com/modern-js-dev/modern.js/pull/268)
|
|
23
|
-
- [270](https://github.com/modern-js-dev/modern.js/pull/270)
|
|
24
|
-
- [273](https://github.com/modern-js-dev/modern.js/pull/273)
|
|
25
|
-
- [276](https://github.com/modern-js-dev/modern.js/pull/276)
|
|
26
|
-
|
|
27
|
-
2. 修复 Unbundled 模式启用问题
|
|
28
|
-
|
|
29
|
-
ISSUE
|
|
30
|
-
|
|
31
|
-
- [186](https://github.com/modern-js-dev/modern.js/issues/186)
|
|
32
|
-
- [224](https://github.com/modern-js-dev/modern.js/issues/224)
|
|
33
|
-
- [225](https://github.com/modern-js-dev/modern.js/issues/225)
|
|
34
|
-
- [238](https://github.com/modern-js-dev/modern.js/issues/238)
|
|
35
|
-
|
|
36
|
-
PR
|
|
37
|
-
|
|
38
|
-
- [226](https://github.com/modern-js-dev/modern.js/pull/226)
|
|
39
|
-
- [264](https://github.com/modern-js-dev/modern.js/pull/264)
|
|
40
|
-
- [codesmith-12](https://github.com/modern-js-dev/codesmith/pull/12)
|
|
41
|
-
|
|
42
|
-
3. 修复模块工程方案 .npmignore 文件初始化未生成
|
|
43
|
-
|
|
44
|
-
ISSUE
|
|
7
|
+
- cfe11628: Make Modern.js self bootstraping
|
|
45
8
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
PR
|
|
49
|
-
|
|
50
|
-
- [209](https://github.com/modern-js-dev/modern.js/pull/209)
|
|
51
|
-
|
|
52
|
-
4. 修复 Storybook 使用时浏览器打开页面报错
|
|
53
|
-
|
|
54
|
-
ISSUE
|
|
55
|
-
|
|
56
|
-
- [228](https://github.com/modern-js-dev/modern.js/issues/228)
|
|
57
|
-
|
|
58
|
-
PR
|
|
59
|
-
|
|
60
|
-
- [254](https://github.com/modern-js-dev/modern.js/pull/254)
|
|
9
|
+
### Patch Changes
|
|
61
10
|
|
|
62
|
-
|
|
11
|
+
- Updated dependencies [cfe11628]
|
|
12
|
+
- Updated dependencies [1ebc7ee2]
|
|
13
|
+
- @modern-js/babel-preset-app@1.2.0
|
|
63
14
|
|
|
64
|
-
|
|
15
|
+
## 1.1.2
|
|
65
16
|
|
|
66
|
-
|
|
67
|
-
- [257](https://github.com/modern-js-dev/modern.js/issues/257)
|
|
17
|
+
### Patch Changes
|
|
68
18
|
|
|
69
|
-
|
|
19
|
+
- a37192b1: feat: support css module declaration
|
|
70
20
|
|
|
71
|
-
|
|
72
|
-
- [271](https://github.com/modern-js-dev/modern.js/pull/271)
|
|
21
|
+
## 1.1.1
|
|
73
22
|
|
|
74
|
-
|
|
23
|
+
### Patch Changes
|
|
75
24
|
|
|
76
|
-
|
|
25
|
+
- 235f9e8d: fix crlf problem in windows lint
|
|
77
26
|
|
|
78
|
-
|
|
27
|
+
## 1.1.0
|
|
79
28
|
|
|
80
|
-
|
|
29
|
+
### Minor Changes
|
|
81
30
|
|
|
82
|
-
|
|
31
|
+
- 96119db2: Relese v1.1.0
|
|
83
32
|
|
|
84
33
|
### Patch Changes
|
|
85
34
|
|
package/eslintrc.js
CHANGED
|
@@ -997,6 +997,7 @@ module.exports = {
|
|
|
997
997
|
bracketSpacing: true,
|
|
998
998
|
jsxBracketSameLine: true,
|
|
999
999
|
arrowParens: 'avoid',
|
|
1000
|
+
endOfLine: 'auto',
|
|
1000
1001
|
},
|
|
1001
1002
|
],
|
|
1002
1003
|
|
|
@@ -1717,7 +1718,7 @@ module.exports = {
|
|
|
1717
1718
|
// https://github.com/mysticatea/eslint-plugin-node/blob/HEAD/docs/rules/process-exit-as-throw.md
|
|
1718
1719
|
'node/process-exit-as-throw': 'off',
|
|
1719
1720
|
// https://github.com/mysticatea/eslint-plugin-node/blob/HEAD/docs/rules/shebang.md
|
|
1720
|
-
'node/shebang': '
|
|
1721
|
+
'node/shebang': 'off',
|
|
1721
1722
|
// https://github.com/mysticatea/eslint-plugin-node/blob/HEAD/docs/rules/no-deprecated-api.md
|
|
1722
1723
|
'node/no-deprecated-api': 'off',
|
|
1723
1724
|
// https://github.com/mysticatea/eslint-plugin-node/blob/HEAD/docs/rules/exports-style.md
|
package/eslintrc.prettier.js
CHANGED
|
@@ -70,5 +70,14 @@ module.exports = {
|
|
|
70
70
|
'filenames/match-exported': 'off',
|
|
71
71
|
},
|
|
72
72
|
},
|
|
73
|
+
// ignore auto-generated css module declarations
|
|
74
|
+
{
|
|
75
|
+
files: ['*.css.d.ts'],
|
|
76
|
+
rules: {
|
|
77
|
+
'pre/match-regex': 'off',
|
|
78
|
+
'filenames/match-exported': 'off',
|
|
79
|
+
'prettier/prettier': 'off',
|
|
80
|
+
},
|
|
81
|
+
},
|
|
73
82
|
],
|
|
74
83
|
};
|
package/jest.config.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js-app/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
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,7 +12,6 @@
|
|
|
12
12
|
"modern",
|
|
13
13
|
"modern.js"
|
|
14
14
|
],
|
|
15
|
-
"main": "index.js",
|
|
16
15
|
"peerDependencies": {
|
|
17
16
|
"@babel/eslint-parser": "^7.15.0",
|
|
18
17
|
"@babel/eslint-plugin": "^7.13.10",
|
|
@@ -33,7 +32,7 @@
|
|
|
33
32
|
"prettier": "^2.0.1"
|
|
34
33
|
},
|
|
35
34
|
"dependencies": {
|
|
36
|
-
"@modern-js/babel-preset-app": "^1.
|
|
35
|
+
"@modern-js/babel-preset-app": "^1.2.0"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
38
|
"eslint": "^7.32.0",
|
|
@@ -44,8 +43,10 @@
|
|
|
44
43
|
"registry": "https://registry.npmjs.org/",
|
|
45
44
|
"access": "public"
|
|
46
45
|
},
|
|
46
|
+
"main": "index.js",
|
|
47
47
|
"scripts": {
|
|
48
48
|
"check": "eslint-find-rules --unused index.js",
|
|
49
49
|
"stat": "eslint-index index.js --format table"
|
|
50
|
-
}
|
|
50
|
+
},
|
|
51
|
+
"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"
|
|
51
52
|
}
|