@mallowigi/eslint-config v1.8.5
eslint-config-mallowigi
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.
- eslint
- eslint-plugin-flowtype
- eslint-plugin-i18n-json
- eslint-plugin-import
- eslint-plugin-jsx-a11y
- eslint-plugin-lodash
- eslint-plugin-mdx
- eslint-plugin-prettier
- eslint-plugin-promise
- eslint-plugin-react-hooks
- eslint-plugin-react-i18n
- eslint-plugin-react
- eslint-plugin-security
- eslint-plugin-simple-import-sort
- eslint-plugin-sonarjs
- eslint-plugin-sort-keys-fix
- eslint-plugin-typescript-sort-keys
- eslint-plugin-unicorn
Each and every single rule has been meticulously poured over and purposefully hand picked or excluded.
Install
npm install -D eslint @mallowigi/eslint-config
Usage
Create an ESLint config in your package.json
or .eslintrc.js
file.
package.json
{
"name": "my-awesome-project",
"eslintConfig": {
"extends": "@mallowigi/eslint-config",
"rules": {
// enable additional rules, override rule options, or disable rules
}
}
}
.eslintrc.js
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
Usage With Prettier
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.
Related
- prettier-config-get-off-my-lawn - A highly opinionated, sharable config of Prettier rules to produce beautiful, readable code.
- stylelint-config-get-off-my-lawn - A highly opinionated, sharable config of stylelint rules to produce beautiful, readable CSS and Sass.
License
MIT © Elior Boukhobza "Mallowigi".
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago