npm install eslint-plugin-crtexfsd rules
You'll first need to install ESLint:
``sh`
npm i eslint --save-dev
Next, install eslint-plugin-crtex:
`sh`
npm install eslint-plugin-crtex --save-dev
or
`sh`
yarn add eslint-plugin-crtex@0.0.2 -D
In your configuration file, import the plugin eslint-plugin-crtex and add crtex to the plugins key:
`js
import crtex from "eslint-plugin-crtex";
export default [
{
plugins: {
crtex
}
}
];
`
Then configure the rules you want to use under the rules key.
`js
import crtex from "eslint-plugin-crtex";
export default [
{
plugins: {
crtex
},
rules: {
"crtex/rule-name": "warn"
}
}
];
``