eslint-config-lokalise-frontend
Shareable eslint config for frontend codebases
Assumptions
This shareable config assumes that you have a stack including:
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"
}
}