File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,15 @@ function getJavascriptConfig() {
138
138
139
139
// https://node.green/
140
140
switch ( minVersion ) {
141
+ case 6 : {
142
+ const config = { ...configs [ "javascript/es2016" ] } ;
143
+
144
+ config . rules [ "prefer-exponentiation-operator" ] = "off" ;
145
+
146
+ return config ;
147
+ }
148
+ case 7 :
149
+ return configs [ "javascript/es2016" ] ;
141
150
case 8 :
142
151
case 9 :
143
152
return configs [ "javascript/es2017" ] ;
Original file line number Diff line number Diff line change @@ -1215,6 +1215,10 @@ function getConfig(esVersion) {
1215
1215
config . rules [ "unicorn/prefer-spread" ] = "off" ;
1216
1216
}
1217
1217
1218
+ if ( esVersion < 2018 ) {
1219
+ config . rules [ "prefer-object-spread" ] = "off" ;
1220
+ }
1221
+
1218
1222
if ( esVersion < 2019 ) {
1219
1223
config . rules [ "unicorn/prefer-array-flat" ] = "off" ;
1220
1224
config . rules [ "unicorn/prefer-array-flat-map" ] = "off" ;
You can’t perform that action at this time.
0 commit comments