@kochurko/eslint-config
v0.9.1
Published
ESLint config for my projects
Downloads
6
Readme
@kochurko/eslint-config
Description
ESLint config for my projects.
Installation
npm install --save-dev eslint @kochurko/eslint-config
Usage
Add the following to your .eslintrc.cjs
:
module.exports = {
extends: ["@kochurko/eslint-config"],
root: true,
};
Client & Server
Add the following to your .eslintrc.cjs
:
module.exports = {
extends: ["@kochurko/eslint-config/client"],
};
or for server:
module.exports = {
extends: ["@kochurko/eslint-config/server"],
};
Prettier
If you're utilizing Prettier, change the root configuration to extend the prettier
preset.
module.exports = {
extends: ["@kochurko/eslint-config", "@kochurko/eslint-config/prettier"],
root: true,
};
Import order
If you want to enforce a convention in module import order, extend root config with the additional rules:
module.exports = {
extends: ["@kochurko/eslint-config", "@kochurko/eslint-config/import"],
root: true,
};
A11y
If you want to spot accessibility issues, extend root config with the additional rules:
module.exports = {
extends: ["@kochurko/eslint-config", "@kochurko/eslint-config/a11y"],
root: true,
};