@scaleway/eslint-config-react 2.3.1 → 3.1.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 +43 -0
- package/package.json +11 -10
- package/shared.js +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,49 @@
|
|
|
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.0 (2021-12-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **eslint-config:** add eslint-comments plugin ([#534](https://github.com/scaleway/scaleway-lib/issues/534)) ([15504d3](https://github.com/scaleway/scaleway-lib/commit/15504d38d151ee54cf44f30bb69cd605bf769277))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### 3.0.1 (2021-12-06)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **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))
|
|
21
|
+
* **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))
|
|
22
|
+
* **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))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## 3.0.0 (2021-11-23)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### ⚠ BREAKING CHANGES
|
|
30
|
+
|
|
31
|
+
* update to eslint-airbnb v19 (#491)
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* update to eslint-airbnb v19 ([#491](https://github.com/scaleway/scaleway-lib/issues/491)) ([d0e1385](https://github.com/scaleway/scaleway-lib/commit/d0e138501ae3c7fb59b8e5924504e8cef434070e))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### 2.3.2 (2021-11-09)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Bug Fixes
|
|
43
|
+
|
|
44
|
+
* **deps:** update dependency eslint-plugin-react-hooks to v4.3.0 ([#482](https://github.com/scaleway/scaleway-lib/issues/482)) ([da0e98b](https://github.com/scaleway/scaleway-lib/commit/da0e98b7a4630d34616fcae35aaa21b437cf35c0))
|
|
45
|
+
* **deps:** update typescript-eslint monorepo to v5.3.1 ([#481](https://github.com/scaleway/scaleway-lib/issues/481)) ([ab41d48](https://github.com/scaleway/scaleway-lib/commit/ab41d4874d6484fe0b73be9ed25ca9e6b8f4a47d))
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
6
49
|
### 2.3.1 (2021-11-08)
|
|
7
50
|
|
|
8
51
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/eslint-config-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.0",
|
|
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.
|
|
21
|
-
"@typescript-eslint/parser": "5.
|
|
22
|
-
"eslint-config-airbnb": "
|
|
23
|
-
"eslint-config-airbnb-typescript": "
|
|
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-
|
|
26
|
-
"eslint-plugin-
|
|
27
|
-
"eslint-plugin-
|
|
28
|
-
"eslint-plugin-react
|
|
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",
|
|
29
|
+
"eslint-plugin-react-hooks": "4.3.0"
|
|
29
30
|
},
|
|
30
31
|
"peerDependencies": {
|
|
31
32
|
"eslint": "7.x || 8.x"
|
|
32
33
|
},
|
|
33
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "0dab360a261fa02f60b867896f91da87f953b5e2"
|
|
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': [
|