3d4544548b
* chore(lint): upgrade typescript-eslint * chore(lint): add root "lint" script * chore(turbo): remove build dependency from lint * chore(lint): enable jest recommended rules * chore(lint): resolve errors * ci: add lint step * prettier Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
{
|
|
"root": true,
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": ["@typescript-eslint", "jest"],
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:jest/recommended"
|
|
],
|
|
"rules": {
|
|
"jest/no-export": "warn",
|
|
"jest/no-identical-title": "warn"
|
|
},
|
|
"overrides": [
|
|
{
|
|
// enable the rule specifically for TypeScript files
|
|
"files": ["*.ts", "*.tsx"],
|
|
"rules": {
|
|
"@typescript-eslint/explicit-module-boundary-types": [0],
|
|
"no-non-null-assertion": "off",
|
|
"no-fallthrough": "off",
|
|
"@typescript-eslint/no-fallthrough": "off",
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn",
|
|
{
|
|
"argsIgnorePattern": "^_",
|
|
"varsIgnorePattern": "^_",
|
|
"destructuredArrayIgnorePattern": "^_",
|
|
"caughtErrorsIgnorePattern": "^_"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|