@graphcommerce/eslint-config-pwa 3.1.5 → 3.1.9

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 (2) hide show
  1. package/index.js +7 -1
  2. package/package.json +11 -11
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,21 +1,21 @@
1
1
  {
2
2
  "name": "@graphcommerce/eslint-config-pwa",
3
- "version": "3.1.5",
3
+ "version": "3.1.9",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
- "@graphcommerce/prettier-config-pwa": "^3.0.4",
7
- "@graphcommerce/typescript-config-pwa": "^3.1.1",
8
- "@next/eslint-plugin-next": "^12.0.3",
9
- "@typescript-eslint/eslint-plugin": "^5.3.1",
10
- "@typescript-eslint/parser": "^5.3.1",
11
- "eslint": "^8.2.0",
12
- "eslint-config-airbnb": "^19.0.0",
13
- "eslint-config-airbnb-typescript": "^15.0.0",
6
+ "@graphcommerce/prettier-config-pwa": "^3.0.5",
7
+ "@graphcommerce/typescript-config-pwa": "^3.1.2",
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
16
  "eslint-plugin-import": "^2.25.3",
17
17
  "eslint-plugin-jsx-a11y": "^6.5.1",
18
- "eslint-plugin-react": "^7.27.0",
18
+ "eslint-plugin-react": "^7.27.1",
19
19
  "eslint-plugin-react-hooks": "^4.3.0"
20
20
  },
21
21
  "sideEffects": false,
@@ -23,5 +23,5 @@
23
23
  "node": "14.x"
24
24
  },
25
25
  "prettier": "@graphcommerce/prettier-config-pwa",
26
- "gitHead": "6a39908a131938d9c3365cc937b92c1f1f8b33c6"
26
+ "gitHead": "06b4426d199de9ec2a9d2ac86d42ab047e59e7e7"
27
27
  }