@scaleway/eslint-config-react 2.1.1 → 2.2.2

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
@@ -3,6 +3,40 @@
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
+ ### 2.2.2 (2021-10-21)
7
+
8
+ **Note:** Version bump only for package @scaleway/eslint-config-react
9
+
10
+
11
+
12
+
13
+
14
+ ### 2.2.1 (2021-09-16)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * change no constructed context values to error ([#383](https://github.com/scaleway/scaleway-lib/issues/383)) ([94eb4e3](https://github.com/scaleway/scaleway-lib/commit/94eb4e3231ffd872280ae02f19ba294b1e39c99e))
20
+
21
+
22
+
23
+ ## 2.2.0 (2021-09-09)
24
+
25
+
26
+ ### Features
27
+
28
+ * **eslint-config-react:** enforce no-unused-vars on typescript config ([#361](https://github.com/scaleway/scaleway-lib/issues/361)) ([64e8226](https://github.com/scaleway/scaleway-lib/commit/64e8226b7851bb97eb4c82e62ceafa2e349ec464))
29
+
30
+
31
+
32
+ ### [2.1.2](https://github.com/scaleway/scaleway-lib/compare/@scaleway/eslint-config-react@2.1.1...@scaleway/eslint-config-react@2.1.2) (2021-08-25)
33
+
34
+ **Note:** Version bump only for package @scaleway/eslint-config-react
35
+
36
+
37
+
38
+
39
+
6
40
  ### 2.1.1 (2021-08-23)
7
41
 
8
42
  **Note:** Version bump only for package @scaleway/eslint-config-react
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/eslint-config-react",
3
- "version": "2.1.1",
3
+ "version": "2.2.2",
4
4
  "description": "Scaleway React eslint shared config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -17,21 +17,18 @@
17
17
  },
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
- "@typescript-eslint/eslint-plugin": "^4.28.1",
21
- "@typescript-eslint/parser": "^4.29.2",
20
+ "@typescript-eslint/eslint-plugin": "^4.29.3",
21
+ "@typescript-eslint/parser": "^4.29.3",
22
22
  "eslint-config-airbnb": "^18.2.1",
23
- "eslint-config-airbnb-typescript": "^13.0.0",
24
- "eslint-config-prettier": "^8.1.0",
25
- "eslint-plugin-import": "^2.22.1",
23
+ "eslint-config-airbnb-typescript": "^14.0.0",
24
+ "eslint-config-prettier": "^8.3.0",
25
+ "eslint-plugin-import": "^2.24.2",
26
26
  "eslint-plugin-jsx-a11y": "^6.4.1",
27
- "eslint-plugin-react": "^7.22.0",
27
+ "eslint-plugin-react": "^7.24.0",
28
28
  "eslint-plugin-react-hooks": "^4.2.0"
29
29
  },
30
- "devDependencies": {
31
- "eslint": "^7.18.0"
32
- },
33
30
  "peerDependencies": {
34
31
  "eslint": "7.x"
35
32
  },
36
- "gitHead": "a07638989f5e1f759e6ddec8ede14aa3eac0fd87"
33
+ "gitHead": "42d6adcad4f7f6b9d55f484d3bf33170ca57d483"
37
34
  }
package/shared.js CHANGED
@@ -53,7 +53,7 @@ module.exports = {
53
53
  ],
54
54
  // These are rules soon to be enabled by airbnb react config
55
55
  // We're getting a head start
56
- 'react/jsx-no-constructed-context-values': 'warn', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-constructed-context-values.md
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
57
  'react/jsx-no-script-url': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-script-url.md
58
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
package/typescript.js CHANGED
@@ -7,4 +7,7 @@ module.exports = {
7
7
  require.resolve('./shared'),
8
8
  ],
9
9
  plugins: ['@typescript-eslint'],
10
+ rules: {
11
+ '@typescript-eslint/no-unused-vars': ['error'],
12
+ },
10
13
  }