@nelsonlaidev/oxlint-config 0.3.2 → 0.4.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/README.md +40 -36
- package/dist/index.d.mts +4 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +688 -970
- package/dist/index.mjs.map +1 -1
- package/package.json +41 -31
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @nelsonlaidev/oxlint-config
|
|
2
2
|
|
|
3
|
+
[](https://npmx.dev/package/@nelsonlaidev/oxlint-config)
|
|
4
|
+
[](https://npmx.dev/package/@nelsonlaidev/oxlint-config)
|
|
5
|
+
[](https://github.com/nelsonlaidev/config/blob/main/LICENSE)
|
|
6
|
+
|
|
3
7
|
Personal Oxlint configurations for Nelson Lai projects.
|
|
4
8
|
|
|
5
9
|
This package is synced from `eslint-config` and aims to enable every supported Oxlint rule that is also enabled in `eslint-config`.
|
|
@@ -37,8 +41,6 @@ export default defineConfig({
|
|
|
37
41
|
|
|
38
42
|
This package follows `eslint-config` as the source of truth. When a rule is enabled there, we enable the corresponding Oxlint rule here when Oxlint supports it.
|
|
39
43
|
|
|
40
|
-
`unused-imports` is intentionally not included. Oxlint's built-in `no-unused-vars` rule with `fix.imports: "safe-fix"` accomplishes the same goal natively.
|
|
41
|
-
|
|
42
44
|
### What's Included
|
|
43
45
|
|
|
44
46
|
This config includes opinionated rules from the following plugins:
|
|
@@ -47,18 +49,21 @@ This config includes opinionated rules from the following plugins:
|
|
|
47
49
|
|
|
48
50
|
- `oxc`
|
|
49
51
|
- `eslint`
|
|
52
|
+
- `command`
|
|
50
53
|
- `typescript`
|
|
51
54
|
- `unicorn`
|
|
52
55
|
- `promise`
|
|
53
56
|
- `node`
|
|
54
57
|
- `jsx-a11y`
|
|
55
|
-
- `import`
|
|
58
|
+
- `import`
|
|
56
59
|
- `jsdoc`
|
|
60
|
+
- `nelsonlaidev`
|
|
57
61
|
- `stylistic`
|
|
58
62
|
- `de-morgan`
|
|
59
63
|
- `zod`
|
|
60
64
|
- `regexp`
|
|
61
65
|
- `sonarjs`
|
|
66
|
+
- `import-sort`
|
|
62
67
|
|
|
63
68
|
#### Conditionally enabled
|
|
64
69
|
|
|
@@ -72,46 +77,45 @@ This config includes opinionated rules from the following plugins:
|
|
|
72
77
|
|
|
73
78
|
<!-- sync:report-start -->
|
|
74
79
|
|
|
75
|
-
###
|
|
76
|
-
|
|
77
|
-
| Preset
|
|
78
|
-
|
|
|
79
|
-
| `
|
|
80
|
-
| `
|
|
81
|
-
| `
|
|
82
|
-
| `
|
|
83
|
-
| `
|
|
84
|
-
| `jsdoc/jsdoc/rules` |
|
|
85
|
-
| `
|
|
86
|
-
| `
|
|
87
|
-
| `nextjs/nextjs/rules` |
|
|
88
|
-
| `
|
|
89
|
-
| `
|
|
80
|
+
### Sync Summary
|
|
81
|
+
|
|
82
|
+
| Preset | Synced | Dropped | Classified | Unclassified | Coverage |
|
|
83
|
+
| ------------------------------------------------- | -----: | ------: | ---------: | -----------: | -------: |
|
|
84
|
+
| `command/nelsonlaidev/command/rules` | 1 | 0 | 0 | 0 | 100.0% |
|
|
85
|
+
| `de-morgan/nelsonlaidev/de-morgan/rules` | 2 | 0 | 0 | 0 | 100.0% |
|
|
86
|
+
| `eslint/nelsonlaidev/javascript/rules` | 93 | 2 | 2 | 0 | 100.0% |
|
|
87
|
+
| `import-sort/nelsonlaidev/import-sort/rules` | 2 | 0 | 0 | 0 | 100.0% |
|
|
88
|
+
| `imports/nelsonlaidev/import-x/rules` | 20 | 6 | 6 | 0 | 84.6% |
|
|
89
|
+
| `jsdoc/nelsonlaidev/jsdoc/rules` | 2 | 0 | 0 | 0 | 100.0% |
|
|
90
|
+
| `jsx-a11y/nelsonlaidev/jsx-a11y/rules` | 35 | 1 | 1 | 0 | 100.0% |
|
|
91
|
+
| `nelsonlaidev/nelsonlaidev/nelsonlaidev/rules` | 5 | 0 | 0 | 0 | 100.0% |
|
|
92
|
+
| `nextjs/nelsonlaidev/nextjs/rules` | 21 | 0 | 0 | 0 | 100.0% |
|
|
93
|
+
| `node/nelsonlaidev/node/rules` | 2 | 4 | 4 | 0 | 50.0% |
|
|
94
|
+
| `playwright/nelsonlaidev/playwright/rules` | 36 | 0 | 0 | 0 | 100.0% |
|
|
95
|
+
| `promise/nelsonlaidev/promise/rules` | 16 | 1 | 1 | 0 | 100.0% |
|
|
96
|
+
| `react/nelsonlaidev/react/rules` | 99 | 0 | 0 | 0 | 100.0% |
|
|
97
|
+
| `regexp/nelsonlaidev/regexp/rules` | 67 | 0 | 0 | 0 | 100.0% |
|
|
98
|
+
| `sonarjs/nelsonlaidev/sonarjs/rules` | 268 | 0 | 0 | 0 | 100.0% |
|
|
99
|
+
| `stylistic/nelsonlaidev/stylistic/rules` | 1 | 0 | 0 | 0 | 100.0% |
|
|
100
|
+
| `tailwindcss/nelsonlaidev/tailwindcss/rules` | 12 | 0 | 0 | 0 | 100.0% |
|
|
101
|
+
| `typescript/nelsonlaidev/typescript/rules` | 117 | 21 | 21 | 0 | 100.0% |
|
|
102
|
+
| `typescript/nelsonlaidev/typescript/declarations` | 2 | 0 | 0 | 0 | 100.0% |
|
|
103
|
+
| `unicorn/nelsonlaidev/unicorn/rules` | 134 | 195 | 195 | 0 | 41.0% |
|
|
104
|
+
| `vitest/nelsonlaidev/vitest/rules` | 20 | 0 | 0 | 0 | 100.0% |
|
|
105
|
+
| `zod/nelsonlaidev/zod/rules` | 1 | 0 | 0 | 0 | 100.0% |
|
|
106
|
+
|
|
107
|
+
### Unclassified Dropped Rules
|
|
108
|
+
|
|
109
|
+
No unclassified dropped rules.
|
|
90
110
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
These use `jsPlugins` and are checked for consistency via `sync:check`.
|
|
94
|
-
|
|
95
|
-
- `regexp`
|
|
96
|
-
- `playwright`
|
|
97
|
-
- `sonarjs`
|
|
98
|
-
- `zod`
|
|
99
|
-
- `command`
|
|
100
|
-
- `stylistic`
|
|
101
|
-
- `de-morgan`
|
|
102
|
-
- `tailwindcss`
|
|
103
|
-
- `react`
|
|
104
|
-
- `nelsonlaidev`
|
|
111
|
+
<!-- sync:report-end -->
|
|
105
112
|
|
|
106
|
-
###
|
|
113
|
+
### Configs Not Migrated
|
|
107
114
|
|
|
108
115
|
| Config | Reason |
|
|
109
116
|
| ------------------- | --------------------------------------------------------------- |
|
|
110
117
|
| `comments.ts` | Plugin that comments out eslint-disable directives |
|
|
111
118
|
| `gitignore.ts` | File-based ignores, handled by Oxlint config |
|
|
112
119
|
| `ignores.ts` | File ignore patterns |
|
|
113
|
-
| `import-sort.ts` | Replaced by Oxlint built-in `import/sort` |
|
|
114
120
|
| `prettier.ts` | Formatting concern, handled by oxfmt |
|
|
115
121
|
| `unused-imports.ts` | Replaced by Oxlint built-in `no-unused-vars` with `fix.imports` |
|
|
116
|
-
|
|
117
|
-
<!-- sync:report-end -->
|
package/dist/index.d.mts
CHANGED
|
@@ -33,6 +33,10 @@ type TailwindCSSConfig = {
|
|
|
33
33
|
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/settings/settings.md#tsconfig) for more details.
|
|
34
34
|
*/
|
|
35
35
|
tsconfig?: string;
|
|
36
|
+
/**
|
|
37
|
+
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/settings/settings.md#cwd) for more details.
|
|
38
|
+
*/
|
|
39
|
+
cwd?: string;
|
|
36
40
|
/**
|
|
37
41
|
* See [official docs](https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/settings/settings.md#detectcomponentclasses) for more details.
|
|
38
42
|
* @default false
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types/playwright.ts","../src/types/tailwindcss.ts","../src/types/vitest.ts","../src/types/config.ts","../src/base.ts","../src/globs.ts"],"mappings":";;;;KAEY,gBAAA;;;AAAZ;EAIE,KAAA,EAAO,cAAA;;;;;EAKP,mBAAA;EAKA;;;;EAAA,sBAAA;AAAA;;;KCdU,iBAAA;;;ADAZ;ECIE,UAAA;;;;EAIA,cAAA;EDCA;;;ECGA,QAAA;;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types/playwright.ts","../src/types/tailwindcss.ts","../src/types/vitest.ts","../src/types/config.ts","../src/base.ts","../src/globs.ts"],"mappings":";;;;KAEY,gBAAA;;;AAAZ;EAIE,KAAA,EAAO,cAAA;;;;;EAKP,mBAAA;EAKA;;;;EAAA,sBAAA;AAAA;;;KCdU,iBAAA;;;ADAZ;ECIE,UAAA;;;;EAIA,cAAA;EDCA;;;ECGA,QAAA;;;;EAIA,GAAA;EAhB2B;;;;EAqB3B,sBAAA;EATA;;;;EAcA,YAAA;EAQA;;;EAJA,YAAA;EAgBE;;;EAZF,SAAA,GAAY,SAAA;EAEZ,SAAA;IAiCE;;;;IA5BA,QAAA;IAwC6C;;;;IAnC7C,OAAA;EAAA;EAGF,UAAA;;;;ACjDF;IDsDI,KAAA;IClDK;;;;IDuDL,cAAA;;AExDJ;;;IF6DI,iBAAA;IEzDO;;;;IF8DP,YAAA;IEhEF;;;;IFqEE,eAAA;EAAA;EElEW;;;AAGf;EFsEE,QAAA,cAAsB,KAAA;IAAQ,OAAA;IAAiB,OAAA;IAAkB,GAAA;EAAA;EEpEjE;;;;EF0EA,MAAA;EAEA,UAAA;;AGrDF;;;IH0DI,cAAA;EAAA;AAAA;;;KC9FQ,YAAA;;;AFAZ;EEIE,KAAA,EAAO,cAAA;AAAA;;;KCDG,YAAA;EACV,MAAA;EACA,KAAA;EACA,WAAA,GAAc,iBAAA;EACd,MAAA,GAAS,YAAA;EACT,UAAA,GAAa,gBAAA;AAAA;AAAA,KAGH,mBAAA;EACV,MAAA,GAAS,cAAA;EACT,MAAA,GAAS,YAAA;AAAA;;;cCuBE,YAAA;EAAgB,MAAA;EAAA,MAAA,EAAA;AAAA,IAA0C,mBAAA,KAA2B,cAAA;;;cCtCrF,YAAA;AAAA,cACA,QAAA;AAAA,cAEA,OAAA;AAAA,cACA,QAAA;AAAA,cAEA,OAAA;AAAA,cACA,QAAA"}
|