0.1.2 • Published 2 years ago

eslint-config-lokalise-frontend v0.1.2

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

eslint-config-lokalise-frontend

Shareable eslint config for frontend codebases

Assumptions

This shareable config assumes that you have a stack including:

  • TypeScript
  • React
  • Jest

If that isn't true, then this config might not be right for your project.

Using this config

Install the config in your repo:

npm add -D eslint-config-lokalise-frontend

Then add the following to your eslint config:

{
  "extends": "eslint-config-lokalise-frontend"
}

Note that this shareable config needs to know where your tsconfig is located in order to be able to parse TypeScript code. By default it will assume that your tsconfig is in the same directory as your eslint config. If that's the case, it'll work without any additional configuration. However if that is not the case, you will need to explicitly tell it where the tsconfig in your repo is. For example:

{
  "extends": "eslint-config-lokalise-frontend",
  "parserOptions": {
    "project": "../tsconfig.json"
  }
}
0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago