@mlaursen/eslint-config

4.1.1 • Public • Published

eslint-config

A reusable eslint config that I use for most of my projects.

Usage

module.exports = {
  extends: "@mlaursen/eslint-config",
};

Additional Type Checking

Or if I want to do additional rules and strict type checking linting rules:

module.exports = {
  extends: "@mlaursen/eslint-config",
  parserOptions: {
    tsconfigRootDir: __dirname,
    project: ["./tsconfig.json"],
  },
  rules: {
    // any custom rules for this project
  },
  overrides: [
    {
      files: ["**/*.ts", "**/*.tsx"],
      extends: [
        "plugin:@typescript-eslint/recommended-requiring-type-checking",
      ],
    },
    // any custom overrides for this project
  ],
};

Readme

Keywords

Package Sidebar

Install

npm i @mlaursen/eslint-config

Weekly Downloads

9

Version

4.1.1

License

MIT

Unpacked Size

8.9 kB

Total Files

4

Last publish

Collaborators

  • mlaursen