eslint-wrapper-plugin
v1.0.0
Published
Wrap your ESLint config with ease.
Downloads
5
Readme
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',
});