@autofleet/lint 1.0.1-beta-9e7b8544.1 → 1.0.1-beta-c262fdfd.1
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/.oxfmtrc.json +1 -1
- package/.oxlintrc.json +6 -0
- package/MIGRATION_GAPS.md +14 -17
- package/bin/{oxfmt.js → oxfmt.cjs} +2 -2
- package/bin/{oxlint.js → oxlint.cjs} +2 -2
- package/package.json +5 -5
package/.oxfmtrc.json
CHANGED
package/.oxlintrc.json
CHANGED
package/MIGRATION_GAPS.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# Migration Gaps: ESLint
|
|
1
|
+
# Migration Gaps: ESLint → Oxlint/Oxfmt
|
|
2
2
|
|
|
3
|
-
This document outlines the rules and features from our previous ESLint
|
|
3
|
+
This document outlines the rules and features from our previous ESLint setup that are **NOT available** in Oxlint/Oxfmt.
|
|
4
4
|
|
|
5
5
|
## Summary
|
|
6
6
|
|
|
7
|
-
- **Previous Setup**: ESLint (190+ rules) +
|
|
7
|
+
- **Previous Setup**: ESLint (190+ rules) + Oxlint (detection only)
|
|
8
8
|
- **New Setup**: Oxlint (140+ rules migrated) + Oxfmt
|
|
9
9
|
- **Total Gaps**: ~50 rules not supported + some configuration features
|
|
10
10
|
|
|
@@ -21,7 +21,7 @@ This document outlines the rules and features from our previous ESLint + Prettie
|
|
|
21
21
|
| `import/extensions` | Not implemented | TypeScript handles this |
|
|
22
22
|
| `import/prefer-default-export` | Not implemented | Follow convention manually |
|
|
23
23
|
| `import/no-extraneous-dependencies` | Not implemented | Manual package.json review |
|
|
24
|
-
| `max-len` | Formatting rule - handled by Oxfmt differently | Oxfmt uses `printWidth:
|
|
24
|
+
| `max-len` | Formatting rule - handled by Oxfmt differently | Oxfmt uses `printWidth: 160` |
|
|
25
25
|
|
|
26
26
|
### TypeScript ESLint Rules (Not in Oxlint)
|
|
27
27
|
|
|
@@ -169,24 +169,21 @@ export default config;
|
|
|
169
169
|
|
|
170
170
|
---
|
|
171
171
|
|
|
172
|
-
## 🎨 Oxfmt
|
|
172
|
+
## 🎨 Oxfmt Formatting Gaps
|
|
173
173
|
|
|
174
|
-
###
|
|
174
|
+
### Features NOT in Oxfmt
|
|
175
175
|
|
|
176
176
|
| Feature | Status | Impact |
|
|
177
177
|
|---------|--------|--------|
|
|
178
178
|
| Embedded language formatting (CSS-in-JS, HTML in JS) | ⏳ Coming in Beta | Medium - may need manual formatting for styled-components |
|
|
179
|
-
| Plugin system | ⏳ Researching for Beta | Low
|
|
179
|
+
| Plugin system | ⏳ Researching for Beta | Low |
|
|
180
180
|
| Vue/Svelte/Astro support | ⏳ Coming in Beta | N/A - not used in task-ms |
|
|
181
|
-
| `.prettierignore` patterns | ⚠️ Manual copy needed | Low - copy patterns to consumer projects |
|
|
182
181
|
|
|
183
|
-
### Oxfmt
|
|
182
|
+
### Oxfmt Notes
|
|
184
183
|
|
|
185
|
-
1. **Default Line Width**: Oxfmt defaults to 100
|
|
186
|
-
- ✅ We set it to 120 in both, so no issue
|
|
184
|
+
1. **Default Line Width**: Oxfmt defaults to 100 - we override to 160
|
|
187
185
|
|
|
188
|
-
2. **Formatting Algorithm**: May produce slightly different output in edge cases
|
|
189
|
-
- ✅ Oxfmt aims for 99.99% compatibility, currently at ~95%
|
|
186
|
+
2. **Formatting Algorithm**: May produce slightly different output in edge cases in rare scenarios
|
|
190
187
|
|
|
191
188
|
3. **Configuration Options**: All major options supported
|
|
192
189
|
- ✅ Our config (semi, singleQuote, trailingComma, etc.) fully supported
|
|
@@ -236,13 +233,13 @@ export default config;
|
|
|
236
233
|
|
|
237
234
|
### Simplicity
|
|
238
235
|
|
|
239
|
-
- **Before**: 10 packages (ESLint + 6 plugins + TypeScript plugins
|
|
236
|
+
- **Before**: 10 packages (ESLint + 6 plugins + TypeScript plugins)
|
|
240
237
|
- **After**: 2 packages (Oxlint + Oxfmt)
|
|
241
238
|
- **Config Complexity**: Reduced from 220 lines to 140 lines
|
|
242
239
|
|
|
243
240
|
### Maintenance
|
|
244
241
|
|
|
245
|
-
- **Before**: Manage ESLint, TypeScript ESLint, Airbnb, Unicorn
|
|
242
|
+
- **Before**: Manage ESLint, TypeScript ESLint, Airbnb, Unicorn compatibility
|
|
246
243
|
- **After**: Single Oxc project maintains all rules
|
|
247
244
|
|
|
248
245
|
---
|
|
@@ -298,5 +295,5 @@ Watch Oxc project for:
|
|
|
298
295
|
|
|
299
296
|
---
|
|
300
297
|
|
|
301
|
-
**Last Updated**: 2026-
|
|
302
|
-
**Migration Version**: ESLint 8.57
|
|
298
|
+
**Last Updated**: 2026-03-12
|
|
299
|
+
**Migration Version**: ESLint 8.57 → Oxlint 1.43 + Oxfmt 0.28
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// Wrapper script to run Oxfmt from @autofleet/lint's dependencies
|
|
4
|
-
const { spawn } = require('child_process');
|
|
5
|
-
const path = require('path');
|
|
4
|
+
const { spawn } = require('node:child_process');
|
|
5
|
+
const path = require('node:path');
|
|
6
6
|
|
|
7
7
|
try {
|
|
8
8
|
// Resolve oxfmt module from our package's dependencies
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// Wrapper script to run Oxlint from @autofleet/lint's dependencies with auto-fix support
|
|
4
|
-
const { spawn } = require('child_process');
|
|
5
|
-
const path = require('path');
|
|
4
|
+
const { spawn } = require('node:child_process');
|
|
5
|
+
const path = require('node:path');
|
|
6
6
|
|
|
7
7
|
try {
|
|
8
8
|
// Resolve oxlint module from our package's dependencies
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autofleet/lint",
|
|
3
|
-
"version": "1.0.1-beta-
|
|
3
|
+
"version": "1.0.1-beta-c262fdfd.1",
|
|
4
4
|
"description": "Shared Oxlint and Oxfmt configuration for Autofleet projects (Rust-powered, ultra-fast)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"autofleet-lint": "./bin/oxlint.
|
|
8
|
-
"autofleet-fmt": "./bin/oxfmt.
|
|
7
|
+
"autofleet-lint": "./bin/oxlint.cjs",
|
|
8
|
+
"autofleet-fmt": "./bin/oxfmt.cjs"
|
|
9
9
|
},
|
|
10
10
|
"author": "Autofleet",
|
|
11
11
|
"license": "ISC",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"RULES.md"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"oxfmt": "0.
|
|
27
|
-
"oxlint": "1.
|
|
26
|
+
"oxfmt": "^0.41.0",
|
|
27
|
+
"oxlint": "^1.56.0"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
30
|
"oxlint",
|