@vanillaes/lint-es
v1.0.3
Published
Modern linting for ECMAScript Modules
Maintainers
Readme
Modern linting for ECMAScript Modules based on StandardJS.
Features
- No Configuration. No
.eslint*files to manage. - Pre-loaded with the NeoStandard ruleset for clean JavaScript code and styling.
- Configured with the eslint-plugin-jsdoc ruleset for linting JSDoc comments.
- The following are ignored by default:
node_modules/,coverage/,vendor/,*.min.js, and hidden files. - Files included in
.gitignorewill be ignored as well. - Automatically correct linting issues using
lint-es --fix.
Note: NeoStandard is a ESLint v9.x+ ruleset. Successor to StandardJS.
lint-es
Arguments
lint-es [...options] [files...]
[files]- file(s) to lint (default**/*.js)--cwd [cwd]- The working directory (defaultprocess.cwd())--fix- Automatically fix problems--ignore [ignores]- Specify file(s) to ignore
Usage
# lint the source
lint-es
```sh
# lint the source (matching a different file(s))
lint-es '**/*.mjs'
# lint the source (change the root)
lint-es --cwd src/
# lint the source (automatically fix issues)
lint-es --fix
# lint the source (ignore files)
lint-es --ignore test1/,test2/**/*Note: In Linux/OSX, matcher patterns must be delimited in quotes.
Configuration
Project-level config can be defined in package.json
package.json
{
"lint" {
"files": [ "**.*.mjs" ],
"fix": true,
"ignore": [ "test/**.*" ]
}
}Note: Configuration defined in the command-line will take precedence over package.json configuration.
