@st1ggy/linter-config 3.0.0 → 5.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.
Files changed (46) hide show
  1. package/README.md +77 -35
  2. package/index.d.ts +32 -0
  3. package/package.json +88 -31
  4. package/packages/biome/LICENSE +201 -0
  5. package/packages/biome/biome.json +5 -0
  6. package/packages/biome/configs/biome.common.json +44 -0
  7. package/packages/biome/configs/biome.next.json +10 -0
  8. package/packages/biome/configs/biome.react.json +12 -0
  9. package/packages/biome/configs/biome.svelte.json +23 -0
  10. package/packages/biome/docs/README.md +29 -0
  11. package/packages/eslint/data/linter-config-inventory.json +9325 -0
  12. package/packages/eslint/docs/RULE_MAPPING.md +50 -0
  13. package/packages/eslint/scripts/init-common.sh +4 -0
  14. package/packages/eslint/scripts/init-next.sh +4 -0
  15. package/packages/eslint/scripts/init-react.sh +4 -0
  16. package/packages/eslint/scripts/init-svelte.sh +4 -0
  17. package/packages/eslint/scripts/inventory.mjs +178 -0
  18. package/packages/eslint/scripts/linter-init.mjs +209 -0
  19. package/{src → packages/eslint/src}/eslint/configs/config.prettier.js +2 -2
  20. package/{src → packages/eslint/src}/eslint/configs/config.typescript.js +2 -2
  21. package/packages/eslint/src/eslint/configs/constants.js +7 -0
  22. package/{src/eslint/configs/config.svelte.js → packages/eslint/src/eslint/configs/svelte-stack.js} +2 -7
  23. package/{src/eslint/eslint.config.svelte.js → packages/eslint/src/eslint/eslint-svelte.config.js} +1 -1
  24. package/packages/eslint/src/examples/example.scss +3 -0
  25. package/packages/eslint/src/examples/example.svelte +5 -0
  26. package/{src → packages/eslint/src}/index.js +2 -2
  27. package/scripts/README.md +38 -0
  28. package/scripts/init-common.sh +0 -12
  29. package/scripts/init-react.sh +0 -12
  30. package/scripts/init-svelte.sh +0 -12
  31. package/src/eslint/configs/constants.js +0 -1
  32. /package/{scripts → packages/eslint/scripts}/remove-current.sh +0 -0
  33. /package/{src → packages/eslint/src}/eslint/configs/config.common.js +0 -0
  34. /package/{src → packages/eslint/src}/eslint/configs/config.gitignore.js +0 -0
  35. /package/{src → packages/eslint/src}/eslint/configs/config.import.js +0 -0
  36. /package/{src → packages/eslint/src}/eslint/configs/config.next.js +0 -0
  37. /package/{src → packages/eslint/src}/eslint/configs/config.react.js +0 -0
  38. /package/{src → packages/eslint/src}/eslint/configs/config.sonarjs.js +0 -0
  39. /package/{src → packages/eslint/src}/eslint/configs/config.unicorn.js +0 -0
  40. /package/{src → packages/eslint/src}/eslint/eslint.config.common.js +0 -0
  41. /package/{src → packages/eslint/src}/eslint/eslint.config.next.js +0 -0
  42. /package/{src → packages/eslint/src}/eslint/eslint.config.react.js +0 -0
  43. /package/{src → packages/eslint/src}/examples/example.ts +0 -0
  44. /package/{src/prettier/prettier.config.svelte.js → packages/eslint/src/prettier/prettier-svelte.config.js} +0 -0
  45. /package/{src → packages/eslint/src}/prettier/prettier.config.common.js +0 -0
  46. /package/{src → packages/eslint/src}/stylelint/stylelint.config.scss.js +0 -0
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/2.4.11/schema.json",
3
+ "root": true,
4
+ "extends": ["./biome.common.json"],
5
+ "html": {
6
+ "experimentalFullSupportEnabled": true,
7
+ "formatter": {
8
+ "enabled": true,
9
+ "indentScriptAndStyle": true,
10
+ "indentStyle": "space",
11
+ "indentWidth": 2,
12
+ "lineEnding": "lf",
13
+ "lineWidth": 120
14
+ }
15
+ },
16
+ "linter": {
17
+ "rules": {
18
+ "a11y": {
19
+ "recommended": true
20
+ }
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,29 @@
1
+ # Biome presets (`@st1ggy/linter-config`)
2
+
3
+ This folder holds **Biome** JSON for `@st1ggy/linter-config`: shared `biome.json` plus layered configs under [`configs/`](../configs).
4
+
5
+ ## Subpath exports
6
+
7
+ Extend from your project `biome.json`, for example:
8
+
9
+ ```json
10
+ {
11
+ "extends": ["@st1ggy/linter-config/biome-common"]
12
+ }
13
+ ```
14
+
15
+ Other subpaths: `biome`, `biome-react`, `biome-next`, `biome-svelte` (see root [`package.json`](../../../package.json) `exports`).
16
+
17
+ ### `biome-svelte`
18
+
19
+ [`biome-svelte`](../configs/biome.svelte.json) extends **`biome-common`** and turns on everything Biome exposes for Svelte today (there is no separate `svelte/*` rule group or Svelte linter domain like Vue’s—see [Biome domains](https://biomejs.dev/linter/domains)):
20
+
21
+ - **`html.experimentalFullSupportEnabled`** — full parsing, linting, and formatting of `.svelte` (not only the extracted script).
22
+ - **`html.formatter`** — aligned with common (`lineWidth` 120, LF, spaces, width 2); **`indentScriptAndStyle`** is enabled so `<script>` / `<style>` contents are indented under the tags.
23
+ - **`linter.rules.a11y.recommended`** — same accessibility baseline as **`biome-react`**, applied to markup in components.
24
+
25
+ If you also format `.svelte` with Prettier (or another tool), choose a single formatter for those files to avoid conflicting output. Biome’s HTML/Svelte formatter is still evolving; expect occasional whitespace differences vs other formatters.
26
+
27
+ ## Scope
28
+
29
+ Presets tune Biome’s formatter and linter for TypeScript, React/JSX, Next.js App Router paths, and Svelte—using the same versioning and peer expectations as the rest of the package. Styling for CSS/SCSS is covered where Biome supports it; stricter stylesheet tooling may live in consumer projects.