@timobechtel/style 1.3.0 → 1.4.1
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/README.md +13 -0
- package/eslint/rules/typescript.cjs +3 -0
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -51,6 +51,19 @@ module.exports = {
|
|
|
51
51
|
};
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
+
Note: You should disable `source.organizeImports` in your VSCode config, as this collides with the `import/order` rule.
|
|
55
|
+
|
|
56
|
+
Add the following to your VSCode config, e.g. `.vscode/settings.json`
|
|
57
|
+
|
|
58
|
+
```json
|
|
59
|
+
{
|
|
60
|
+
"editor.codeActionsOnSave": {
|
|
61
|
+
// use eslint import/order instead
|
|
62
|
+
"source.organizeImports": false
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
54
67
|
### semantic-release
|
|
55
68
|
|
|
56
69
|
This repo also contains a [semantic-release](https://github.com/semantic-release/semantic-release) configuration.
|
|
@@ -92,5 +92,8 @@ module.exports = defineConfig({
|
|
|
92
92
|
checksVoidReturn: false,
|
|
93
93
|
},
|
|
94
94
|
],
|
|
95
|
+
// While I'd prefer using types over interfaces, there are a lot of cases
|
|
96
|
+
// where interfaces are needed, e.g. merging declarations and this rule is too strict.
|
|
97
|
+
'@typescript-eslint/consistent-type-definitions': 'off',
|
|
95
98
|
},
|
|
96
99
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@timobechtel/style",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"bin",
|
|
@@ -10,24 +10,24 @@
|
|
|
10
10
|
"tsconfig"
|
|
11
11
|
],
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"eslint": "^8.
|
|
14
|
-
"prettier": "^3.0
|
|
15
|
-
"semantic-release": "^22.0.
|
|
16
|
-
"typescript": "^5.
|
|
13
|
+
"eslint": "^8.54.0",
|
|
14
|
+
"prettier": "^3.1.0",
|
|
15
|
+
"semantic-release": "^22.0.8",
|
|
16
|
+
"typescript": "^5.3.2"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"eslint": "^8.
|
|
20
|
-
"prettier": "^3.0
|
|
21
|
-
"semantic-release": "^22.0.
|
|
22
|
-
"typescript": "^5.
|
|
19
|
+
"eslint": "^8.54.0",
|
|
20
|
+
"prettier": "^3.1.0",
|
|
21
|
+
"semantic-release": "^22.0.8",
|
|
22
|
+
"typescript": "^5.3.2"
|
|
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": "^6.
|
|
28
|
-
"@typescript-eslint/parser": "^6.
|
|
27
|
+
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
28
|
+
"@typescript-eslint/parser": "^6.12.0",
|
|
29
29
|
"eslint-config-prettier": "^9.0.0",
|
|
30
|
-
"eslint-define-config": "^
|
|
30
|
+
"eslint-define-config": "^2.0.0",
|
|
31
31
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
32
32
|
"eslint-plugin-import": "^2.29.0",
|
|
33
33
|
"eslint-plugin-unicorn": "^49.0.0"
|