This package provides the k14v eslint config
You can install this package with, NPM:
npm install --save-dev eslint-config-k14vor with Yarn:
yarn add eslint-config-k14v --devThis package don't have any package as dependency, all it have is peerDependencies. You can install only what it's needed.
NPM:
npm install --save-dev eslint eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooksYarn:
yarn eslint eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks --devNPM:
npm install --save-dev eslint eslint-plugin-importYarn:
yarn eslint eslint-plugin-import --devOpen your .eslintrc configuration file and add the following:
"extends": [ "eslint-config-k14v" ],If you want the React rules, use:
"extends": [ "eslint-config-k14v/react" ]React rules extends the base rules. So, you will have both.
In the end your .eslintrc file will look something like:
module.exports = {
"extends": [ "eslint-config-k14v" ],
"rules": {},
}The rules in this config can be overriden setting your own rules in your .eslintrc config file.