chore: enable eslint-config-google (#5717)

* chore(deps): update package-lock.json

* chore(deps): install eslint-config-google as a dev dependency

* chore: enable eslint-config-google

* chore: fix missing commas
This commit is contained in:
Rachel Fenichel
2021-11-18 09:30:34 -08:00
committed by GitHub
parent 27699ed08b
commit bbf768a920
5 changed files with 5791 additions and 11537 deletions

View File

@@ -76,6 +76,6 @@
"exports": true
},
"extends": [
"eslint:recommended"
"eslint:recommended", "google"
]
}

View File

@@ -195,7 +195,7 @@ exports.getBlockTypeCounts = getBlockTypeCounts;
* of jsonDef.
*/
const jsonInitFactory = function(jsonDef) {
return function() {
return /** @this {Block} */ function() {
this.jsonInit(jsonDef);
};
};

17317
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -76,6 +76,7 @@
"clang-format": "^1.6.0",
"concurrently": "^6.0.0",
"eslint": "^7.28.0",
"eslint-config-google": "^0.14.0",
"google-closure-compiler": "^20211006.0.0",
"google-closure-deps": "^20210808.0.0",
"gulp": "^4.0.2",

View File

@@ -235,8 +235,8 @@ const renamings = {
getBlockTypeCounts:
{module: 'Blockly.common', export: 'getBlockTypeCounts'},
runAfterPageLoad:
{module: 'Blockly.Extensions', export: 'runAfterPageLoad'}
}
{module: 'Blockly.Extensions', export: 'runAfterPageLoad'},
},
},
'Blockly': {
exports: {
@@ -246,7 +246,7 @@ const renamings = {
isNumber: {module: 'Blockly.utils.string'},
},
},
}
},
};
exports.renamings = renamings;