1
1
mirror of https://github.com/coder/code-server.git synced 2024-12-22 17:21:43 +03:00
code-server/.eslintrc.yaml

39 lines
1.0 KiB
YAML
Raw Normal View History

2020-02-04 22:27:46 +03:00
parser: "@typescript-eslint/parser"
env:
browser: true
2020-02-15 03:46:00 +03:00
es6: true # Map, etc.
2020-02-04 22:27:46 +03: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
"@typescript-eslint/no-use-before-define": off
"@typescript-eslint/no-non-null-assertion": off
2020-08-26 21:27:30 +03: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
2020-08-04 23:08:45 +03:00
eqeqeq: error
2020-08-04 23:51:39 +03:00
import/order:
[error, { alphabetize: { order: "asc" }, groups: [["builtin", "external", "internal"], "parent", "sibling"] }]
2020-05-10 09:42:34 +03:00
settings:
# Does not work with CommonJS unfortunately.
import/ignore:
- env-paths
- xdg-basedir