5.0.0 • Published 3 years ago

eslint-config-todomir v5.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

eslint-config-todomir

My personal config for React and Next.js, using Typescript and Prettier

Usage

To use it, simply install via npm or yarn as an devDependency using:

npm i --save-dev eslint-config-todomir
# Or using yarn

yarn add -D eslint-config-todomir

and then, simply extending in your .eslintrc.js:

module.exports = {
  root: true,
  extends: ['todomir'],
  // Option needed specially for monorepos where eslint doesn't know where to find tsconfig.json
  parserOptions: {
    project: 'tsconfig.json',
    tsconfigRootDir: __dirname,
  },
}

For projects using Next.js, simply extend the todomir/next configuration.

module.exports = {
  root: true,
  extends: ['todomir/next'],
  // Option needed specially for monorepos where eslint doesn't know where to find tsconfig.json
  parserOptions: {
    project: 'tsconfig.json',
    tsconfigRootDir: __dirname,
  },
}