Package Exports
- @stylistic/eslint-plugin-js
- @stylistic/eslint-plugin-js/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@stylistic/eslint-plugin-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@stylistic/eslint-plugin-js
Rules for JavaScript code style, migrated from eslint core.
Credits to all contributors who have committed to the original rules.
Why
Learn more in our documentation
Install
npm i -D @stylistic/eslint-plugin-js
// .eslintrc.js
module.exports = {
plugins: [
+ '@stylistic/js'
],
rules: {
- 'indent': ['error', 2],
+ '@stylistic/js/indent': ['error', 2],
// ...
}
};
You can also try out our migration plugin to automated the migration process.