@timobechtel/style 1.10.0 → 1.12.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/README.md +20 -0
- package/eslint/core.cjs +1 -0
- package/package.json +12 -11
- package/tsconfig/react.json +0 -1
package/README.md
CHANGED
|
@@ -16,6 +16,26 @@ npm i -D @timobechtel/style prettier "eslint@^8.57.0" typescript
|
|
|
16
16
|
echo '"@timobechtel/style/prettier/index.mjs"' > .prettierrc
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
<details>
|
|
20
|
+
<summary>Extend / customize config</summary>
|
|
21
|
+
|
|
22
|
+
Need to extend the config, e.g. adding plugins?
|
|
23
|
+
|
|
24
|
+
Create a .prettierrc.mjs file and import the config, like this:
|
|
25
|
+
|
|
26
|
+
```js
|
|
27
|
+
import config from '@timobechtel/style/prettier/index.mjs';
|
|
28
|
+
|
|
29
|
+
export default {
|
|
30
|
+
...config,
|
|
31
|
+
// your config
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
</details>
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
19
39
|
### Typescript
|
|
20
40
|
|
|
21
41
|
```bash
|
package/eslint/core.cjs
CHANGED
|
@@ -6,6 +6,7 @@ module.exports = defineConfig({
|
|
|
6
6
|
'eslint:recommended',
|
|
7
7
|
'plugin:import/recommended',
|
|
8
8
|
'prettier',
|
|
9
|
+
'plugin:no-template-curly-in-string-fix/recommended',
|
|
9
10
|
require.resolve('./rules/base.cjs'),
|
|
10
11
|
require.resolve('./rules/import.cjs'),
|
|
11
12
|
require.resolve('./rules/unicorn.cjs'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@timobechtel/style",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"bin",
|
|
@@ -11,27 +11,28 @@
|
|
|
11
11
|
],
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"eslint": "^8.57.0",
|
|
14
|
-
"prettier": "^3.
|
|
15
|
-
"semantic-release": "^
|
|
16
|
-
"typescript": "^5.4
|
|
14
|
+
"prettier": "^3.3.3",
|
|
15
|
+
"semantic-release": "^24.0.0",
|
|
16
|
+
"typescript": "^5.5.4"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"eslint": "^8.57.0",
|
|
20
|
-
"prettier": "^3.
|
|
21
|
-
"semantic-release": "^
|
|
22
|
-
"typescript": "^5.4
|
|
20
|
+
"prettier": "^3.3.3",
|
|
21
|
+
"semantic-release": "^24.0.0",
|
|
22
|
+
"typescript": "^5.5.4"
|
|
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": "^7.
|
|
27
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
28
28
|
"@typescript-eslint/parser": "^7.3.1",
|
|
29
29
|
"eslint-config-prettier": "^9.1.0",
|
|
30
30
|
"eslint-define-config": "^2.1.0",
|
|
31
31
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
32
32
|
"eslint-plugin-import": "^2.29.1",
|
|
33
|
-
"eslint-plugin-
|
|
34
|
-
"eslint-plugin-react
|
|
35
|
-
"eslint-plugin-
|
|
33
|
+
"eslint-plugin-no-template-curly-in-string-fix": "^1.0.4",
|
|
34
|
+
"eslint-plugin-react": "^7.35.0",
|
|
35
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
36
|
+
"eslint-plugin-unicorn": "^55.0.0"
|
|
36
37
|
}
|
|
37
38
|
}
|