@redmindab/eslint-config

2.1.0 • Public • Published

@redmindab/eslint-config

Redmind's internal TypeScript eslint configuration.

📦 Install package and peer dependencies

npm i -D @redmindab/eslint-config && npx install-peerdeps -D @redmindab/eslint-config

🔧 Create config files

create .eslintrc in the root of the project with the following content

{
  "extends": ["@redmindab/eslint-config"],
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}

You can also choose to extend only specific configurations:

{
  "extends": [
    "@redmindab/eslint-config/typescript",
    "@redmindab/eslint-config/react",
    "@redmindab/eslint-config/backend"
  ],
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}

💅 Stylistic formatting w. Prettier

Create a .prettierrc in the root of the project with the following content

Update all files in src directory

npx prettier --write src/**/*.{ts,tsx}
npx eslint --fix src/**/*.{ts,tsx}

Readme

Keywords

none

Package Sidebar

Install

npm i @redmindab/eslint-config

Weekly Downloads

343

Version

2.1.0

License

ISC

Unpacked Size

8 kB

Total Files

7

Last publish

Collaborators

  • bambuh
  • saschamz