3.0.0 • Published 2 years ago

eslint-config-infojr-ts v3.0.0

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

eslint-config-infojr-ts

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-infojr-ts
# Or using yarn

yarn add -D eslint-config-infojr-ts

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

module.exports = {
  root: true,
  extends: ["infojr-ts"],
  // 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 infojr-ts/next configuration.

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