chore: enforce consistent spacing around object curlys (#5700)
The codebase was incredibly inconsistent with the use of spacing around curly braces, e.g.: ``` // this? const a = {b: 1} // or? const a = { b: 1 } ``` This extended into import statements also. Google's styleguide is no spacing, so we're going with that.
This commit is contained in:
parent
3600f2f99b
commit
e3922ea1f3
@ -33,6 +33,7 @@ module.exports = {
|
|||||||
}],
|
}],
|
||||||
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
|
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
|
||||||
"curly": [2, "multi-or-nest", "consistent"],
|
"curly": [2, "multi-or-nest", "consistent"],
|
||||||
|
"object-curly-spacing": [2, "never"],
|
||||||
"new-parens": 2,
|
"new-parens": 2,
|
||||||
"func-call-spacing": 2,
|
"func-call-spacing": 2,
|
||||||
"arrow-parens": [2, "as-needed"],
|
"arrow-parens": [2, "as-needed"],
|
||||||
|
@ -22,7 +22,8 @@
|
|||||||
"prepublishOnly": "npm run tsc",
|
"prepublishOnly": "npm run tsc",
|
||||||
"dev-install": "npm run tsc && node install.js",
|
"dev-install": "npm run tsc && node install.js",
|
||||||
"install": "node install.js",
|
"install": "node install.js",
|
||||||
"lint": "([ \"$CI\" = true ] && eslint --ext js --ext ts --quiet -f codeframe . || eslint --ext js --ext ts .) && npm run tsc && npm run doc",
|
"eslint": "([ \"$CI\" = true ] && eslint --ext js --ext ts --quiet -f codeframe . || eslint --ext js --ext ts .)",
|
||||||
|
"lint": "npm run eslint && npm run tsc && npm run doc",
|
||||||
"doc": "node utils/doclint/cli.js",
|
"doc": "node utils/doclint/cli.js",
|
||||||
"tsc": "tsc --version && tsc -p . && cp src/protocol.d.ts lib/ && cp src/externs.d.ts lib/",
|
"tsc": "tsc --version && tsc -p . && cp src/protocol.d.ts lib/ && cp src/externs.d.ts lib/",
|
||||||
"apply-next-version": "node utils/apply_next_version.js",
|
"apply-next-version": "node utils/apply_next_version.js",
|
||||||
|
Loading…
Reference in New Issue
Block a user