@scaleway/eslint-config-react 3.12.2 → 3.13.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,12 @@
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.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)
7
+
8
+ ### Features
9
+
10
+ - **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))
11
+
6
12
  ## [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
13
 
8
14
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/eslint-config-react",
3
- "version": "3.12.2",
3
+ "version": "3.13.0",
4
4
  "description": "Scaleway React eslint shared config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -37,5 +37,5 @@
37
37
  "eslint": "8.29.0",
38
38
  "typescript": "4.9.3"
39
39
  },
40
- "gitHead": "3ccea0cd162f875dbaf28df45379199ce58ba8b2"
40
+ "gitHead": "1277aebe7ca0a7f1259d1a4509b95d4f427d9d39"
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.