@scaleway/eslint-config-react 3.12.2 → 3.13.1
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 +4 -4
- package/shared.js +27 -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.13.1 (2022-12-26)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **deps:** update typescript-eslint monorepo to v5.47.0 ([#1129](https://github.com/scaleway/scaleway-lib/issues/1129)) ([e35cbce](https://github.com/scaleway/scaleway-lib/commit/e35cbcebdaf6ab3ed90f0cdcaa250a77d23e36b4))
|
|
11
|
+
|
|
12
|
+
## [3.13.0](https://github.com/scaleway/scaleway-lib/compare/@scaleway/eslint-config-react@3.12.2...@scaleway/eslint-config-react@3.13.0) (2022-12-19)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- **eslint-config-react:** consistent import/no-extraneous-dependencies rule ([#1124](https://github.com/scaleway/scaleway-lib/issues/1124)) ([99f23a8](https://github.com/scaleway/scaleway-lib/commit/99f23a8dc89592c4b627990e6705f73c065d47f7))
|
|
17
|
+
|
|
6
18
|
## [3.12.2](https://github.com/scaleway/scaleway-lib/compare/@scaleway/eslint-config-react@3.12.1...@scaleway/eslint-config-react@3.12.2) (2022-12-19)
|
|
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.13.1",
|
|
4
4
|
"description": "Scaleway React eslint shared config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@emotion/eslint-plugin": "11.10.0",
|
|
21
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
22
|
-
"@typescript-eslint/parser": "5.
|
|
21
|
+
"@typescript-eslint/eslint-plugin": "5.47.0",
|
|
22
|
+
"@typescript-eslint/parser": "5.47.0",
|
|
23
23
|
"eslint-config-airbnb": "19.0.4",
|
|
24
24
|
"eslint-config-airbnb-typescript": "17.0.0",
|
|
25
25
|
"eslint-config-prettier": "8.5.0",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"eslint": "8.29.0",
|
|
38
38
|
"typescript": "4.9.3"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "50e326de1dd947a8f06226fbbd9deb3d1a989cc6"
|
|
41
41
|
}
|
package/shared.js
CHANGED
|
@@ -25,6 +25,33 @@ module.exports = {
|
|
|
25
25
|
'newlines-between': 'never',
|
|
26
26
|
},
|
|
27
27
|
],
|
|
28
|
+
// Here we override airbnb default with our repos dev patterns
|
|
29
|
+
// https://github.com/airbnb/javascript/blob/81157eec2309449b31f36bf8940493623f2530c6/packages/eslint-config-airbnb-base/rules/imports.js#L71
|
|
30
|
+
'import/no-extraneous-dependencies': [
|
|
31
|
+
'error',
|
|
32
|
+
{
|
|
33
|
+
devDependencies: [
|
|
34
|
+
'**/.jest/**',
|
|
35
|
+
'**/.storybook/**',
|
|
36
|
+
'test/**', // tape, common npm pattern
|
|
37
|
+
'tests/**', // also common npm pattern
|
|
38
|
+
'spec/**', // mocha, rspec-like pattern
|
|
39
|
+
'**/__tests__/**', // jest pattern
|
|
40
|
+
'**/__mocks__/**', // jest pattern
|
|
41
|
+
'**/__stories__/**', // stories pattern
|
|
42
|
+
'test.{js,jsx}', // repos with a single test file
|
|
43
|
+
'test-*.{js,jsx}', // repos with multiple top-level test files
|
|
44
|
+
'**/*{.,_}{test,spec}.{js,jsx}', // tests where the extension or filename suffix denotes that it is a test
|
|
45
|
+
'**/jest.config.{js,ts,mjs,mts}', // jest config
|
|
46
|
+
'**/jest.setup.{js,ts,mjs,mts}', // jest setup
|
|
47
|
+
'**/webpack.config.{js,ts,mjs,mts}', // webpack config
|
|
48
|
+
'**/webpack.config.*.{js,ts,mjs,mts}', // webpack config
|
|
49
|
+
'**/rollup.config.{js,ts,mjs,mts}', // rollup config
|
|
50
|
+
'**/rollup.config.*.{js,ts,mjs,mts}', // rollup config
|
|
51
|
+
],
|
|
52
|
+
optionalDependencies: false,
|
|
53
|
+
},
|
|
54
|
+
],
|
|
28
55
|
// We allow named and default export
|
|
29
56
|
'import/prefer-default-export': 'off',
|
|
30
57
|
// This allows us to reenable ForOfStatement.
|