@d-kuehn/eslint-config 3.0.0 → 3.2.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 +5 -3
- package/dist/index.js +2 -8
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://gitlab.com/d-kuehn/eslint-config/-/releases)
|
|
4
4
|
|
|
5
|
-
A comprehensive collection of shareable ESLint configurations for JavaScript and TypeScript development.
|
|
5
|
+
A comprehensive, opinionated collection of shareable ESLint configurations for JavaScript and TypeScript development.
|
|
6
6
|
|
|
7
7
|
## Quick Start
|
|
8
8
|
|
|
@@ -10,6 +10,8 @@ A comprehensive collection of shareable ESLint configurations for JavaScript and
|
|
|
10
10
|
pnpm install --save-dev @d-kuehn/eslint-config
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
You need to have [Eslint](https://github.com/eslint/eslint) >= v9 installed.
|
|
14
|
+
|
|
13
15
|
Create an `eslint.config.js` in your project root:
|
|
14
16
|
|
|
15
17
|
```ts
|
|
@@ -48,7 +50,7 @@ export default combine(
|
|
|
48
50
|
| Configuration | Purpose | Targeted Files |
|
|
49
51
|
| ------------------------------------------------------------------------------------------------ | ------------------------------------------- | --------------------------------------- |
|
|
50
52
|
| [defaults() v9.15.0](https://github.com/eslint/eslint) | Base ESLint rules for JS/TS projects | All JavaScript/TypeScript files, `.vue` |
|
|
51
|
-
| [typescript() v8.
|
|
53
|
+
| [typescript() v8.16.0](https://github.com/typescript-eslint/typescript-eslint) | TypeScript-specific rules and type checking | `.ts`, `.tsx`, `.mts`, `.cts`, `.vue` |
|
|
52
54
|
| [stylistic() v2.11.0](https://github.com/eslint-stylistic/eslint-stylistic) | Code style and formatting rules | All JavaScript/TypeScript files, `.vue` |
|
|
53
55
|
|
|
54
56
|
### Feature-specific Configurations
|
|
@@ -60,7 +62,7 @@ export default combine(
|
|
|
60
62
|
| [jsonc() v2.18.2](https://github.com/ota-meshi/eslint-plugin-jsonc) | JSON validation and formatting | `.json`, `.jsonc`, `.json5` |
|
|
61
63
|
| [regexp() v2.7.0](https://github.com/ota-meshi/eslint-plugin-regexp) | Regular expressions validation | All JavaScript/TypeScript files, `.vue` |
|
|
62
64
|
| [unicorn() v56.0.1](https://github.com/sindresorhus/eslint-plugin-unicorn) | Additional JavaScript rules | All JavaScript/TypeScript files, `.vue` |
|
|
63
|
-
| [perfectionist() v4.
|
|
65
|
+
| [perfectionist() v4.1.2](https://github.com/azat-io/eslint-plugin-perfectionist) | Consistent code organization | All JavaScript/TypeScript files, `.vue` |
|
|
64
66
|
|
|
65
67
|
### Framework Support
|
|
66
68
|
|
package/dist/index.js
CHANGED
|
@@ -700,10 +700,7 @@ var tailwindCss = async (options = {}) => {
|
|
|
700
700
|
// src/eslintConfigs/testingLibrary.ts
|
|
701
701
|
var testingLibrary = async (options = {}) => {
|
|
702
702
|
const commonIgnores = [...GLOBS_EXCLUDE, ...options.ignores ?? []];
|
|
703
|
-
const
|
|
704
|
-
interopDefault(import("eslint-plugin-testing-library")),
|
|
705
|
-
interopDefault(import("@eslint/compat"))
|
|
706
|
-
]);
|
|
703
|
+
const pluginTestingLibrary = await interopDefault(import("eslint-plugin-testing-library"));
|
|
707
704
|
return [
|
|
708
705
|
{
|
|
709
706
|
ignores: commonIgnores,
|
|
@@ -716,10 +713,7 @@ var testingLibrary = async (options = {}) => {
|
|
|
716
713
|
ignores: commonIgnores,
|
|
717
714
|
name: "testing-library/custom",
|
|
718
715
|
plugins: {
|
|
719
|
-
|
|
720
|
-
"testing-library": eslintCompat.fixupPluginRules({
|
|
721
|
-
rules: pluginTestingLibrary.rules
|
|
722
|
-
}),
|
|
716
|
+
"testing-library": pluginTestingLibrary,
|
|
723
717
|
...options?.plugins && options.plugins
|
|
724
718
|
},
|
|
725
719
|
rules: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-kuehn/eslint-config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@eslint/compat": "1.2.3",
|
|
31
31
|
"@eslint/js": "9.15.0",
|
|
32
32
|
"@stylistic/eslint-plugin": "2.11.0",
|
|
33
|
-
"@typescript-eslint/parser": "8.
|
|
33
|
+
"@typescript-eslint/parser": "8.16.0",
|
|
34
34
|
"@vitest/eslint-plugin": "1.1.10",
|
|
35
35
|
"@vue/eslint-config-typescript": "14.1.4",
|
|
36
36
|
"eslint": "9.15.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"eslint-plugin-import-x": "4.4.3",
|
|
39
39
|
"eslint-plugin-jsdoc": "50.5.0",
|
|
40
40
|
"eslint-plugin-jsonc": "2.18.2",
|
|
41
|
-
"eslint-plugin-perfectionist": "4.
|
|
41
|
+
"eslint-plugin-perfectionist": "4.1.2",
|
|
42
42
|
"eslint-plugin-playwright": "2.1.0",
|
|
43
43
|
"eslint-plugin-regexp": "2.7.0",
|
|
44
44
|
"eslint-plugin-storybook": "0.11.1",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"eslint-plugin-vuejs-accessibility": "2.4.1",
|
|
50
50
|
"globals": "15.12.0",
|
|
51
51
|
"jsonc-eslint-parser": "2.4.0",
|
|
52
|
-
"typescript-eslint": "8.
|
|
52
|
+
"typescript-eslint": "8.16.0",
|
|
53
53
|
"vue-eslint-parser": "9.4.3"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/eslint__js": "8.42.3",
|
|
57
|
-
"@types/node": "22.
|
|
57
|
+
"@types/node": "22.10.0",
|
|
58
58
|
"tsup": "8.3.5",
|
|
59
59
|
"typescript": "5.7.2"
|
|
60
60
|
},
|