@xylabs/eslint-config-flat 7.13.13 → 7.13.14
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 +3 -3
- package/README.body.md +0 -85
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.13.
|
|
4
|
+
"version": "7.13.14",
|
|
5
5
|
"description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"xylabs",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"@babel/core": "^7.29.0",
|
|
56
56
|
"@types/node": "^25.6.0",
|
|
57
57
|
"@vitest/coverage-v8": "~4.1.5",
|
|
58
|
-
"@xylabs/toolchain": "~7.13.
|
|
59
|
-
"@xylabs/tsconfig": "~7.13.
|
|
58
|
+
"@xylabs/toolchain": "~7.13.14",
|
|
59
|
+
"@xylabs/tsconfig": "~7.13.14",
|
|
60
60
|
"acorn": "^8.16.0",
|
|
61
61
|
"cosmiconfig": "~9.0.1",
|
|
62
62
|
"eslint": "^10.3.0",
|
package/README.body.md
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
## Install
|
|
2
|
-
|
|
3
|
-
Using npm:
|
|
4
|
-
|
|
5
|
-
```sh
|
|
6
|
-
npm install -D {{name}}
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Using yarn:
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
yarn add -D {{name}}
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Using pnpm:
|
|
16
|
-
|
|
17
|
-
```sh
|
|
18
|
-
pnpm add -D {{name}}
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Using bun:
|
|
22
|
-
|
|
23
|
-
```sh
|
|
24
|
-
bun add -D {{name}}
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Usage
|
|
28
|
-
|
|
29
|
-
Use this config in your `eslint.config.ts`:
|
|
30
|
-
|
|
31
|
-
```ts
|
|
32
|
-
import type { Linter } from 'eslint'
|
|
33
|
-
|
|
34
|
-
import { config } from '@xylabs/eslint-config-flat'
|
|
35
|
-
|
|
36
|
-
const eslintConfig: Linter.Config[] = [
|
|
37
|
-
...config,
|
|
38
|
-
]
|
|
39
|
-
|
|
40
|
-
export default eslintConfig
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### Extending with custom rules
|
|
44
|
-
|
|
45
|
-
```ts
|
|
46
|
-
import type { Linter } from 'eslint'
|
|
47
|
-
|
|
48
|
-
import { config } from '@xylabs/eslint-config-flat'
|
|
49
|
-
|
|
50
|
-
const eslintConfig: Linter.Config[] = [
|
|
51
|
-
...config,
|
|
52
|
-
{
|
|
53
|
-
rules: {
|
|
54
|
-
// your overrides
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
]
|
|
58
|
-
|
|
59
|
-
export default eslintConfig
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
### Individual configs
|
|
63
|
-
|
|
64
|
-
You can also import individual configs for more granular control:
|
|
65
|
-
|
|
66
|
-
```ts
|
|
67
|
-
import {
|
|
68
|
-
importConfig,
|
|
69
|
-
rulesConfig,
|
|
70
|
-
typescriptConfig,
|
|
71
|
-
unicornConfig,
|
|
72
|
-
} from '@xylabs/eslint-config-flat'
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## What's included
|
|
76
|
-
|
|
77
|
-
- TypeScript strict linting via `@typescript-eslint`
|
|
78
|
-
- Import sorting and validation via `eslint-plugin-import-x`
|
|
79
|
-
- Code quality checks via `eslint-plugin-sonarjs`
|
|
80
|
-
- Best practices via `eslint-plugin-unicorn`
|
|
81
|
-
- Monorepo workspace rules via `eslint-plugin-workspaces`
|
|
82
|
-
- Markdown linting via `eslint-plugin-markdown`
|
|
83
|
-
- Stylistic formatting (no semicolons, single quotes, trailing commas, 2-space indent)
|
|
84
|
-
|
|
85
|
-
For React projects, use [`@xylabs/eslint-config-react-flat`](https://www.npmjs.com/package/@xylabs/eslint-config-react-flat) instead.
|