@st1ggy/linter-config 4.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@st1ggy/linter-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "ESLint, Prettier, Stylelint, and Biome shareable configs (sources in packages/eslint and packages/biome).",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://github.com/St1ggy/linter-config/tree/main#readme",
|
|
22
22
|
"bin": {
|
|
23
|
-
"linter-config": "
|
|
23
|
+
"linter-config": "packages/eslint/scripts/linter-init.mjs"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@next/eslint-plugin-next": "^16.2.3",
|
|
@@ -2,9 +2,22 @@
|
|
|
2
2
|
"$schema": "https://biomejs.dev/schemas/2.4.11/schema.json",
|
|
3
3
|
"root": true,
|
|
4
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
|
+
},
|
|
5
16
|
"linter": {
|
|
6
17
|
"rules": {
|
|
7
|
-
"
|
|
18
|
+
"a11y": {
|
|
19
|
+
"recommended": true
|
|
20
|
+
}
|
|
8
21
|
}
|
|
9
22
|
}
|
|
10
23
|
}
|
|
@@ -14,6 +14,16 @@ Extend from your project `biome.json`, for example:
|
|
|
14
14
|
|
|
15
15
|
Other subpaths: `biome`, `biome-react`, `biome-next`, `biome-svelte` (see root [`package.json`](../../../package.json) `exports`).
|
|
16
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
|
+
|
|
17
27
|
## Scope
|
|
18
28
|
|
|
19
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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-04-10T19:
|
|
3
|
-
"source": "@st1ggy/linter-config@
|
|
2
|
+
"generatedAt": "2026-04-10T19:35:10.350Z",
|
|
3
|
+
"source": "@st1ggy/linter-config@5.0.0 (local tree)",
|
|
4
4
|
"linterConfigRoot": "/Users/dnbragin/Projects/personal/linter-config/packages/eslint",
|
|
5
5
|
"flatConfigs": {
|
|
6
6
|
"eslint-common": {
|
|
@@ -12,7 +12,7 @@ import { fileURLToPath } from 'node:url'
|
|
|
12
12
|
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
13
13
|
const LINTER_ROOT = process.env.LINTER_CONFIG_ROOT ?? path.resolve(__dirname, '..')
|
|
14
14
|
|
|
15
|
-
const SOURCE_LABEL = '@st1ggy/linter-config@
|
|
15
|
+
const SOURCE_LABEL = '@st1ggy/linter-config@5.0.0 (local tree)'
|
|
16
16
|
|
|
17
17
|
const flatConfigPresets = [
|
|
18
18
|
{
|