@d-kuehn/eslint-config 1.0.9 → 2.0.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 +12 -10
- package/dist/index.js +1 -1
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @d-kuehn/eslint-config
|
|
2
2
|
|
|
3
|
+
[](https://gitlab.com/d-kuehn/eslint-config/-/releases)
|
|
4
|
+
|
|
3
5
|
A comprehensive collection of shareable ESLint configurations for JavaScript and TypeScript development.
|
|
4
6
|
|
|
5
7
|
## Quick Start
|
|
@@ -34,7 +36,7 @@ import {
|
|
|
34
36
|
export default combine(
|
|
35
37
|
defaults(),
|
|
36
38
|
typescript(),
|
|
37
|
-
stylistic()
|
|
39
|
+
stylistic(),
|
|
38
40
|
// Add more configurations as needed
|
|
39
41
|
);
|
|
40
42
|
```
|
|
@@ -75,7 +77,7 @@ export default combine(
|
|
|
75
77
|
| ---------------------------------------------------------------------------------------------------------------------- | --------------------------- | --------------------------------------------------- |
|
|
76
78
|
| [vitest() v1.1.10](https://github.com/vitest-dev/eslint-plugin-vitest) | Vitest test rules | `**/*.{spec,test,bench,benchmark}.?([cm])[jt]s?(x)` |
|
|
77
79
|
| [playwright() v2.1.0](https://github.com/playwright-community/eslint-plugin-playwright) | Playwright E2E test rules | `tests/e2e/**`, `**/*.e2e.?([cm])[jt]s?(x)` |
|
|
78
|
-
| [testingLibrary() v6.
|
|
80
|
+
| [testingLibrary() v6.5.0](https://github.com/testing-library/eslint-plugin-testing-library) | Testing Library with Vue.js | `**/*.{spec,test,bench,benchmark}.?([cm])[jt]s?(x)` |
|
|
79
81
|
|
|
80
82
|
## Configuration Options
|
|
81
83
|
|
|
@@ -83,9 +85,9 @@ Each configuration accepts an options object:
|
|
|
83
85
|
|
|
84
86
|
```ts
|
|
85
87
|
interface Options {
|
|
86
|
-
ignores?: string[];
|
|
87
|
-
plugins?: Record<string, TSESLint.
|
|
88
|
-
rules?: Record<string, TSESLint.
|
|
88
|
+
ignores?: string[]; // Files to ignore
|
|
89
|
+
plugins?: Record<string, TSESLint.Linter.Plugin>; // Additional ESLint plugins
|
|
90
|
+
rules?: Record<string, TSESLint.SharedConfig.RuleEntry>; // Custom rule configurations
|
|
89
91
|
}
|
|
90
92
|
```
|
|
91
93
|
|
|
@@ -123,13 +125,13 @@ export default combine(
|
|
|
123
125
|
typescript({
|
|
124
126
|
ignores: ['*.test.ts'],
|
|
125
127
|
rules: {
|
|
126
|
-
'@typescript-eslint/no-explicit-any': 'off'
|
|
127
|
-
}
|
|
128
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
129
|
+
},
|
|
128
130
|
}),
|
|
129
131
|
stylistic({
|
|
130
132
|
rules: {
|
|
131
|
-
'@stylistic/indent': ['error', 4]
|
|
132
|
-
}
|
|
133
|
-
})
|
|
133
|
+
'@stylistic/indent': ['error', 4],
|
|
134
|
+
},
|
|
135
|
+
}),
|
|
134
136
|
);
|
|
135
137
|
```
|
package/dist/index.js
CHANGED
|
@@ -701,7 +701,6 @@ var tailwindCss = async (options = {}) => {
|
|
|
701
701
|
var testingLibrary = async (options = {}) => {
|
|
702
702
|
const commonIgnores = [...GLOBS_EXCLUDE, ...options.ignores ?? []];
|
|
703
703
|
const [pluginTestingLibrary, eslintCompat] = await Promise.all([
|
|
704
|
-
// @ts-expect-error TS7016: Could not find a declaration file for module eslint-plugin-testing-library
|
|
705
704
|
interopDefault(import("eslint-plugin-testing-library")),
|
|
706
705
|
interopDefault(import("@eslint/compat"))
|
|
707
706
|
]);
|
|
@@ -832,6 +831,7 @@ var typescript = async (options = {}) => {
|
|
|
832
831
|
selector: ["interface", "typeAlias"]
|
|
833
832
|
}
|
|
834
833
|
],
|
|
834
|
+
"@typescript-eslint/no-import-type-side-effects": "error",
|
|
835
835
|
"@typescript-eslint/no-unsafe-argument": "off",
|
|
836
836
|
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
837
837
|
"@typescript-eslint/no-unsafe-call": "off",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-kuehn/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -12,8 +12,11 @@
|
|
|
12
12
|
"build": "tsup --format esm --clean --dts",
|
|
13
13
|
"update:readme": "node --experimental-strip-types ./bin/updateReadme.ts"
|
|
14
14
|
},
|
|
15
|
-
"keywords": [
|
|
15
|
+
"keywords": [
|
|
16
|
+
"eslint-config"
|
|
17
|
+
],
|
|
16
18
|
"author": "d. kuehn <doc.kuehn@arcor.de>",
|
|
19
|
+
"changelog": "https://gitlab.com/d-kuehn/eslint-config/-/blob/develop/CHANGELOG.md",
|
|
17
20
|
"license": "MIT",
|
|
18
21
|
"homepage": "https://gitlab.com/d-kuehn/eslint-config",
|
|
19
22
|
"repository": {
|
|
@@ -40,7 +43,7 @@
|
|
|
40
43
|
"eslint-plugin-regexp": "2.7.0",
|
|
41
44
|
"eslint-plugin-storybook": "0.11.1",
|
|
42
45
|
"eslint-plugin-tailwindcss": "3.17.5",
|
|
43
|
-
"eslint-plugin-testing-library": "6.
|
|
46
|
+
"eslint-plugin-testing-library": "6.5.0",
|
|
44
47
|
"eslint-plugin-unicorn": "56.0.1",
|
|
45
48
|
"eslint-plugin-vue": "9.31.0",
|
|
46
49
|
"eslint-plugin-vuejs-accessibility": "2.4.1",
|