Mallowigi's ESLint config. A mixup of eslint configs for JavaScript, React and TypeScript
MIT License
A highly opinionated, sharable config of ESLint rules to produce beautiful, readable JavaScript.
As developers, we spend more time reading code than writing it. These rules aim to make reading JavaScript a priority.
That means some rules will feel oppressive or "over the top" for many developers, which is fine. If you don't like it, you can get off my lawn! ... Or extend the rules and override them with the ones that bother you. Either way. 😊
This config also comes with the following plugins, and corresponding rules, baked in.
Each and every single rule has been meticulously poured over and purposefully hand picked or excluded.
npm install -D eslint @mallowigi/eslint-config
Create an ESLint config in your package.json
or .eslintrc.js
file.
{
"name": "my-awesome-project",
"eslintConfig": {
"extends": "@mallowigi/eslint-config",
"rules": {
// enable additional rules, override rule options, or disable rules
}
}
}
module.exports = {
extends: '@mallowigi/eslint-config',
rules: {
// enable additional rules, override rule options, or disable rules
},
};
Once your rules are configured, we recommend running the following command in your package.json
as
an npm script.
eslint . --ext .js --ext .json
Love this config? Love prettier? Well you're in luck!
This config will automatically detect if your project is using prettier and it will apply eslint-config-prettier to turn off all rules that are unnecessary or might conflict with prettier.
MIT © Elior Boukhobza "Mallowigi".