@d-kuehn/eslint-config 2.1.0 → 3.1.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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Latest Release](https://gitlab.com/d-kuehn/eslint-config/-/badges/release.svg)](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.15.0](https://github.com/typescript-eslint/typescript-eslint) | TypeScript-specific rules and type checking | `.ts`, `.tsx`, `.mts`, `.cts`, `.vue` |
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
@@ -77,7 +79,7 @@ export default combine(
77
79
  | ---------------------------------------------------------------------------------------------------------------------- | --------------------------- | --------------------------------------------------- |
78
80
  | [vitest() v1.1.10](https://github.com/vitest-dev/eslint-plugin-vitest) | Vitest test rules | `**/*.{spec,test,bench,benchmark}.?([cm])[jt]s?(x)` |
79
81
  | [playwright() v2.1.0](https://github.com/playwright-community/eslint-plugin-playwright) | Playwright E2E test rules | `tests/e2e/**`, `**/*.e2e.?([cm])[jt]s?(x)` |
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)` |
82
+ | [testingLibrary() v7.0.0](https://github.com/testing-library/eslint-plugin-testing-library) | Testing Library with Vue.js | `**/*.{spec,test,bench,benchmark}.?([cm])[jt]s?(x)` |
81
83
 
82
84
  ## Configuration Options
83
85
 
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 [pluginTestingLibrary, eslintCompat] = await Promise.all([
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
- // ref: https://github.com/testing-library/eslint-plugin-testing-library/issues/924
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": "2.1.0",
3
+ "version": "3.1.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.15.0",
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",
@@ -43,13 +43,13 @@
43
43
  "eslint-plugin-regexp": "2.7.0",
44
44
  "eslint-plugin-storybook": "0.11.1",
45
45
  "eslint-plugin-tailwindcss": "3.17.5",
46
- "eslint-plugin-testing-library": "6.5.0",
46
+ "eslint-plugin-testing-library": "7.0.0",
47
47
  "eslint-plugin-unicorn": "56.0.1",
48
48
  "eslint-plugin-vue": "9.31.0",
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.15.0",
52
+ "typescript-eslint": "8.16.0",
53
53
  "vue-eslint-parser": "9.4.3"
54
54
  },
55
55
  "devDependencies": {