@dfds-ui/eslint-config 2.2.0-alpha.8d87a90d → 2.2.0-alpha.9bb1ab0f

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.
Files changed (2) hide show
  1. package/eslint.config.js +5 -19
  2. package/package.json +12 -13
package/eslint.config.js CHANGED
@@ -35,10 +35,10 @@ module.exports = {
35
35
  // typescript overrides
36
36
  {
37
37
  files: ['*.ts', '*.tsx'],
38
- plugins: ['@typescript-eslint', 'react-hooks', 'simple-import-sort', 'import', 'deprecation'],
38
+ plugins: ['@typescript-eslint', 'react-hooks', 'simple-import-sort', 'import'],
39
39
  extends: [
40
40
  'plugin:@typescript-eslint/recommended',
41
- 'plugin:@typescript-eslint/recommended-requiring-type-checking',
41
+ 'plugin:@typescript-eslint/recommended-type-checked',
42
42
  'plugin:react/recommended',
43
43
  ],
44
44
  rules: {
@@ -65,25 +65,10 @@ module.exports = {
65
65
  'import/namespace': ['error', { allowComputed: true }],
66
66
 
67
67
  '@typescript-eslint/explicit-function-return-type': 'off',
68
- '@typescript-eslint/member-delimiter-style': [
69
- 'warn',
70
- {
71
- multiline: {
72
- delimiter: 'none',
73
- requireLast: false,
74
- },
75
- singleline: {
76
- delimiter: 'semi',
77
- requireLast: false,
78
- },
79
- },
80
- ],
81
- '@typescript-eslint/interface-name-prefix': ['warn', { prefixWithI: 'always' }],
82
68
  '@typescript-eslint/no-use-before-define': 'off', // TODO: maybe enable this?
83
69
  '@typescript-eslint/no-explicit-any': 'off',
84
70
  //TODO: use naming-convention
85
71
  //'@typescript-eslint/camelcase': 'warn',
86
- '@typescript-eslint/type-annotation-spacing': 'warn',
87
72
  //TODO: use ban-ts-comment
88
73
  //'@typescript-eslint/ban-ts-ignore': 'error',
89
74
 
@@ -95,6 +80,7 @@ module.exports = {
95
80
  '@typescript-eslint/no-unsafe-return': 'off', // TODO: TS4 consider enabling
96
81
  '@typescript-eslint/restrict-template-expressions': 'off',
97
82
  '@typescript-eslint/no-misused-promises': 'error',
83
+ '@typescript-eslint/no-deprecated': 'warn',
98
84
 
99
85
  // TODO: enable this again when babel-lint supports it
100
86
  // Using babel-eslint (v11 beta ATTOW) as the parser have issues with this rule so it's disabled
@@ -110,6 +96,8 @@ module.exports = {
110
96
  },
111
97
  ],
112
98
 
99
+ '@typescript-eslint/no-unused-expressions': 'off', // TODO: New in TSESLint8 consider enabling
100
+
113
101
  'react/display-name': 'off',
114
102
  'react/prop-types': 'off',
115
103
  'react-hooks/rules-of-hooks': 'error',
@@ -117,8 +105,6 @@ module.exports = {
117
105
  'react/no-unescaped-entities': 'off', // TODO: maybe enable this?
118
106
  'react/no-unknown-property': ['error', { ignore: ['css'] }],
119
107
  'react/jsx-no-literals': 'off', // TODO: maybe enable this?
120
-
121
- 'deprecation/deprecation': 'warn',
122
108
  },
123
109
  },
124
110
  // javascript overrides
package/package.json CHANGED
@@ -5,22 +5,21 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "2.2.0-alpha.8d87a90d",
8
+ "version": "2.2.0-alpha.9bb1ab0f",
9
9
  "dependencies": {
10
- "@typescript-eslint/eslint-plugin": "^5.40.1",
11
- "@typescript-eslint/parser": "^5.40.1",
12
- "eslint": "8.26.0",
13
- "eslint-import-resolver-babel-module": "^5.3.1",
10
+ "@typescript-eslint/eslint-plugin": "^8.59.2",
11
+ "@typescript-eslint/parser": "^8.59.2",
12
+ "eslint": "8.57.1",
13
+ "eslint-import-resolver-babel-module": "^5.3.2",
14
14
  "eslint-import-resolver-lerna": "^2.0.0",
15
- "eslint-import-resolver-typescript": "^3.5.2",
15
+ "eslint-import-resolver-typescript": "^3.10.1",
16
16
  "eslint-import-resolver-workspaces": "^1.2.0",
17
- "eslint-plugin-deprecation": "^1.3.2",
18
- "eslint-plugin-import": "^2.26.0",
19
- "eslint-plugin-prettier": "4.2.1",
20
- "eslint-plugin-react": "7.31.10",
17
+ "eslint-plugin-import": "^2.32.0",
18
+ "eslint-plugin-prettier": "5.5.5",
19
+ "eslint-plugin-react": "7.37.5",
21
20
  "eslint-plugin-react-hooks": "4.6.0",
22
- "eslint-plugin-simple-import-sort": "^8.0.0",
23
- "prettier": "2.7.1"
21
+ "eslint-plugin-simple-import-sort": "^13.0.0",
22
+ "prettier": "3.8.3"
24
23
  },
25
- "gitHead": "8d87a90d4501dae81cac37ab3b4d9f13a68e2ab3"
24
+ "gitHead": "9bb1ab0fca74964da6edd580e53f175a223b4f49"
26
25
  }