@@ -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" ,
@@ -125,6 +159,9 @@ const vanilla = {
125159 "no-useless-assignment" : "error" ,
126160 "no-useless-backreference" : "error" ,
127161 "require-atomic-updates" : "error" ,
162+ "require-await" : "error" ,
163+ "require-yield" : "error" ,
164+ "symbol-description" : "warn" ,
128165 "use-isnan" : [
129166 "error" ,
130167 { enforceForSwitchCase : true , enforceForIndexOf : true } ,
@@ -138,12 +175,16 @@ const typescript = {
138175 files : [ "**/*.ts" , "**/*.tsx" ] ,
139176 plugins : {
140177 ...vanilla . plugins ,
141- "@typescript-eslint" : typescriptEslintPlugin ,
142178 "@stylistic/ts" : stylisticPluginTs ,
179+ "@typescript-eslint" : typescriptEslintPlugin ,
143180 } ,
144181 rules : {
145182 ...vanilla . rules ,
146183
184+ // In TypeScript files, use the TypeScript version of the rule.
185+ "@stylistic/js/quotes" : "off" ,
186+ "@stylistic/ts/quotes" : vanilla . rules [ "@stylistic/js/quotes" ] ,
187+
147188 // In TypeScript files, TypeScript itself should take care of this.
148189 "no-undef" : "off" ,
149190
@@ -156,10 +197,6 @@ const typescript = {
156197 // TODO: configure the additional options
157198 "@typescript-eslint/no-use-before-define" :
158199 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" ] ,
163200 } ,
164201} ;
165202
0 commit comments