A Vile plugin for identifying common style and maintainability issues in your JavaScript code (via ESLint).
npm i -D vile vile-eslint
If you don't have an ESLint config file create one first:
npx eslint --init
Then:
npx vile a -p eslint
Or:
npx vile a -p eslint some/file.js some/path
Along with any ignore patterns in .eslintignore
, vile.ignore
and eslint.ignore
data will be added to the CLIEngine call.
Example:
eslint:
ignore:
- .test
You can set vile.allow
or eslint.allow
to allow certain files.
Example:
eslint:
allow:
- src
If you are using something like typescript-eslint-parser,
you might not see any issues reported unless you add a glob pattern to
your src
path.
An example .vile.yml
(taken from vile's):
eslint:
allow:
- src/*
ignore:
- lib
This project uses Semver.
This project is licensed under the MPL-2.0 license.
Any contributions made to this project are made under the current license.
Current list of Contributors.
Any contributions are welcome and appreciated!
All you need to do is submit a Pull Request.
- Please consider tests and code quality before submitting.
- Please try to keep commits clean, atomic and well explained (for others).
Current issue tracker is on GitHub.
Even if you are uncomfortable with code, an issue or question is welcome.
By participating in this project you agree to our Code of Conduct.
- Brent Lintner - @brentlintner
cd vile-eslint
npm install