0.2.5 • Published 3 years ago

@banterstudiosuk/eslint-config-typescript v0.2.5

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

eslint-config-typescript

My Typescript ESLint / Prettier configuration used for various projects. A React specific config is also available.

Install Peer Dependencies

  yarn add -D @typescript-eslint/parser@^2.31.0 \
    @typescript-eslint/eslint-plugin@^2.31.0 \
    eslint@^6.8.0 \
    eslint-plugin-import@^2.20.1 \
    eslint-plugin-jest@^23.8.2 \
    eslint-plugin-jsx-a11y@^6.2.3 \
    eslint-plugin-prettier@^3.1.2 \
    eslint-plugin-react@^7.18.3 \
    eslint-plugin-react-hooks@^2.0.0 \
    prettier@^1.18.2 \
    typescript@^3.8.3

Install

npm

npm i --save @banterstudiosuk/eslint-config-typescript

yarn

yarn add -D @banterstudiosuk/eslint-config-typescript

Usage

Include the main linter

It's important you specify a typescript parser i.e @typescript-eslint/parser

Be sure to include a parserOptions.project which points to your tsconfig.json

{
  parser: "@typescript-eslint/parser",
  extends: ["@banterstudiosuk/eslint-config-typescript"],
  parserOptions: {
    project: "some-path-to/tsconfig.json"
  }
}

With React

{
  parser: "@typescript-eslint/parser",
  extends: ["@banterstudiosuk/eslint-config-typescript/react"]
  parserOptions: {
    project: "some-path-to/tsconfig.json"
  }
}


## License

MIT
0.2.1

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.0

4 years ago