Eslint rules for ezycourse
You'll first need to install ESLint:
pnpm add -D eslintor with npm
npm install --save-dev eslintor with yarn
yarn add --dev eslintNext, install @ezycourse/eslint-plugin:
pnpm add -D @ezycourse/eslint-pluginor with npm
npm install --save-dev @ezycourse/eslint-pluginor with yarn
yarn add --dev @ezycourse/eslint-pluginAdd @ezycourse to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin part:
{
"plugins": [
"@ezycourse"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"@ezycourse/rule-name": 2
}
}TODO: Run eslint-doc-generator to generate the configs list (or delete this section if no configs are offered).
🔧 Automatically fixable by the --fix CLI option.
| Name | Description | 🔧 |
|---|---|---|
| no-axios-import | Disallow direct import of axios | 🔧 |
| no-react-i18next-import | Enforce using next-i18next instead of react-i18next | 🔧 |