@scaleway/eslint-config-react 3.8.4 → 3.10.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 +12 -0
- package/package.json +2 -2
- package/shared.js +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.10.0 (2022-11-18)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- add curly rule ([#1083](https://github.com/scaleway/scaleway-lib/issues/1083)) ([3afc32a](https://github.com/scaleway/scaleway-lib/commit/3afc32a1122b62a8b7423240ffaa546a31f1e469))
|
|
11
|
+
|
|
12
|
+
## 3.9.0 (2022-11-18)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- **eslint:** disabled usage of export \* ([#1080](https://github.com/scaleway/scaleway-lib/issues/1080)) ([bb5a796](https://github.com/scaleway/scaleway-lib/commit/bb5a796131c50d1958750c08c0522dedfeb2365e))
|
|
17
|
+
|
|
6
18
|
## 3.8.4 (2022-11-17)
|
|
7
19
|
|
|
8
20
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/eslint-config-react",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0",
|
|
4
4
|
"description": "Scaleway React eslint shared config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"eslint": "8.27.0",
|
|
37
37
|
"typescript": "4.8.4"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "f71886c7f56b3ec1d5f17ee6644ca1ec9bdfada9"
|
|
40
40
|
}
|
package/shared.js
CHANGED
|
@@ -6,6 +6,7 @@ module.exports = {
|
|
|
6
6
|
'plugin:react/jsx-runtime',
|
|
7
7
|
],
|
|
8
8
|
rules: {
|
|
9
|
+
curly: 'error',
|
|
9
10
|
'import/order': [
|
|
10
11
|
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/order.md
|
|
11
12
|
'error',
|
|
@@ -47,6 +48,10 @@ module.exports = {
|
|
|
47
48
|
'`with` is disallowed in strict mode because it makes code impossible to predict and optimize.',
|
|
48
49
|
selector: 'WithStatement',
|
|
49
50
|
},
|
|
51
|
+
{
|
|
52
|
+
message: '`export *` is forbidden.',
|
|
53
|
+
selector: 'ExportAllDeclaration',
|
|
54
|
+
},
|
|
50
55
|
],
|
|
51
56
|
// This is to have a more breathable codebase
|
|
52
57
|
'padding-line-between-statements': [
|