@modern-js-app/eslint-config 1.2.13 → 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/base.js +4 -24
  3. package/package.json +4 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
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
+
3
13
  ## 1.2.13
4
14
 
5
15
  ### 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
- 'error',
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.13",
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",
@@ -16,7 +16,7 @@
16
16
  "@babel/core": "^7.18.0",
17
17
  "@babel/eslint-parser": "^7.18.0",
18
18
  "@babel/eslint-plugin": "^7.17.7",
19
- "@modern-js/babel-preset-app": "^1.4.0",
19
+ "@modern-js/babel-preset-app": "^1.4.2",
20
20
  "@typescript-eslint/eslint-plugin": "^5.17.0",
21
21
  "@typescript-eslint/parser": "^5.17.0",
22
22
  "eslint": "^7.32.0",
@@ -35,8 +35,7 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@scripts/build": "0.0.0",
38
- "eslint-find-rules": "^3.4.0",
39
- "eslint-index": "^1.5.0"
38
+ "eslint-find-rules": "^3.4.0"
40
39
  },
41
40
  "publishConfig": {
42
41
  "registry": "https://registry.npmjs.org/",
@@ -44,8 +43,7 @@
44
43
  },
45
44
  "main": "index.js",
46
45
  "scripts": {
47
- "check": "eslint-find-rules --unused index.js",
48
- "stat": "eslint-index index.js --format table"
46
+ "check": "eslint-find-rules --unused index.js"
49
47
  },
50
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"
51
49
  }