@dfds-ui/eslint-config 2.2.0-alpha.10ab70f8 → 2.2.0-alpha.1bee3033
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/eslint.config.js +6 -19
- package/package.json +9 -10
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'
|
|
38
|
+
plugins: ['@typescript-eslint', 'react-hooks', 'simple-import-sort', 'import'],
|
|
39
39
|
extends: [
|
|
40
40
|
'plugin:@typescript-eslint/recommended',
|
|
41
|
-
'plugin:@typescript-eslint/recommended-
|
|
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,15 +96,16 @@ 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',
|
|
103
|
+
'react/react-in-jsx-scope': 'off',
|
|
115
104
|
'react-hooks/rules-of-hooks': 'error',
|
|
116
105
|
'react-hooks/exhaustive-deps': 'warn',
|
|
117
106
|
'react/no-unescaped-entities': 'off', // TODO: maybe enable this?
|
|
118
107
|
'react/no-unknown-property': ['error', { ignore: ['css'] }],
|
|
119
108
|
'react/jsx-no-literals': 'off', // TODO: maybe enable this?
|
|
120
|
-
|
|
121
|
-
'deprecation/deprecation': 'warn',
|
|
122
109
|
},
|
|
123
110
|
},
|
|
124
111
|
// 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.
|
|
8
|
+
"version": "2.2.0-alpha.1bee3033",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
11
|
-
"@typescript-eslint/parser": "^
|
|
12
|
-
"eslint": "8.
|
|
10
|
+
"@typescript-eslint/eslint-plugin": "^8.59.2",
|
|
11
|
+
"@typescript-eslint/parser": "^8.59.2",
|
|
12
|
+
"eslint": "8.57.1",
|
|
13
13
|
"eslint-import-resolver-babel-module": "^5.3.2",
|
|
14
14
|
"eslint-import-resolver-lerna": "^2.0.0",
|
|
15
|
-
"eslint-import-resolver-typescript": "^3.
|
|
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
17
|
"eslint-plugin-import": "^2.32.0",
|
|
19
|
-
"eslint-plugin-prettier": "
|
|
18
|
+
"eslint-plugin-prettier": "5.5.5",
|
|
20
19
|
"eslint-plugin-react": "7.37.5",
|
|
21
20
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
22
|
-
"eslint-plugin-simple-import-sort": "^
|
|
23
|
-
"prettier": "
|
|
21
|
+
"eslint-plugin-simple-import-sort": "^13.0.0",
|
|
22
|
+
"prettier": "3.8.3"
|
|
24
23
|
},
|
|
25
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "1bee303356785a1660e2bc54b2b83da23309d98b"
|
|
26
25
|
}
|