2020-02-04 19:27:46 +00:00
|
|
|
parser: "@typescript-eslint/parser"
|
|
|
|
env:
|
|
|
|
browser: true
|
2020-02-15 00:46:00 +00:00
|
|
|
es6: true # Map, etc.
|
2021-01-11 18:45:45 +00:00
|
|
|
jest: true
|
2020-02-04 19:27:46 +00:00
|
|
|
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.
|
2021-03-30 17:35:18 +00:00
|
|
|
# Recommended by jest-playwright
|
|
|
|
# https://github.com/playwright-community/jest-playwright#globals
|
|
|
|
- plugin:jest-playwright/recommended
|
2020-02-04 19:27:46 +00:00
|
|
|
|
|
|
|
rules:
|
2020-11-13 21:28:21 +00:00
|
|
|
# Sometimes you need to add args to implement a function signature even
|
|
|
|
# if they are unused.
|
|
|
|
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }]
|
2020-02-04 19:27:46 +00:00
|
|
|
# For overloads.
|
|
|
|
no-dupe-class-members: off
|
2020-04-27 12:41:52 +00:00
|
|
|
"@typescript-eslint/no-use-before-define": off
|
2020-05-12 23:19:37 +00:00
|
|
|
"@typescript-eslint/no-non-null-assertion": off
|
2020-08-26 18:27:30 +00:00
|
|
|
"@typescript-eslint/ban-types": off
|
|
|
|
"@typescript-eslint/no-var-requires": off
|
|
|
|
"@typescript-eslint/explicit-module-boundary-types": off
|
|
|
|
"@typescript-eslint/no-explicit-any": off
|
2021-03-22 18:55:53 +00:00
|
|
|
"@typescript-eslint/no-extra-semi": off
|
2020-08-04 20:08:45 +00:00
|
|
|
eqeqeq: error
|
2020-08-04 20:51:39 +00:00
|
|
|
import/order:
|
2021-04-01 21:52:46 +00:00
|
|
|
[error, { alphabetize: { order: "asc" }, groups: [["builtin", "external", "internal"], "parent", "sibling"] }]
|
2020-10-09 16:34:52 +00:00
|
|
|
no-async-promise-executor: off
|
2020-10-20 23:05:58 +00:00
|
|
|
# This isn't a real module, just types, which apparently doesn't resolve.
|
|
|
|
import/no-unresolved: [error, { ignore: ["express-serve-static-core"] }]
|
2020-05-10 06:42:34 +00:00
|
|
|
|
|
|
|
settings:
|
|
|
|
# Does not work with CommonJS unfortunately.
|
|
|
|
import/ignore:
|
|
|
|
- env-paths
|
|
|
|
- xdg-basedir
|