A base, framework-agnostic, ESLint config that enforces best practices and prevents possible problems.
The idea is to use prettier for styling and does not include rules that are conflicting with prettier.
base
, The, default, base configuration that does not include any rules with regard to stylingformatting
, Extention to thebase
config that does include styling rules but only those that are not covered by prettier.base-relaxed
, Base configuration with some relaxed rules. Better suitable for personal or small projects.formatting-relaxed
, Extention to thebase-relaxed
configuration.
# inside your project's working tree
npm install @jm/eslint-config-base --save-dev
Example .eslintrc.json
with only the base config
{
"extends": ["@jm/base"]
}
Example .eslintrc.json
with base config extended with formatting rules
{
"extends": ["@jm/base", "@jm/eslint-config-base/formatting"]
}