@modern-js-app/eslint-config 1.1.1 → 1.2.1

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 CHANGED
@@ -1,5 +1,29 @@
1
1
  # @modern-js-app/eslint-config
2
2
 
3
+ ## 1.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 294c4dbf: feat: upgrade prettier version
8
+
9
+ ## 1.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - cfe11628: Make Modern.js self bootstraping
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [cfe11628]
18
+ - Updated dependencies [1ebc7ee2]
19
+ - @modern-js/babel-preset-app@1.2.0
20
+
21
+ ## 1.1.2
22
+
23
+ ### Patch Changes
24
+
25
+ - a37192b1: feat: support css module declaration
26
+
3
27
  ## 1.1.1
4
28
 
5
29
  ### Patch Changes
package/eslintrc.js CHANGED
@@ -995,7 +995,7 @@ module.exports = {
995
995
  singleQuote: true,
996
996
  trailingComma: 'all',
997
997
  bracketSpacing: true,
998
- jsxBracketSameLine: true,
998
+ bracketSameLine: true,
999
999
  arrowParens: 'avoid',
1000
1000
  endOfLine: 'auto',
1001
1001
  },
@@ -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
@@ -0,0 +1,8 @@
1
+ const sharedConfig = require('@scripts/jest-config');
2
+
3
+ /** @type {import('@jest/types').Config.InitialOptions} */
4
+ module.exports = {
5
+ // eslint-disable-next-line node/no-unsupported-features/es-syntax
6
+ ...sharedConfig,
7
+ rootDir: __dirname,
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js-app/eslint-config",
3
- "version": "1.1.1",
3
+ "version": "1.2.1",
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",
@@ -30,10 +29,10 @@
30
29
  "eslint-plugin-promise": "^5.1.0",
31
30
  "eslint-plugin-react": "^7.24.0",
32
31
  "eslint-plugin-react-hooks": "^4.2.0",
33
- "prettier": "^2.0.1"
32
+ "prettier": "^2.5.1"
34
33
  },
35
34
  "dependencies": {
36
- "@modern-js/babel-preset-app": "^1.1.0"
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
  }