@scaleway/eslint-config-react 3.3.8 → 3.4.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,33 @@
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.4.2](https://github.com/scaleway/scaleway-lib/compare/@scaleway/eslint-config-react@3.4.1...@scaleway/eslint-config-react@3.4.2) (2022-02-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **deps:** update typescript-eslint monorepo to v5.12.1 ([#647](https://github.com/scaleway/scaleway-lib/issues/647)) ([6f23f77](https://github.com/scaleway/scaleway-lib/commit/6f23f77e78ef2800d9c2d3f2ce257631f9cb1b0c))
12
+
13
+
14
+
15
+ ### [3.4.1](https://github.com/scaleway/scaleway-lib/compare/@scaleway/eslint-config-react@3.4.0...@scaleway/eslint-config-react@3.4.1) (2022-02-19)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **deps:** update dependency eslint-config-prettier to v8.4.0 ([#643](https://github.com/scaleway/scaleway-lib/issues/643)) ([616464c](https://github.com/scaleway/scaleway-lib/commit/616464cce2dd9e27a4164c2e65b17944f0713431))
21
+
22
+
23
+
24
+ ## 3.4.0 (2022-02-17)
25
+
26
+
27
+ ### Features
28
+
29
+ * **eslint-config-react:** enforce class fields for react class ([#636](https://github.com/scaleway/scaleway-lib/issues/636)) ([56a3aaa](https://github.com/scaleway/scaleway-lib/commit/56a3aaa360ca18e27eb2abf038e1e976a11b3bd5))
30
+
31
+
32
+
6
33
  ### 3.3.8 (2022-02-15)
7
34
 
8
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/eslint-config-react",
3
- "version": "3.3.8",
3
+ "version": "3.4.2",
4
4
  "description": "Scaleway React eslint shared config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -17,11 +17,11 @@
17
17
  },
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
- "@typescript-eslint/eslint-plugin": "5.12.0",
21
- "@typescript-eslint/parser": "5.12.0",
20
+ "@typescript-eslint/eslint-plugin": "5.12.1",
21
+ "@typescript-eslint/parser": "5.12.1",
22
22
  "eslint-config-airbnb": "19.0.4",
23
23
  "eslint-config-airbnb-typescript": "16.1.0",
24
- "eslint-config-prettier": "8.3.0",
24
+ "eslint-config-prettier": "8.4.0",
25
25
  "eslint-plugin-eslint-comments": "3.2.0",
26
26
  "eslint-plugin-import": "2.25.4",
27
27
  "eslint-plugin-jsx-a11y": "6.5.1",
@@ -31,5 +31,5 @@
31
31
  "peerDependencies": {
32
32
  "eslint": ">= 8.5"
33
33
  },
34
- "gitHead": "4cd78fe264428a6b28b04332ad037cb7cb2459a6"
34
+ "gitHead": "deb9daa4bd2fbbe79f5e384fac709c82abe11109"
35
35
  }
package/shared.js CHANGED
@@ -61,6 +61,10 @@ module.exports = {
61
61
  'react/no-adjacent-inline-elements': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-adjacent-inline-elements.md
62
62
  'prefer-object-has-own': 'error', // https://eslint.org/docs/rules/prefer-object-has-own
63
63
 
64
+ // We don't use babel-preset-airbnb so we can make those changes
65
+ 'react/static-property-placement': ['error', 'static public field'],
66
+ 'react/state-in-constructor': ['error', 'never'],
67
+
64
68
  // To have consistent ordering in proptypes
65
69
  'react/sort-prop-types': [
66
70
  // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-prop-types.md