Package Exports
- eslint-plugin-kdu
- eslint-plugin-kdu/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 (eslint-plugin-kdu) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eslint-plugin-kdu
ESLint plugin for Kdu.js projects
Usage
npm install --save-dev eslint-plugin-kdu
- create a file named
.eslintrc
in your project:
{
extends: [ /* your usual extends */ ],
plugins: ["kdu"],
rules: {
'kdu/jsx-uses-vars': 2,
},
}
- OPTIONAL: install eslint-config-kdu:
npm install --save-dev eslint-config-kdu
- OPTIONAL: then use the recommended configurations in your
.eslintrc
:
{
extends: ["kdu", /* your other extends */],
plugins: ["kdu"],
rules: {
/* your overrides -- kdu/jsx-uses-vars is included in eslint-config-kdu */
},
}