@scaleway/eslint-config-react 2.3.2 → 3.1.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/package.json +10 -9
  3. package/shared.js +4 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,48 @@
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.1](https://github.com/scaleway/scaleway-lib/compare/@scaleway/eslint-config-react@3.1.0...@scaleway/eslint-config-react@3.1.1) (2021-12-10)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **deps:** pin dependency eslint-plugin-eslint-comments to 3.2.0 ([#536](https://github.com/scaleway/scaleway-lib/issues/536)) ([b0fea13](https://github.com/scaleway/scaleway-lib/commit/b0fea134507fda853ce7aefe58052cc5e7c37ef6))
12
+
13
+
14
+
15
+ ## 3.1.0 (2021-12-10)
16
+
17
+
18
+ ### Features
19
+
20
+ * **eslint-config:** add eslint-comments plugin ([#534](https://github.com/scaleway/scaleway-lib/issues/534)) ([15504d3](https://github.com/scaleway/scaleway-lib/commit/15504d38d151ee54cf44f30bb69cd605bf769277))
21
+
22
+
23
+
24
+ ### 3.0.1 (2021-12-06)
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * **deps:** update dependency eslint-config-airbnb to v19.0.2 ([#528](https://github.com/scaleway/scaleway-lib/issues/528)) ([eb7425f](https://github.com/scaleway/scaleway-lib/commit/eb7425fedea52b8a7b7a1da5b9bae20733fb81eb))
30
+ * **deps:** update dependency eslint-config-airbnb-typescript to v16.1.0 ([#525](https://github.com/scaleway/scaleway-lib/issues/525)) ([0573445](https://github.com/scaleway/scaleway-lib/commit/0573445b6930bcca2419e0f02244c0a9ef208e6d))
31
+ * **deps:** update typescript-eslint monorepo to v5.6.0 ([#519](https://github.com/scaleway/scaleway-lib/issues/519)) ([ad94af0](https://github.com/scaleway/scaleway-lib/commit/ad94af0770970ec2f8b107fb6206548ed3c8c20f))
32
+
33
+
34
+
35
+ ## 3.0.0 (2021-11-23)
36
+
37
+
38
+ ### ⚠ BREAKING CHANGES
39
+
40
+ * update to eslint-airbnb v19 (#491)
41
+
42
+ ### Features
43
+
44
+ * update to eslint-airbnb v19 ([#491](https://github.com/scaleway/scaleway-lib/issues/491)) ([d0e1385](https://github.com/scaleway/scaleway-lib/commit/d0e138501ae3c7fb59b8e5924504e8cef434070e))
45
+
46
+
47
+
6
48
  ### 2.3.2 (2021-11-09)
7
49
 
8
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/eslint-config-react",
3
- "version": "2.3.2",
3
+ "version": "3.1.1",
4
4
  "description": "Scaleway React eslint shared config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -17,18 +17,19 @@
17
17
  },
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
- "@typescript-eslint/eslint-plugin": "5.3.1",
21
- "@typescript-eslint/parser": "5.3.1",
22
- "eslint-config-airbnb": "18.2.1",
23
- "eslint-config-airbnb-typescript": "15.0.0",
20
+ "@typescript-eslint/eslint-plugin": "5.6.0",
21
+ "@typescript-eslint/parser": "5.6.0",
22
+ "eslint-config-airbnb": "19.0.2",
23
+ "eslint-config-airbnb-typescript": "16.1.0",
24
24
  "eslint-config-prettier": "8.3.0",
25
- "eslint-plugin-import": "2.25.2",
26
- "eslint-plugin-jsx-a11y": "6.4.1",
27
- "eslint-plugin-react": "7.26.1",
25
+ "eslint-plugin-eslint-comments": "3.2.0",
26
+ "eslint-plugin-import": "2.25.3",
27
+ "eslint-plugin-jsx-a11y": "6.5.1",
28
+ "eslint-plugin-react": "7.27.1",
28
29
  "eslint-plugin-react-hooks": "4.3.0"
29
30
  },
30
31
  "peerDependencies": {
31
32
  "eslint": "7.x || 8.x"
32
33
  },
33
- "gitHead": "60c84615fb4317dc1b29f5f3cb02d4ff69c05a42"
34
+ "gitHead": "a3ea57193a2e861bd0be6c0a877c2ff19cffd5fc"
34
35
  }
package/shared.js CHANGED
@@ -1,5 +1,5 @@
1
1
  module.exports = {
2
- extends: ['airbnb/hooks', 'prettier'],
2
+ extends: ['airbnb/hooks', 'prettier', 'plugin:eslint-comments/recommended'],
3
3
  rules: {
4
4
  'import/order': [
5
5
  // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/order.md
@@ -51,13 +51,12 @@ module.exports = {
51
51
  prev: '*',
52
52
  },
53
53
  ],
54
+ // As we don't really care about the function type
55
+ 'react/function-component-definition': 'off',
56
+
54
57
  // These are rules soon to be enabled by airbnb react config
55
58
  // We're getting a head start
56
- 'react/jsx-no-constructed-context-values': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-constructed-context-values.md
57
- 'react/jsx-no-script-url': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-script-url.md
58
- 'react/jsx-no-useless-fragment': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-useless-fragment.md
59
59
  'react/no-adjacent-inline-elements': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-adjacent-inline-elements.md
60
- 'react/no-unstable-nested-components': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unstable-nested-components.md
61
60
 
62
61
  // To have consistent ordering in proptypes
63
62
  'react/sort-prop-types': [