File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 9
9
"ecmaVersion" : 2018
10
10
},
11
11
"rules" : {
12
+ "prefer-const" : " error" ,
12
13
"no-unused-vars" : [
13
14
" error" ,
14
15
{
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ function validateObjectTypeAnnotation(
107
107
propName
108
108
) ;
109
109
} ) ;
110
- let atleastOnePropertyExists = ! ! propType . properties [ 0 ] ;
110
+ const atleastOnePropertyExists = ! ! propType . properties [ 0 ] ;
111
111
112
112
if ( ! propTypeProperty ) {
113
113
if ( onlyVerify ) {
@@ -125,7 +125,7 @@ function validateObjectTypeAnnotation(
125
125
fix : options . fix
126
126
? fixer => {
127
127
const whitespace = ' ' . repeat ( Component . parent . loc . start . column ) ;
128
- let fixes = [
128
+ const fixes = [
129
129
genImportFixer (
130
130
fixer ,
131
131
importFixRange ,
@@ -221,11 +221,11 @@ module.exports = {
221
221
return { } ;
222
222
}
223
223
const options = getOptions ( context . options [ 0 ] ) ;
224
- let componentMap = { } ;
225
- let expectedTypes = [ ] ;
226
- let imports = [ ] ;
227
- let requires = [ ] ;
228
- let typeAliasMap = { } ;
224
+ const componentMap = { } ;
225
+ const expectedTypes = [ ] ;
226
+ const imports = [ ] ;
227
+ const requires = [ ] ;
228
+ const typeAliasMap = { } ;
229
229
return {
230
230
ImportDeclaration ( node ) {
231
231
imports . push ( node ) ;
You can’t perform that action at this time.
0 commit comments