1.8.5 • Published 2 years ago

@mallowigi/eslint-config v1.8.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.

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

License

MIT © Elior Boukhobza "Mallowigi".