@xylabs/eslint-config-flat 7.10.4 → 7.10.5

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 (2) hide show
  1. package/README.md +8 -19
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -27,9 +27,15 @@ Using pnpm:
27
27
  pnpm add -D {{name}}
28
28
  ```
29
29
 
30
+ Using bun:
31
+
32
+ ```sh
33
+ bun add -D {{name}}
34
+ ```
35
+
30
36
  ## Usage
31
37
 
32
- Use the default type-aware preset in your `eslint.config.ts`:
38
+ Use this config in your `eslint.config.ts`:
33
39
 
34
40
  ```ts
35
41
  import type { Linter } from 'eslint'
@@ -43,12 +49,6 @@ const eslintConfig: Linter.Config[] = [
43
49
  export default eslintConfig
44
50
  ```
45
51
 
46
- For explicit composition, prefer the named presets:
47
-
48
- ```ts
49
- import { recommendedConfig, recommendedTypeCheckedConfig } from '@xylabs/eslint-config-flat'
50
- ```
51
-
52
52
  ### Extending with custom rules
53
53
 
54
54
  ```ts
@@ -74,12 +74,9 @@ You can also import individual configs for more granular control:
74
74
 
75
75
  ```ts
76
76
  import {
77
- coreConfig,
78
- docsConfig,
79
77
  importConfig,
80
78
  rulesConfig,
81
79
  typescriptConfig,
82
- typescriptTypeCheckedConfig,
83
80
  unicornConfig,
84
81
  } from '@xylabs/eslint-config-flat'
85
82
  ```
@@ -87,21 +84,13 @@ import {
87
84
  ## What's included
88
85
 
89
86
  - TypeScript strict linting via `@typescript-eslint`
90
- - ESLint core recommended rules via `@eslint/js`
91
87
  - Import sorting and validation via `eslint-plugin-import-x`
92
88
  - Code quality checks via `eslint-plugin-sonarjs`
93
89
  - Best practices via `eslint-plugin-unicorn`
94
90
  - Monorepo workspace rules via `eslint-plugin-workspaces`
95
- - Markdown linting via `@eslint/markdown`
91
+ - Markdown linting via `eslint-plugin-markdown`
96
92
  - Stylistic formatting (no semicolons, single quotes, trailing commas, 2-space indent)
97
93
 
98
- Named presets:
99
-
100
- - `recommendedConfig`: shared base preset without type-aware rules
101
- - `recommendedTypeCheckedConfig`: shared base preset with type-aware TypeScript rules
102
- - `docsConfig`: Markdown + JSON/JSONC/JSON5 support
103
- - `config`: compatibility alias of `recommendedTypeCheckedConfig`
104
-
105
94
  For React projects, use [`@xylabs/eslint-config-react-flat`](https://www.npmjs.com/package/@xylabs/eslint-config-react-flat) instead.
106
95
 
107
96
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/package.json",
3
3
  "name": "@xylabs/eslint-config-flat",
4
- "version": "7.10.4",
4
+ "version": "7.10.5",
5
5
  "description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
6
6
  "keywords": [
7
7
  "xylabs",
@@ -53,8 +53,8 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/node": "^25.6.0",
56
- "@xylabs/toolchain": "~7.10.4",
57
- "@xylabs/tsconfig": "~7.10.4",
56
+ "@xylabs/toolchain": "~7.10.5",
57
+ "@xylabs/tsconfig": "~7.10.5",
58
58
  "acorn": "^8.16.0",
59
59
  "cosmiconfig": "^9.0.1",
60
60
  "esbuild": "^0.28.0",