mirror of
https://github.com/google/blockly.git
synced 2026-01-12 11:27:14 +01:00
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:
@@ -76,6 +76,6 @@
|
||||
"exports": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended"
|
||||
"eslint:recommended", "google"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
17317
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user