2021-01-05 06:23:30 +01:00
|
|
|
parser: '@typescript-eslint/parser'
|
|
|
|
|
|
|
|
plugins:
|
|
|
|
- '@typescript-eslint'
|
|
|
|
|
|
|
|
extends:
|
|
|
|
- chartjs
|
|
|
|
- plugin:@typescript-eslint/recommended
|
|
|
|
|
|
|
|
rules:
|
2021-01-08 22:01:20 +01:00
|
|
|
# Replace stock eslint rules with typescript-eslint equivalents for proper
|
|
|
|
# TypeScript support.
|
|
|
|
no-use-before-define: "off"
|
|
|
|
'@typescript-eslint/no-use-before-define': "error"
|
|
|
|
no-shadow: "off"
|
|
|
|
'@typescript-eslint/no-shadow': "error"
|
|
|
|
|
|
|
|
# These rules were set to warning to make the linting pass initially,
|
|
|
|
# without making any major changes to types.
|
2021-01-05 06:23:30 +01:00
|
|
|
object-curly-spacing: ["warn", "always"]
|
|
|
|
'@typescript-eslint/no-empty-interface': "warn"
|
|
|
|
'@typescript-eslint/ban-types': "warn"
|
|
|
|
'@typescript-eslint/adjacent-overload-signatures': "warn"
|