@kitql/eslint-config 0.4.0 → 0.5.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/{.prettierrc.cjs → .prettierrc.mjs} +3 -3
- package/README.md +7 -9
- package/cmd.js +1 -1
- package/package.json +8 -8
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import prettierConfig from '@theguild/prettier-config'
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export default {
|
|
4
4
|
...prettierConfig,
|
|
5
5
|
singleQuote: true,
|
|
6
6
|
semi: false,
|
|
7
7
|
arrowParens: 'always',
|
|
8
8
|
plugins: [
|
|
9
|
-
...plugins,
|
|
9
|
+
...prettierConfig.plugins,
|
|
10
10
|
'prettier-plugin-svelte',
|
|
11
11
|
'prettier-plugin-tailwindcss', // MUST come last
|
|
12
12
|
],
|
package/README.md
CHANGED
|
@@ -15,24 +15,22 @@ npm install @kitql/eslint-config --D
|
|
|
15
15
|
|
|
16
16
|
### eslint config
|
|
17
17
|
|
|
18
|
-
`.
|
|
18
|
+
`.eslint.config.js`
|
|
19
19
|
|
|
20
20
|
```js
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
rules: {}
|
|
25
|
-
}
|
|
21
|
+
import kitql from '@kitql/eslint-config'
|
|
22
|
+
|
|
23
|
+
export default [...kitql]
|
|
26
24
|
```
|
|
27
25
|
|
|
28
26
|
### prettier config
|
|
29
27
|
|
|
30
|
-
`.prettierrc.
|
|
28
|
+
`.prettierrc.mjs`
|
|
31
29
|
|
|
32
30
|
```js
|
|
33
|
-
|
|
31
|
+
import config from './packages/eslint-config/.prettierrc.mjs'
|
|
34
32
|
|
|
35
|
-
|
|
33
|
+
export default {
|
|
36
34
|
...config
|
|
37
35
|
// Some custom things?
|
|
38
36
|
}
|
package/cmd.js
CHANGED
|
@@ -29,7 +29,7 @@ program.parse(process.argv)
|
|
|
29
29
|
const options_cli = program.opts()
|
|
30
30
|
|
|
31
31
|
const pathPrettierIgnore = findFileOrUp('.prettierignore')
|
|
32
|
-
const pathPrettierCjs = findFileOrUp('.prettierrc.
|
|
32
|
+
const pathPrettierCjs = findFileOrUp('.prettierrc.mjs')
|
|
33
33
|
|
|
34
34
|
const format = options_cli.format ?? false
|
|
35
35
|
const glob = options_cli.glob ?? '.'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitql/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "opinionated linting and formatting for projects",
|
|
6
6
|
"repository": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "eslint.config.js",
|
|
17
17
|
"files": [
|
|
18
|
-
".prettierrc.
|
|
18
|
+
".prettierrc.mjs",
|
|
19
19
|
"cmd.js",
|
|
20
20
|
"cmd.sh",
|
|
21
21
|
"eslint.config.js",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@eslint/compat": "^1.1.1",
|
|
35
35
|
"@eslint/js": "^9.10.0",
|
|
36
|
-
"@theguild/prettier-config": "
|
|
36
|
+
"@theguild/prettier-config": "3.0.0",
|
|
37
37
|
"@types/eslint": "9.6.1",
|
|
38
38
|
"@typescript-eslint/parser": "^8.5.0",
|
|
39
39
|
"commander": "12.1.0",
|
|
40
40
|
"eslint": "^9.10.0",
|
|
41
|
-
"eslint-plugin-svelte": "2.
|
|
41
|
+
"eslint-plugin-svelte": "2.46.0",
|
|
42
42
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
43
|
-
"globals": "15.
|
|
43
|
+
"globals": "15.14.0",
|
|
44
44
|
"ora": "^8.1.0",
|
|
45
|
-
"prettier": "3.
|
|
46
|
-
"prettier-plugin-svelte": "3.2
|
|
45
|
+
"prettier": "3.4.2",
|
|
46
|
+
"prettier-plugin-svelte": "3.3.2",
|
|
47
47
|
"prettier-plugin-tailwindcss": "0.6.6",
|
|
48
|
-
"typescript-eslint": "8.
|
|
48
|
+
"typescript-eslint": "8.17.0",
|
|
49
49
|
"@kitql/helpers": "0.8.10"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|