@scaleway/eslint-config-react 5.0.0 → 5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/eslint-config-react",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "description": "Scaleway React eslint shared config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -35,13 +35,14 @@
35
35
  "license": "MIT",
36
36
  "dependencies": {
37
37
  "@emotion/eslint-plugin": "11.12.0",
38
- "@eslint/compat": "1.2.3",
38
+ "@eslint/compat": "1.2.4",
39
39
  "@eslint/eslintrc": "3.2.0",
40
40
  "@stylistic/eslint-plugin": "2.11.0",
41
- "@typescript-eslint/eslint-plugin": "8.16.0",
42
- "@typescript-eslint/parser": "8.16.0",
41
+ "@typescript-eslint/eslint-plugin": "8.17.0",
42
+ "@typescript-eslint/parser": "8.17.0",
43
43
  "eslint-config-airbnb": "19.0.4",
44
44
  "eslint-config-prettier": "9.1.0",
45
+ "eslint-import-resolver-typescript": "3.7.0",
45
46
  "eslint-plugin-deprecation": "3.0.0",
46
47
  "eslint-plugin-eslint-comments": "3.2.0",
47
48
  "eslint-plugin-import": "2.31.0",
@@ -50,10 +51,10 @@
50
51
  "eslint-plugin-react-hooks": "5.0.0"
51
52
  },
52
53
  "peerDependencies": {
53
- "eslint": ">= 9.13"
54
+ "eslint": ">= 9.x"
54
55
  },
55
56
  "devDependencies": {
56
- "eslint": "9.13.0",
57
+ "eslint": "9.16.0",
57
58
  "typescript": "5.7.2"
58
59
  }
59
60
  }
package/stylistic.mjs CHANGED
@@ -15,6 +15,7 @@ const config = compat.extends('airbnb-base')
15
15
 
16
16
  const defaultAirBnbRules = [...fixupPluginRules(config)].reduce(
17
17
  (acc, currentConfig) => ({
18
+ // biome-ignore lint/performance/noAccumulatingSpread: <explanation>
18
19
  ...acc,
19
20
  ...currentConfig.rules,
20
21
  }),
@@ -31,12 +32,16 @@ export default [
31
32
  stylisticPlugin.configs['recommended-flat'],
32
33
  {
33
34
  rules: {
35
+ // --- Should be done when using biome/prettier formatter --- //
34
36
  '@stylistic/quotes': 'off',
35
37
  '@stylistic/operator-linebreak': 'off',
36
38
  '@stylistic/indent': 'off',
37
39
  '@stylistic/quote-props': 'off',
38
40
  '@stylistic/indent-binary-ops': 'off',
39
41
  '@stylistic/arrow-parens': 'off',
42
+ '@stylistic/multiline-ternary': 'off',
43
+ '@stylistic/no-trailing-spaces': 'off',
44
+ // -------------------------------------- ///
40
45
 
41
46
  '@stylistic/brace-style': defaultAirBnbRules['brace-style'],
42
47
  '@stylistic/comma-dangle': [
package/typescript.mjs CHANGED
@@ -19,6 +19,7 @@ export default [
19
19
  'airbnb-base',
20
20
  'plugin:@typescript-eslint/recommended',
21
21
  'plugin:@typescript-eslint/recommended-requiring-type-checking',
22
+ 'plugin:import/typescript',
22
23
  ),
23
24
  ),
24
25
  ...airbnbTypescript,