@graphcommerce/eslint-config-pwa 3.1.4 → 3.1.8

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 +11 -0
  2. package/index.js +7 -1
  3. package/package.json +12 -12
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.1.5](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/eslint-config-pwa@3.1.4...@graphcommerce/eslint-config-pwa@3.1.5) (2021-11-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * eslint doesn't start properly ([3e01cfb](https://github.com/ho-nl/m2-pwa/commit/3e01cfb89ef73de2b520399c9428b88114844b02))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.1.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/eslint-config-pwa@3.0.8...@graphcommerce/eslint-config-pwa@3.1.0) (2021-10-21)
7
18
 
8
19
 
package/index.js CHANGED
@@ -5,9 +5,9 @@ module.exports = {
5
5
  node: true,
6
6
  },
7
7
  extends: [
8
+ 'airbnb',
8
9
  'airbnb-typescript',
9
10
  'airbnb/hooks',
10
- 'plugin:@typescript-eslint/eslint-recommended',
11
11
  'plugin:@typescript-eslint/recommended',
12
12
  'plugin:@typescript-eslint/recommended-requiring-type-checking',
13
13
  'plugin:@next/eslint-plugin-next/recommended',
@@ -37,6 +37,7 @@ module.exports = {
37
37
  },
38
38
  ],
39
39
  'import/order': ['warn', { alphabetize: { order: 'asc' } }],
40
+ 'import/prefer-default-export': 'off',
40
41
  'no-param-reassign': ['error', { props: false }],
41
42
  'jsx-a11y/anchor-is-valid': 'off',
42
43
  'default-case': 'off',
@@ -45,7 +46,9 @@ module.exports = {
45
46
  'react/prop-types': 'off',
46
47
  'react/jsx-props-no-spreading': 'off',
47
48
  'react/react-in-jsx-scope': 'off',
49
+ 'react/jsx-no-useless-fragment': ['error', { allowExpressions: true }],
48
50
  'react-hooks/exhaustive-deps': ['error', { additionalHooks: '(useIsomorphicLayoutEffect)' }],
51
+ 'react/no-unescaped-entities': 'off',
49
52
  'no-console': [1, { allow: ['warn', 'error', 'info'] }],
50
53
  '@typescript-eslint/semi': 'off',
51
54
  'spaced-comment': [
@@ -96,6 +99,9 @@ module.exports = {
96
99
  '@typescript-eslint/unbound-method': 'off',
97
100
 
98
101
  'import/no-relative-packages': 'error',
102
+
103
+ // Remove when fixed: https://github.com/airbnb/javascript/pull/2501/files
104
+ 'react/function-component-definition': 'off',
99
105
  },
100
106
  overrides: [
101
107
  {
package/package.json CHANGED
@@ -1,27 +1,27 @@
1
1
  {
2
2
  "name": "@graphcommerce/eslint-config-pwa",
3
- "version": "3.1.4",
3
+ "version": "3.1.8",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "@graphcommerce/prettier-config-pwa": "^3.0.4",
7
7
  "@graphcommerce/typescript-config-pwa": "^3.1.1",
8
- "@next/eslint-plugin-next": "^12.0.2",
9
- "@typescript-eslint/eslint-plugin": "^5.2.0",
10
- "@typescript-eslint/parser": "^5.2.0",
11
- "eslint": "^8.2.0",
12
- "eslint-config-airbnb": "^18.2.0",
13
- "eslint-config-airbnb-typescript": "^15.0.0",
8
+ "@next/eslint-plugin-next": "^12.0.7",
9
+ "@typescript-eslint/eslint-plugin": "^5.7.0",
10
+ "@typescript-eslint/parser": "^5.7.0",
11
+ "eslint": "^8.4.1",
12
+ "eslint-config-airbnb": "^19.0.2",
13
+ "eslint-config-airbnb-typescript": "^16.1.0",
14
14
  "eslint-config-prettier": "^8.3.0",
15
15
  "eslint-import-resolver-webpack": "^0.13.2",
16
- "eslint-plugin-import": "^2.25.2",
17
- "eslint-plugin-jsx-a11y": "^6.3.1",
18
- "eslint-plugin-react": "^7.26.1",
19
- "eslint-plugin-react-hooks": "^4.2.1-alpha-6c3dcc7a4-20211027"
16
+ "eslint-plugin-import": "^2.25.3",
17
+ "eslint-plugin-jsx-a11y": "^6.5.1",
18
+ "eslint-plugin-react": "^7.27.1",
19
+ "eslint-plugin-react-hooks": "^4.3.0"
20
20
  },
21
21
  "sideEffects": false,
22
22
  "engines": {
23
23
  "node": "14.x"
24
24
  },
25
25
  "prettier": "@graphcommerce/prettier-config-pwa",
26
- "gitHead": "1099718b92d4d472f32aeb6379f6167c6b550ccf"
26
+ "gitHead": "a69bd94ffdcca6ca9487eec1cafe9ade3fcdffa3"
27
27
  }