code-server/.eslintrc.yaml

47 lines
1.4 KiB
YAML
Raw Normal View History

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.
2021-01-12 01:45:45 +07:00
jest: true
2020-02-05 02:27:46 +07: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 should always be last
# Removes eslint rules that conflict with prettier.
- prettier
2020-02-05 02:27:46 +07:00
rules:
# 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 02:27:46 +07:00
# For overloads.
no-dupe-class-members: off
"@typescript-eslint/no-use-before-define": off
"@typescript-eslint/no-non-null-assertion": off
2020-08-27 01:27:30 +07: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
"@typescript-eslint/no-extra-semi": 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"] }]
no-async-promise-executor: off
2020-10-21 06:05:58 +07: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 13:42:34 +07:00
settings:
# Does not work with CommonJS unfortunately.
import/ignore:
- env-paths
- xdg-basedir