ESLint config for @swivel-finance.
To install this configuration, run
npx install-peerdeps --dev @swivel-finance/eslint-config
and add it to the extends field of your .eslintrc file:
{
"root": true,
"extends": ["@swivel-finance"]
}Lint your project as usual, e.g. npx eslint "src/**" --fix
You can customize the tsconfig.json file which the parser uses for analyzing and linting your project by setting it in your .eslintrc file:
{
"root": true,
"extends": ["@swivel-finance"],
"parserOptions": {
"project": ["./src/tsconfig.build.json"]
}
}The default value is ./tsconfig.json.
You can customize rules by adding them to the rules field of your .eslintrc file:
{
"root": true,
"extends": ["@swivel-finance"],
"parserOptions": {
"project": ["./src/tsconfig.build.json"]
},
"rules": {
"no-var": "off",
"quotes": [
"error",
"single"
]
}
}