library/.eslintrc.yml

43 lines
1.0 KiB
YAML
Raw Normal View History

2021-11-16 22:18:20 -05:00
root: true
parser: "@typescript-eslint/parser"
2021-10-30 19:44:32 -04:00
parserOptions:
project: ./tsconfig.json
2021-11-16 22:18:20 -05:00
extends:
- "eslint:recommended"
- "plugin:@typescript-eslint/recommended"
- "plugin:@typescript-eslint/recommended-requiring-type-checking"
- "plugin:import/errors"
- "plugin:import/warnings"
- "plugin:import/typescript"
- "plugin:prettier/recommended"
2021-10-30 19:44:32 -04:00
plugins:
2021-11-16 22:18:20 -05:00
- "@typescript-eslint"
2021-10-30 19:44:32 -04:00
- prettier
rules:
2021-11-16 22:18:20 -05:00
prettier/prettier: "error"
2021-11-13 20:41:05 -05:00
2021-11-16 22:18:20 -05:00
import/first: error
2021-10-30 19:44:32 -04:00
import/order:
2021-11-16 22:18:20 -05:00
- error
2021-10-30 19:44:32 -04:00
- newlines-between: always
alphabetize:
order: asc
caseInsensitive: true
import/no-duplicates: off
no-duplicate-imports: off
2021-11-16 22:18:20 -05:00
"@typescript-eslint/no-duplicate-imports": warn
2021-10-30 19:44:32 -04:00
2021-11-16 22:18:20 -05:00
"@typescript-eslint/explicit-function-return-type": off
"@typescript-eslint/explicit-module-boundary-types": off
"@typescript-eslint/no-explicit-any": off
"@typescript-eslint/no-non-null-assertion": off
"@typescript-eslint/no-use-before-define": off
2021-10-30 19:44:32 -04:00
# Enabled in tsconfig
2021-11-16 22:18:20 -05:00
"@typescript-eslint/no-unused-vars": off
2021-11-13 20:41:05 -05:00
import/no-unresolved: off