-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.yaml
34 lines (33 loc) · 896 Bytes
/
.eslintrc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
env:
es6: true
node: true
parser: "@typescript-eslint/parser"
parserOptions:
sourceType: module
plugins:
- "@typescript-eslint"
extends:
- "eslint:recommended"
- "plugin:@typescript-eslint/recommended"
rules:
## -------------Company Rules Start ---------------
## Coding style
no-nested-ternary: "error"
quotes: ["error", "single",{ "avoidEscape": true }]
comma-style: ["warn", "last"]
no-mixed-spaces-and-tabs: "error"
no-trailing-spaces: "warn"
no-multi-str: "error"
semi: ["warn", "always"]
## Error-prone
eqeqeq: ["error", "smart"]
no-func-assign: "error"
no-prototype-builtins: "error"
no-redeclare: "error"
no-sequences: "error"
no-unreachable: "error"
# no-unused-vars: ["error", {args: "all", rgsIgnorePattern: "^_"}]
no-unused-vars": "off"
? "@typescript-eslint/no-unused-vars"
: error
## -------------Company Rules End ---------------