2020-02-05 02:27:46 +07:00
|
|
|
parser: "@typescript-eslint/parser"
|
|
|
|
env:
|
|
|
|
browser: true
|
2020-02-15 07:46:00 +07:00
|
|
|
es6: true # Map, etc.
|
2020-02-05 02:27:46 +07:00
|
|
|
mocha: true
|
|
|
|
node: true
|
|
|
|
|
|
|
|
parserOptions:
|
|
|
|
ecmaVersion: 2018
|
|
|
|
sourceType: module
|
|
|
|
|
|
|
|
extends:
|
|
|
|
- eslint:recommended
|
|
|
|
- plugin:@typescript-eslint/recommended
|
|
|
|
- plugin:import/recommended
|
|
|
|
- plugin:import/typescript
|
|
|
|
- plugin:prettier/recommended
|
|
|
|
- prettier # Removes eslint rules that conflict with prettier.
|
|
|
|
- prettier/@typescript-eslint # Remove conflicts again.
|
|
|
|
|
|
|
|
rules:
|
|
|
|
# For overloads.
|
|
|
|
no-dupe-class-members: off
|
2020-04-27 19:41:52 +07:00
|
|
|
"@typescript-eslint/no-use-before-define": off
|
2020-05-13 06:19:37 +07:00
|
|
|
"@typescript-eslint/no-non-null-assertion": off
|
2020-08-05 03:08:45 +07:00
|
|
|
eqeqeq: error
|
2020-08-05 03:51:39 +07:00
|
|
|
import/order:
|
|
|
|
[error, { alphabetize: { order: "asc" }, groups: [["builtin", "external", "internal"], "parent", "sibling"] }]
|
2020-05-10 13:42:34 +07:00
|
|
|
|
|
|
|
settings:
|
|
|
|
# Does not work with CommonJS unfortunately.
|
|
|
|
import/ignore:
|
|
|
|
- env-paths
|
|
|
|
- xdg-basedir
|