UNPKG

2.12 kBJavaScriptView Raw
1module.exports = {
2 "env": {
3 "browser": true
4 },
5 "parser": "@typescript-eslint/parser",
6 "parserOptions": {
7 createDefaultProgram: true,
8 "project": "src/tsconfig.json",
9 "sourceType": "module"
10 },
11 "plugins": [
12 "@typescript-eslint",
13 "@typescript-eslint/tslint"
14 ],
15 "rules": {
16 "@typescript-eslint/indent": "off",
17 "@typescript-eslint/member-delimiter-style": [
18 "error",
19 {
20 "multiline": {
21 "delimiter": "semi",
22 "requireLast": true
23 },
24 "singleline": {
25 "delimiter": "semi",
26 "requireLast": false
27 }
28 }
29 ],
30 "@typescript-eslint/naming-convention": "error",
31 "no-underscore-dangle": "off",
32 "@typescript-eslint/prefer-namespace-keyword": "error",
33 "@typescript-eslint/quotes": [
34 "off",
35 "double"
36 ],
37 "@typescript-eslint/semi": [
38 "error",
39 "always"
40 ],
41 "@typescript-eslint/type-annotation-spacing": "error",
42 "brace-style": [
43 "error",
44 "1tbs"
45 ],
46 "eqeqeq": [
47 "error",
48 "smart"
49 ],
50 "id-blacklist": [
51 "error",
52 "any",
53 "Number",
54 "number",
55 "String",
56 "string",
57 "Boolean",
58 "boolean",
59 "Undefined",
60 "undefined"
61 ],
62 "id-match": "error",
63 "no-eval": "error",
64 "no-redeclare": "error",
65 "no-trailing-spaces": "error",
66 "no-var": "error",
67 "spaced-comment": [
68 "error",
69 "always",
70 {
71 "markers": [
72 "/"
73 ]
74 }
75 ],
76 "@typescript-eslint/tslint/config": [
77 "error",
78 {
79 "rules": {
80 "whitespace": true
81 }
82 }
83 ]
84 }
85};