@mlaursen/eslint-config 1.1.7 → 1.3.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/index.js +4 -1
  3. package/package.json +18 -10
package/CHANGELOG.md CHANGED
@@ -2,6 +2,33 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.3.0](https://github.com/mlaursen/eslint-config/compare/v1.2.0...v1.3.0) (2022-01-01)
6
+
7
+
8
+ ### Features
9
+
10
+ * **deps:** bump all dependencies to latest ([f995232](https://github.com/mlaursen/eslint-config/commit/f99523225f5df1aa8e2af6540ffa8f3f07563df1))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * Add peerDependenciesMeta to package.json ([03dcd3d](https://github.com/mlaursen/eslint-config/commit/03dcd3da67cb751c53b8e4367188e4119f8b2e04))
16
+ * Update eslint peerDependency to require v8.0.0 ([c0a593e](https://github.com/mlaursen/eslint-config/commit/c0a593ea8b2ee26287d3f307915381d229ed526c))
17
+
18
+ ## [1.2.0](https://github.com/mlaursen/eslint-config/compare/v1.1.8...v1.2.0) (2021-11-21)
19
+
20
+
21
+ ### Features
22
+
23
+ * Bump all dependencies to latest ([be88c1a](https://github.com/mlaursen/eslint-config/commit/be88c1a18022304d6f71e3dcd59e06e0af2a681e))
24
+
25
+ ### [1.1.8](https://github.com/mlaursen/eslint-config/compare/v1.1.7...v1.1.8) (2021-11-02)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * **react:** added react/jsx-runtime for new jsx-transform ([9ad5498](https://github.com/mlaursen/eslint-config/commit/9ad5498206442d848e8a3af5079a7519f2880d34))
31
+
5
32
  ### [1.1.7](https://github.com/mlaursen/eslint-config/compare/v1.1.6...v1.1.7) (2021-11-02)
6
33
 
7
34
  ### [1.1.6](https://github.com/mlaursen/eslint-config/compare/v1.1.5...v1.1.6) (2021-10-12)
package/index.js CHANGED
@@ -1,9 +1,11 @@
1
1
  const confusingBrowserGlobals = require('confusing-browser-globals');
2
2
 
3
3
  let react = false;
4
+ let isNewJsx = false;
4
5
  try {
5
6
  require.resolve('react');
6
7
  react = true;
8
+ isNewJsx = parseInt(require('react').version, 10) > 16;
7
9
  } catch (e) {}
8
10
 
9
11
  module.exports = {
@@ -16,12 +18,13 @@ module.exports = {
16
18
  'eslint:recommended',
17
19
  'plugin:react/recommended',
18
20
  'plugin:react-hooks/recommended',
21
+ isNewJsx && 'plugin:react/jsx-runtime',
19
22
  'plugin:import/errors',
20
23
  'plugin:import/warnings',
21
24
  'plugin:import/typescript',
22
25
  'plugin:jsx-a11y/recommended',
23
26
  'prettier',
24
- ],
27
+ ].filter(Boolean),
25
28
  plugins: ['@typescript-eslint', 'jest', 'jsx-a11y', 'react-hooks', 'tsdoc'],
26
29
  env: {
27
30
  es6: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlaursen/eslint-config",
3
- "version": "1.1.7",
3
+ "version": "1.3.0",
4
4
  "description": "An eslint config used by mlaursen for most projects.",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/mlaursen/eslint-config.git",
@@ -10,15 +10,15 @@
10
10
  "release": "standard-version && npm publish && git push --follow-tags origin main"
11
11
  },
12
12
  "dependencies": {
13
- "@typescript-eslint/eslint-plugin": "^5.3.0",
14
- "@typescript-eslint/parser": "^5.3.0",
15
- "confusing-browser-globals": "^1.0.9",
13
+ "@typescript-eslint/eslint-plugin": "^5.8.1",
14
+ "@typescript-eslint/parser": "^5.8.1",
15
+ "confusing-browser-globals": "^1.0.11",
16
16
  "eslint-config-prettier": "^8.2.0",
17
- "eslint-plugin-import": "^2.25.2",
18
- "eslint-plugin-jest": "^25.2.2",
19
- "eslint-plugin-jsx-a11y": "^6.3.1",
20
- "eslint-plugin-react": "^7.26.1",
21
- "eslint-plugin-react-hooks": "^4.1.2",
17
+ "eslint-plugin-import": "^2.25.3",
18
+ "eslint-plugin-jest": "^25.3.3",
19
+ "eslint-plugin-jsx-a11y": "^6.5.1",
20
+ "eslint-plugin-react": "^7.28.0",
21
+ "eslint-plugin-react-hooks": "^4.3.0",
22
22
  "eslint-plugin-tsdoc": "^0.2.14"
23
23
  },
24
24
  "devDependencies": {
@@ -26,9 +26,17 @@
26
26
  "standard-version": "^9.3.2"
27
27
  },
28
28
  "peerDependencies": {
29
- "eslint": ">= 7.10.0",
29
+ "eslint": ">= 8.0.0",
30
30
  "typescript": ">= 4"
31
31
  },
32
+ "peerDependenciesMeta": {
33
+ "eslint": {
34
+ "optional": false
35
+ },
36
+ "typescript": {
37
+ "optional": true
38
+ }
39
+ },
32
40
  "publishConfig": {
33
41
  "access": "public"
34
42
  }