MyLint
A JS/TS linter and formatter extension that uses ESLint, intended for virtual files and small JS/TS scripts without requiring a local ESLint setup
Extension Settings
Commands
mylint: Format File: Format the current file using the built-in ESLint config
mylint: Open Global ESLint Configuration File: Open the global ESLint config
mylint: Open Settings: Open extension settings
Configurations
myLint.enableDiagnostics: false | Enable/disable showing lint diagnostics in VS Code's Problems tab
mylint.rules: ESLint rule overrides for JS/TS files
MyLint is registered as a VS Code document formatter (ID: lanly-dev.mylint) for JavaScript and TypeScript
Option 1 — one time per file
- Open a JS/TS file →
Ctrl+K Ctrl+F (or right-click → Format Document With...)
- Pick MyLint and click Configure default formatter when prompted
Option 2 — via settings (recommended)
{
"[javascript]": {
"editor.defaultFormatter": "lanly-dev.mylint",
"editor.formatOnSave": true
},
"[typescript]": {
"editor.defaultFormatter": "lanly-dev.mylint",
"editor.formatOnSave": true
}
}
Release Notes
0.0.3
- Register MyLint as a document formatting provider for JS/TS
- Context menu: hide "MyLint: Format File" when MyLint is set as default formatter
0.0.2
- Fixed
Parsing error: ';' expected.
- Add to problems tab
- Enable problems tab option
0.0.1
Initial release.
Enjoy!
| |