eslint for vite
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-no-process-lint
:
npm install eslint-plugin-no-process-lint --save-dev
Add no-process-lint
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"no-process-lint"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"no-process-lint/no-process": 2,
"no-process-lint/no-require": 2
}
}
- Fill in provided rules here