1.0.0 • Published 8 years ago
eslint-wrapper-plugin
Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0
ESLint Wrapper Plugin
Wrap your ESLint config and its peer dependency plugins with ease.
Install
npm install --save eslint-wrapper-plugin
Usage
Replace YOURPLUGIN and YOURCONFIG accordingly.
package.json
{
"name": "eslint-plugin-YOURPLUGIN",
"version": "v1",
"dependencies": {
"eslint-wrapper-plugin": "*"
}
}
index.js
const wrap = require('eslint-wrapper-plugin');
module.exports = wrap({
configs: {
recommended: 'eslint-config-YOURCONFIG',
},
plugins: [/* your config's peer dependency plugins, eg: 'import' */],
prefix: 'YOURPLUGIN',
});