@timobechtel/style 1.5.0 → 1.6.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/eslint/core.cjs +10 -0
- package/eslint/rules/typescript.cjs +7 -0
- package/package.json +16 -16
package/eslint/core.cjs
CHANGED
|
@@ -45,5 +45,15 @@ module.exports = defineConfig({
|
|
|
45
45
|
require.resolve('./rules/typescript.cjs'),
|
|
46
46
|
],
|
|
47
47
|
},
|
|
48
|
+
{
|
|
49
|
+
files: ['*.test.ts?(x)', '*.spec.ts?(x)'],
|
|
50
|
+
rules: {
|
|
51
|
+
// ts-expect-error makes sense for tests
|
|
52
|
+
'@typescript-eslint/ban-ts-comment': [
|
|
53
|
+
'off',
|
|
54
|
+
{ 'ts-expect-error': 'off' },
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
48
58
|
],
|
|
49
59
|
});
|
|
@@ -95,5 +95,12 @@ module.exports = defineConfig({
|
|
|
95
95
|
// While I'd prefer using types over interfaces, there are a lot of cases
|
|
96
96
|
// where interfaces are needed, e.g. merging declarations and this rule is too strict.
|
|
97
97
|
'@typescript-eslint/consistent-type-definitions': 'off',
|
|
98
|
+
// while using property signatures provides better typechecking,
|
|
99
|
+
// method signatures provide better hinting in the editor.
|
|
100
|
+
// (different color for methods vs properties)
|
|
101
|
+
'@typescript-eslint/method-signature-style': 'off',
|
|
102
|
+
// There are cases where using the index signature is more descriptive
|
|
103
|
+
// as the index can be named
|
|
104
|
+
'@typescript-eslint/consistent-indexed-object-style': 'off',
|
|
98
105
|
},
|
|
99
106
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@timobechtel/style",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"bin",
|
|
@@ -10,28 +10,28 @@
|
|
|
10
10
|
"tsconfig"
|
|
11
11
|
],
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"eslint": "^8.
|
|
14
|
-
"prettier": "^3.
|
|
15
|
-
"semantic-release": "^
|
|
16
|
-
"typescript": "^5.3
|
|
13
|
+
"eslint": "^8.57.0",
|
|
14
|
+
"prettier": "^3.2.5",
|
|
15
|
+
"semantic-release": "^23.0.5",
|
|
16
|
+
"typescript": "^5.4.3"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"eslint": "^8.
|
|
20
|
-
"prettier": "^3.
|
|
21
|
-
"semantic-release": "^
|
|
22
|
-
"typescript": "^5.3
|
|
19
|
+
"eslint": "^8.57.0",
|
|
20
|
+
"prettier": "^3.2.5",
|
|
21
|
+
"semantic-release": "^23.0.5",
|
|
22
|
+
"typescript": "^5.4.3"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@semantic-release/changelog": "^6.0.3",
|
|
26
26
|
"@semantic-release/git": "^10.0.1",
|
|
27
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
28
|
-
"@typescript-eslint/parser": "^
|
|
29
|
-
"eslint-config-prettier": "^9.
|
|
30
|
-
"eslint-define-config": "^2.
|
|
27
|
+
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
|
28
|
+
"@typescript-eslint/parser": "^7.3.1",
|
|
29
|
+
"eslint-config-prettier": "^9.1.0",
|
|
30
|
+
"eslint-define-config": "^2.1.0",
|
|
31
31
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
32
|
-
"eslint-plugin-import": "^2.29.
|
|
33
|
-
"eslint-plugin-react": "^7.
|
|
32
|
+
"eslint-plugin-import": "^2.29.1",
|
|
33
|
+
"eslint-plugin-react": "^7.34.1",
|
|
34
34
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
35
|
-
"eslint-plugin-unicorn": "^
|
|
35
|
+
"eslint-plugin-unicorn": "^51.0.1"
|
|
36
36
|
}
|
|
37
37
|
}
|