2020-02-05 03:27:46 +08:00
|
|
|
parser: "@typescript-eslint/parser"
|
|
|
|
env:
|
|
|
|
browser: true
|
2020-02-15 08:46:00 +08:00
|
|
|
es6: true # Map, etc.
|
2021-01-12 02:45:45 +08:00
|
|
|
jest: true
|
2020-02-05 03:27:46 +08:00
|
|
|
node: true
|
|
|
|
|
|
|
|
parserOptions:
|
|
|
|
ecmaVersion: 2018
|
|
|
|
sourceType: module
|
|
|
|
|
|
|
|
extends:
|
|
|
|
- eslint:recommended
|
|
|
|
- plugin:@typescript-eslint/recommended
|
|
|
|
- plugin:import/recommended
|
|
|
|
- plugin:import/typescript
|
|
|
|
- plugin:prettier/recommended
|
2021-03-31 01:35:18 +08:00
|
|
|
# Recommended by jest-playwright
|
|
|
|
# https://github.com/playwright-community/jest-playwright#globals
|
|
|
|
- plugin:jest-playwright/recommended
|
2021-04-06 06:18:13 +08:00
|
|
|
# Prettier should always be last
|
|
|
|
# Removes eslint rules that conflict with prettier.
|
|
|
|
- prettier
|
2020-02-05 03:27:46 +08:00
|
|
|
|
|
|
|
rules:
|
2020-11-14 05:28:21 +08: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-05 03:27:46 +08:00
|
|
|
# For overloads.
|
|
|
|
no-dupe-class-members: off
|
2020-04-27 20:41:52 +08:00
|
|
|
"@typescript-eslint/no-use-before-define": off
|
2020-05-13 07:19:37 +08:00
|
|
|
"@typescript-eslint/no-non-null-assertion": off
|
2020-08-27 02:27:30 +08: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-23 02:55:53 +08:00
|
|
|
"@typescript-eslint/no-extra-semi": off
|
2020-08-05 04:08:45 +08:00
|
|
|
eqeqeq: error
|
2020-08-05 04:51:39 +08:00
|
|
|
import/order:
|
2021-04-02 05:52:46 +08:00
|
|
|
[error, { alphabetize: { order: "asc" }, groups: [["builtin", "external", "internal"], "parent", "sibling"] }]
|
2020-10-10 00:34:52 +08:00
|
|
|
no-async-promise-executor: off
|
2020-10-21 07:05:58 +08: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 14:42:34 +08:00
|
|
|
|
|
|
|
settings:
|
|
|
|
# Does not work with CommonJS unfortunately.
|
|
|
|
import/ignore:
|
|
|
|
- env-paths
|
|
|
|
- xdg-basedir
|