@gooddata/eslint-config 11.19.0-alpha.2 → 11.19.0-alpha.4

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/PACKAGES_V8.md CHANGED
@@ -3,28 +3,25 @@
3
3
  This table shows which packages are required for each configuration.
4
4
 
5
5
  | Package | base | browser | browser-esm | esm | esm-react | esm-react-cypress | esm-react-vitest | esm-react-vitest-storybook | esm-vitest | react | react-cypress | react-vitest | vitest |
6
- |-----------------------------------|--------|---------|-------------|--------|-----------|-------------------|------------------|----------------------------|------------|--------|---------------|--------------|--------|
6
+ | --------------------------------- | ------ | ------- | ----------- | ------ | --------- | ----------------- | ---------------- | -------------------------- | ---------- | ------ | ------------- | ------------ | ------ |
7
7
  | @testing-library/dom | | | | | | | | 10.4.1 | | | | | |
8
8
  | @typescript-eslint/eslint-plugin | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 |
9
9
  | @typescript-eslint/parser | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 |
10
10
  | @vitest/eslint-plugin | | | | | | | 1.6.6 | 1.6.6 | 1.6.6 | | | 1.6.6 | 1.6.6 |
11
- | eslint-config-prettier | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 |
12
11
  | eslint-import-resolver-typescript | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 |
13
12
  | eslint-plugin-chai-friendly | | | | | | 1.1.0 | | | | | 1.1.0 | | |
14
13
  | eslint-plugin-cypress | | | | | | 3.6.0 | | | | | 3.6.0 | | |
15
14
  | eslint-plugin-header | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 |
16
- | eslint-plugin-import | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 |
17
15
  | eslint-plugin-import-esm | | | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | | | | |
16
+ | eslint-plugin-import-x | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 |
18
17
  | eslint-plugin-jsdoc | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 |
19
18
  | eslint-plugin-no-barrel-files | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 |
20
19
  | eslint-plugin-no-only-tests | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 |
21
- | eslint-plugin-prettier | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 |
22
20
  | eslint-plugin-react | | | | | 7.37.5 | 7.37.5 | 7.37.5 | 7.37.5 | | 7.37.5 | 7.37.5 | 7.37.5 | |
23
21
  | eslint-plugin-react-hooks | | | | | 5.2.0 | 5.2.0 | 5.2.0 | 5.2.0 | | 5.2.0 | 5.2.0 | 5.2.0 | |
24
22
  | eslint-plugin-regexp | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 |
25
23
  | eslint-plugin-sonarjs | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 |
26
24
  | eslint-plugin-storybook | | | | | | | | 10.1.11 | | | | | |
27
- | prettier | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 |
28
25
  | react | | | | | | | | 19.1.1 | | | | | |
29
26
  | react-dom | | | | | | | | 19.1.1 | | | | | |
30
27
  | storybook | | | | | | | | ^10.1.11 | | | | | |
package/PACKAGES_V9.md CHANGED
@@ -3,29 +3,26 @@
3
3
  This table shows which packages are required for each configuration.
4
4
 
5
5
  | Package | base | browser | browser-esm | esm | esm-react | esm-react-cypress | esm-react-vitest | esm-react-vitest-storybook | esm-vitest | react | react-cypress | react-vitest | vitest |
6
- |-----------------------------------|--------|---------|-------------|--------|-----------|-------------------|------------------|----------------------------|------------|--------|---------------|--------------|--------|
6
+ | --------------------------------- | ------ | ------- | ----------- | ------ | --------- | ----------------- | ---------------- | -------------------------- | ---------- | ------ | ------------- | ------------ | ------ |
7
7
  | @eslint/js | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 |
8
8
  | @testing-library/dom | | | | | | | | 10.4.1 | | | | | |
9
9
  | @typescript-eslint/eslint-plugin | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 |
10
10
  | @typescript-eslint/parser | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 |
11
11
  | @vitest/eslint-plugin | | | | | | | 1.6.6 | 1.6.6 | 1.6.6 | | | 1.6.6 | 1.6.6 |
12
- | eslint-config-prettier | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 |
13
12
  | eslint-import-resolver-typescript | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 |
14
13
  | eslint-plugin-chai-friendly | | | | | | 1.1.0 | | | | | 1.1.0 | | |
15
14
  | eslint-plugin-cypress | | | | | | 3.6.0 | | | | | 3.6.0 | | |
16
15
  | eslint-plugin-headers | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 |
17
- | eslint-plugin-import | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 | 2.32.0 |
18
16
  | eslint-plugin-import-esm | | | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | | | | |
17
+ | eslint-plugin-import-x | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 |
19
18
  | eslint-plugin-jsdoc | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 |
20
19
  | eslint-plugin-no-barrel-files | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 |
21
20
  | eslint-plugin-no-only-tests | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 |
22
- | eslint-plugin-prettier | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 |
23
21
  | eslint-plugin-react | | | | | 7.37.5 | 7.37.5 | 7.37.5 | 7.37.5 | | 7.37.5 | 7.37.5 | 7.37.5 | |
24
22
  | eslint-plugin-react-hooks | | | | | 5.2.0 | 5.2.0 | 5.2.0 | 5.2.0 | | 5.2.0 | 5.2.0 | 5.2.0 | |
25
23
  | eslint-plugin-sonarjs | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 |
26
24
  | eslint-plugin-storybook | | | | | | | | 10.1.11 | | | | | |
27
25
  | globals | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 |
28
- | prettier | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 |
29
26
  | react | | | | | | | | 19.1.1 | | | | | |
30
27
  | react-dom | | | | | | | | 19.1.1 | | | | | |
31
28
  | storybook | | | | | | | | ^10.1.11 | | | | | |
package/README.md CHANGED
@@ -338,3 +338,25 @@ interface IConfiguration<RulePrefix extends string = ""> {
338
338
 
339
339
  - The base configuration automatically ignores `**/dist/**/*.*` and `**/esm/**/*.*` files.
340
340
  - **ESM vs ImportESM**: The `esm` configuration sets `parserOptions.sourceType: "module"` to tell the parser to treat files as ES modules. The `importEsm` configuration adds the `eslint-plugin-import-esm` plugin which enforces ESM-specific import rules (e.g., requiring `.js` extensions in imports). Most ESM projects need both.
341
+
342
+ ## Formatting
343
+
344
+ This package is **decoupled from formatters**. The `formatter` configuration (included in all variants by default) disables ESLint rules that conflict with code formatters, allowing you to use any formatter of your choice (Prettier, oxfmt, Biome, etc.) as a separate tool.
345
+
346
+ **How it works:**
347
+
348
+ - ESLint focuses solely on code quality and best practices
349
+ - Formatting rules (indentation, spacing, quotes, etc.) are disabled
350
+ - Run your formatter separately (e.g., `prettier --write` or `oxfmt`)
351
+
352
+ **Recommended setup:**
353
+
354
+ 1. Install your preferred formatter (e.g., `prettier` or `oxfmt`)
355
+ 2. Configure it separately (e.g., `.prettierrc` or `oxfmt.json`)
356
+ 3. Run formatting as a separate step in your workflow or editor
357
+
358
+ This approach provides:
359
+
360
+ - **Flexibility** - Choose any formatter without changing ESLint config
361
+ - **Performance** - Formatters run faster when not piped through ESLint
362
+ - **Clarity** - Clear separation between linting (code quality) and formatting (code style)