@dfds-ui/eslint-config 2.2.0-alpha.c2f773c5 → 2.2.0-alpha.c79adffa
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 +19 -6
- package/package.json +13 -12
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', 'deprecation'],
|
|
39
39
|
extends: [
|
|
40
40
|
'plugin:@typescript-eslint/recommended',
|
|
41
|
-
'plugin:@typescript-eslint/recommended-type-
|
|
41
|
+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
42
42
|
'plugin:react/recommended',
|
|
43
43
|
],
|
|
44
44
|
rules: {
|
|
@@ -65,10 +65,25 @@ 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' }],
|
|
68
82
|
'@typescript-eslint/no-use-before-define': 'off', // TODO: maybe enable this?
|
|
69
83
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
70
84
|
//TODO: use naming-convention
|
|
71
85
|
//'@typescript-eslint/camelcase': 'warn',
|
|
86
|
+
'@typescript-eslint/type-annotation-spacing': 'warn',
|
|
72
87
|
//TODO: use ban-ts-comment
|
|
73
88
|
//'@typescript-eslint/ban-ts-ignore': 'error',
|
|
74
89
|
|
|
@@ -80,7 +95,6 @@ module.exports = {
|
|
|
80
95
|
'@typescript-eslint/no-unsafe-return': 'off', // TODO: TS4 consider enabling
|
|
81
96
|
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
82
97
|
'@typescript-eslint/no-misused-promises': 'error',
|
|
83
|
-
'@typescript-eslint/no-deprecated': 'warn',
|
|
84
98
|
|
|
85
99
|
// TODO: enable this again when babel-lint supports it
|
|
86
100
|
// Using babel-eslint (v11 beta ATTOW) as the parser have issues with this rule so it's disabled
|
|
@@ -96,16 +110,15 @@ module.exports = {
|
|
|
96
110
|
},
|
|
97
111
|
],
|
|
98
112
|
|
|
99
|
-
'@typescript-eslint/no-unused-expressions': 'off', // TODO: New in TSESLint8 consider enabling
|
|
100
|
-
|
|
101
113
|
'react/display-name': 'off',
|
|
102
114
|
'react/prop-types': 'off',
|
|
103
|
-
'react/react-in-jsx-scope': 'off',
|
|
104
115
|
'react-hooks/rules-of-hooks': 'error',
|
|
105
116
|
'react-hooks/exhaustive-deps': 'warn',
|
|
106
117
|
'react/no-unescaped-entities': 'off', // TODO: maybe enable this?
|
|
107
118
|
'react/no-unknown-property': ['error', { ignore: ['css'] }],
|
|
108
119
|
'react/jsx-no-literals': 'off', // TODO: maybe enable this?
|
|
120
|
+
|
|
121
|
+
'deprecation/deprecation': 'warn',
|
|
109
122
|
},
|
|
110
123
|
},
|
|
111
124
|
// javascript overrides
|
package/package.json
CHANGED
|
@@ -5,21 +5,22 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "2.2.0-alpha.
|
|
8
|
+
"version": "2.2.0-alpha.c79adffa",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
11
|
-
"@typescript-eslint/parser": "^
|
|
12
|
-
"eslint": "8.
|
|
13
|
-
"eslint-import-resolver-babel-module": "^5.3.
|
|
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",
|
|
14
14
|
"eslint-import-resolver-lerna": "^2.0.0",
|
|
15
|
-
"eslint-import-resolver-typescript": "^3.
|
|
15
|
+
"eslint-import-resolver-typescript": "^3.5.2",
|
|
16
16
|
"eslint-import-resolver-workspaces": "^1.2.0",
|
|
17
|
-
"eslint-plugin-
|
|
18
|
-
"eslint-plugin-
|
|
19
|
-
"eslint-plugin-
|
|
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",
|
|
20
21
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
21
|
-
"eslint-plugin-simple-import-sort": "^
|
|
22
|
-
"prettier": "
|
|
22
|
+
"eslint-plugin-simple-import-sort": "^8.0.0",
|
|
23
|
+
"prettier": "2.7.1"
|
|
23
24
|
},
|
|
24
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "c79adffa9d3abdc5a68e179196b451f0d9aec5e9"
|
|
25
26
|
}
|