@@ -27,12 +27,46 @@ const vanilla = {
2727 ignoreStringLiterals : true ,
2828 } ,
2929 ] ,
30+
31+ "accessor-pairs" : [
32+ "error" ,
33+ {
34+ getWithoutSet : false ,
35+ setWithoutGet : true ,
36+ enforceForClassMembers : true ,
37+ } ,
38+ ] ,
3039 "array-callback-return" : [
3140 "error" ,
3241 { allowImplicit : false , checkForEach : true , allowVoid : false } ,
3342 ] ,
43+ "arrow-body-style" : [
44+ "warn" ,
45+ "as-needed" ,
46+ { requireReturnForObjectLiteral : false } ,
47+ ] ,
48+ "block-scoped-var" : "error" ,
49+ camelcase : [
50+ "warn" ,
51+ {
52+ properties : "always" ,
53+ ignoreDestructuring : false ,
54+ ignoreImports : false ,
55+ ignoreGlobals : false ,
56+ allow : [ ] ,
57+ } ,
58+ ] ,
59+ "class-methods-use-this" : [
60+ "warn" ,
61+ { exceptMethods : [ ] , enforceForClassFields : true } ,
62+ ] ,
63+ complexity : [ "warn" , { max : 20 } ] ,
64+ "consistent-return" : [ "error" , { treatUndefinedAsUnspecified : false } ] ,
65+ "consistent-this" : [ "warn" , "self" ] ,
3466 "constructor-super" : "error" ,
3567 curly : [ "warn" , "all" ] ,
68+ "default-case-last" : "error" ,
69+ eqeqeq : [ "error" , "always" , { null : "never" } ] ,
3670 "for-direction" : "error" ,
3771 "getter-return" : "error" ,
3872 "no-async-promise-executor" : "error" ,
@@ -138,12 +172,16 @@ const typescript = {
138172 files : [ "**/*.ts" , "**/*.tsx" ] ,
139173 plugins : {
140174 ...vanilla . plugins ,
141- "@typescript-eslint" : typescriptEslintPlugin ,
142175 "@stylistic/ts" : stylisticPluginTs ,
176+ "@typescript-eslint" : typescriptEslintPlugin ,
143177 } ,
144178 rules : {
145179 ...vanilla . rules ,
146180
181+ // In TypeScript files, use the TypeScript version of the rule.
182+ "@stylistic/js/quotes" : "off" ,
183+ "@stylistic/ts/quotes" : vanilla . rules [ "@stylistic/js/quotes" ] ,
184+
147185 // In TypeScript files, TypeScript itself should take care of this.
148186 "no-undef" : "off" ,
149187
@@ -156,10 +194,6 @@ const typescript = {
156194 // TODO: configure the additional options
157195 "@typescript-eslint/no-use-before-define" :
158196 vanilla . rules [ "no-use-before-define" ] ,
159-
160- // In TypeScript files, use the TypeScript version of the rule.
161- "@stylistic/js/quotes" : "off" ,
162- "@stylistic/ts/quotes" : vanilla . rules [ "@stylistic/js/quotes" ] ,
163197 } ,
164198} ;
165199
0 commit comments