@scaleway/eslint-config-react 3.3.8 → 3.4.0

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,15 @@
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.0 (2022-02-17)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+
14
+
6
15
  ### 3.3.8 (2022-02-15)
7
16
 
8
17
 
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.0",
4
4
  "description": "Scaleway React eslint shared config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -31,5 +31,5 @@
31
31
  "peerDependencies": {
32
32
  "eslint": ">= 8.5"
33
33
  },
34
- "gitHead": "4cd78fe264428a6b28b04332ad037cb7cb2459a6"
34
+ "gitHead": "c9cb77670d6b9ab40f857a2c09ed0177b0876a18"
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