1+ /*
2+ Rules Severity
3+ - 0 = off
4+ - 1 = warn
5+ - 2 = error
6+ */
7+ {
8+ "env" : {
9+ "node" : true
10+ },
11+ "extends" : [
12+ " eslint:recommended" ,
13+ " plugin:@typescript-eslint/recommended" ,
14+ " plugin:@typescript-eslint/recommended-requiring-type-checking"
15+ ],
16+ "parser" : " @typescript-eslint/parser" ,
17+ "parserOptions" : {
18+ "ecmaFeatures" : {
19+ "impliedStrict" : true
20+ },
21+ "ecmaVersion" : " latest" ,
22+ "project" : " ./tsconfig.json" ,
23+ "sourceType" : " module"
24+ },
25+ "plugins" : [
26+ " @typescript-eslint" ,
27+ " typescript-sort-keys"
28+ ],
29+ "rules" : {
30+ // Javscript Specific Rules That Are Applied To Typescript Too
31+ "max-len" : [
32+ " error" ,
33+ {
34+ "code" : 80 ,
35+ "ignoreComments" : true ,
36+ "ignorePattern" : " ^(import)|(it\\ ()" ,
37+ "ignoreTemplateLiterals" : true
38+ }
39+ ],
40+ "no-console" : 1 ,
41+ "quotes" : [
42+ 2 ,
43+ " single"
44+ ],
45+ "semi" : 2 ,
46+ "sort-keys" : [
47+ 2 ,
48+ " asc" ,
49+ {
50+ "caseSensitive" : true ,
51+ "natural" : false ,
52+ "minKeys" : 2
53+ }
54+ ],
55+ // Typescript Specific Rules From This Point On
56+ "typescript-sort-keys/interface" : 2 ,
57+ "typescript-sort-keys/string-enum" : 0 ,
58+ "@typescript-eslint/explicit-function-return-type" : 2 ,
59+ "@typescript-eslint/no-explicit-any" : 2 ,
60+ "@typescript-eslint/no-inferrable-types" : 2 ,
61+ "@typescript-eslint/no-non-null-assertion" : 2 ,
62+ "@typescript-eslint/no-unsafe-call" : 2 ,
63+ "@typescript-eslint/no-unsafe-member-access" : 2 ,
64+ "@typescript-eslint/no-unused-vars" : [
65+ 2 ,
66+ {
67+ "argsIgnorePattern" : " _" ,
68+ "ignoreRestSiblings" : true
69+ }
70+ ],
71+ "@typescript-eslint/no-var-requires" : 2 ,
72+ "@typescript-eslint/require-await" : 2
73+ }
74+ }
0 commit comments