@@ -3,8 +3,12 @@ module.exports = {
33 plugins : [ 'prettier' , '@typescript-eslint' ] ,
44 parser : '@typescript-eslint/parser' ,
55 parserOptions : {
6- createDefaultProgram : true ,
7- project : './tsconfig.json'
6+ ecmaVersion : 2018 ,
7+ sourceType : 'module' ,
8+ parser : '@typescript-eslint/parser' ,
9+ project : 'tsconfig.eslint.json' ,
10+ warnOnUnsupportedTypeScriptVersion : false ,
11+ tsconfigRootDir : __dirname ,
812 } ,
913 rules : {
1014 'prettier/prettier' : 'warn' ,
@@ -18,21 +22,21 @@ module.exports = {
1822 '@typescript-eslint/explicit-member-accessibility' : [
1923 'off' ,
2024 {
21- accessibility : 'explicit'
22- }
25+ accessibility : 'explicit' ,
26+ } ,
2327 ] ,
2428 '@typescript-eslint/indent' : [
2529 'error' ,
2630 4 ,
2731 {
2832 FunctionDeclaration : {
29- parameters : 'first'
33+ parameters : 'first' ,
3034 } ,
3135 FunctionExpression : {
32- parameters : 'first'
36+ parameters : 'first' ,
3337 } ,
34- SwitchCase : 1
35- }
38+ SwitchCase : 1 ,
39+ } ,
3640 ] ,
3741 '@typescript-eslint/interface-name-prefix' : 'off' ,
3842 '@typescript-eslint/member-delimiter-style' : 'error' ,
@@ -57,8 +61,8 @@ module.exports = {
5761 'error' ,
5862 'single' ,
5963 {
60- avoidEscape : true
61- }
64+ avoidEscape : true ,
65+ } ,
6266 ] ,
6367 '@typescript-eslint/semi' : [ 'error' ] ,
6468 '@typescript-eslint/space-within-parens' : [ 'off' , 'never' ] ,
@@ -84,17 +88,17 @@ module.exports = {
8488 ignoreCase : false ,
8589 ignoreDeclarationSort : true ,
8690 ignoreMemberSort : false ,
87- memberSyntaxSortOrder : [ 'none' , 'all' , 'multiple' , 'single' ]
88- }
91+ memberSyntaxSortOrder : [ 'none' , 'all' , 'multiple' , 'single' ] ,
92+ } ,
8993 ] ,
9094 'linebreak-style' : 'off' ,
9195 'max-classes-per-file' : 'off' ,
9296 'max-len' : [
9397 'off' ,
9498 {
9599 ignorePattern : '^import |^export {(.*?)}' ,
96- code : 200
97- }
100+ code : 200 ,
101+ } ,
98102 ] ,
99103 'new-parens' : 'off' ,
100104 'newline-per-chained-call' : 'off' ,
@@ -124,9 +128,9 @@ module.exports = {
124128 'profile' ,
125129 'profileEnd' ,
126130 'timeStamp' ,
127- 'context'
128- ]
129- }
131+ 'context' ,
132+ ] ,
133+ } ,
130134 ] ,
131135 'no-constant-condition' : 'error' ,
132136 'no-control-regex' : 'off' ,
@@ -147,8 +151,8 @@ module.exports = {
147151 'no-shadow' : [
148152 'off' ,
149153 {
150- hoist : 'all'
151- }
154+ hoist : 'all' ,
155+ } ,
152156 ] ,
153157 'no-throw-literal' : 'error' ,
154158 'no-trailing-spaces' : 'error' ,
@@ -159,8 +163,8 @@ module.exports = {
159163 'error' ,
160164 {
161165 allowTaggedTemplates : true ,
162- allowShortCircuit : true
163- }
166+ allowShortCircuit : true ,
167+ } ,
164168 ] ,
165169 'no-unused-labels' : 'error' ,
166170 'no-var' : 'error' ,
@@ -172,6 +176,6 @@ module.exports = {
172176 radix : 'error' ,
173177 'space-before-function-paren' : 'off' ,
174178 'use-isnan' : 'error' ,
175- 'valid-typeof' : 'off'
176- }
179+ 'valid-typeof' : 'off' ,
180+ } ,
177181} ;
0 commit comments