Add objectLiteralProperty to .eslintrc.base.js; rename to .eslintrc.js

This commit is contained in:
Simon Warta 2023-03-01 14:44:18 +01:00
parent 910aa4976c
commit 41a3d64a3e

View File

@ -61,6 +61,12 @@ module.exports = {
format: ["strictCamelCase"], format: ["strictCamelCase"],
leadingUnderscore: "allow", leadingUnderscore: "allow",
}, },
{
// For object literal keys we want to allow things like numbers (e.g. 35),
// type URLs (e.g. "/cosmos.feegrant.v1beta1.MsgGrantAllowance") or test data (e.g. "0.14ucoin2")
selector: "objectLiteralProperty",
format: [null],
},
], ],
"@typescript-eslint/no-dynamic-delete": "warn", "@typescript-eslint/no-dynamic-delete": "warn",
"@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-empty-function": "off",