0.5.1 • Published 3 years ago
@lcdev/eslint-config v0.5.1
ESLint
This is our shared eslint configuration that's applicable to any project type.
This configuration aims to be extremely boring and non-obtrusive. It shouldn't contain rules that are highly contested or that are purely aesthetic (if they cannot be autofixed). We try to lean on typescript for better lints and keep up with the latest in the community.
At its core, this uses the AirBnB configuration, but is pretty modified for typescript (and a lot of lints are turned off because they don't provide us value).
This builds on top of our prettier config for formatting.
yarn add @lcdev/eslint-config@VERSION
Single Package
Add to your package.json
, usually after dependencies:
"eslintConfig": {
"extends": "@lcdev"
}
Not using typescript?
"eslintConfig": {
"extends": "@lcdev/eslint-config/js"
}
Monorepo
Add a file called .eslintrc.js
to every subpackage.
module.exports = require('@lcdev/eslint-config/cwd')(__dirname);
For non-typescript:
module.exports = {
extends: '@lcdev/eslint-config/js',
};