Adjust eslint config to make it work again

This commit is contained in:
Simon Warta 2023-03-01 15:32:06 +01:00
parent 41a3d64a3e
commit 68a7a1ccfb
17 changed files with 233 additions and 1 deletions

View File

@ -1,4 +1,12 @@
// The master version of this file is in the repo root. Eslint seems to have
// problems using symbolic links for the config file, so we copy it to the packages.
// To update:
// 1. Go to the repo root
// 2. Make edits in .eslintrc.js
// 3. Run `find ./packages -name ".eslintrc.js" -exec cp .eslintrc.js {} \;`
module.exports = {
root: true,
env: {
es6: true,
jasmine: true,
@ -65,7 +73,7 @@ module.exports = {
// 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],
format: null,
},
],
"@typescript-eslint/no-dynamic-delete": "warn",

View File

@ -1,4 +1,12 @@
// The master version of this file is in the repo root. Eslint seems to have
// problems using symbolic links for the config file, so we copy it to the packages.
// To update:
// 1. Go to the repo root
// 2. Make edits in .eslintrc.js
// 3. Run `find ./packages -name ".eslintrc.js" -exec cp .eslintrc.js {} \;`
module.exports = {
root: true,
env: {
es6: true,
jasmine: true,
@ -61,6 +69,12 @@ module.exports = {
format: ["strictCamelCase"],
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-empty-function": "off",

View File

@ -1,4 +1,12 @@
// The master version of this file is in the repo root. Eslint seems to have
// problems using symbolic links for the config file, so we copy it to the packages.
// To update:
// 1. Go to the repo root
// 2. Make edits in .eslintrc.js
// 3. Run `find ./packages -name ".eslintrc.js" -exec cp .eslintrc.js {} \;`
module.exports = {
root: true,
env: {
es6: true,
jasmine: true,
@ -61,6 +69,12 @@ module.exports = {
format: ["strictCamelCase"],
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-empty-function": "off",

View File

@ -1,4 +1,12 @@
// The master version of this file is in the repo root. Eslint seems to have
// problems using symbolic links for the config file, so we copy it to the packages.
// To update:
// 1. Go to the repo root
// 2. Make edits in .eslintrc.js
// 3. Run `find ./packages -name ".eslintrc.js" -exec cp .eslintrc.js {} \;`
module.exports = {
root: true,
env: {
es6: true,
jasmine: true,
@ -61,6 +69,12 @@ module.exports = {
format: ["strictCamelCase"],
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-empty-function": "off",

View File

@ -1,4 +1,12 @@
// The master version of this file is in the repo root. Eslint seems to have
// problems using symbolic links for the config file, so we copy it to the packages.
// To update:
// 1. Go to the repo root
// 2. Make edits in .eslintrc.js
// 3. Run `find ./packages -name ".eslintrc.js" -exec cp .eslintrc.js {} \;`
module.exports = {
root: true,
env: {
es6: true,
jasmine: true,
@ -61,6 +69,12 @@ module.exports = {
format: ["strictCamelCase"],
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-empty-function": "off",

View File

@ -1,4 +1,12 @@
// The master version of this file is in the repo root. Eslint seems to have
// problems using symbolic links for the config file, so we copy it to the packages.
// To update:
// 1. Go to the repo root
// 2. Make edits in .eslintrc.js
// 3. Run `find ./packages -name ".eslintrc.js" -exec cp .eslintrc.js {} \;`
module.exports = {
root: true,
env: {
es6: true,
jasmine: true,
@ -61,6 +69,12 @@ module.exports = {
format: ["strictCamelCase"],
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-empty-function": "off",

View File

@ -1,4 +1,12 @@
// The master version of this file is in the repo root. Eslint seems to have
// problems using symbolic links for the config file, so we copy it to the packages.
// To update:
// 1. Go to the repo root
// 2. Make edits in .eslintrc.js
// 3. Run `find ./packages -name ".eslintrc.js" -exec cp .eslintrc.js {} \;`
module.exports = {
root: true,
env: {
es6: true,
jasmine: true,
@ -61,6 +69,12 @@ module.exports = {
format: ["strictCamelCase"],
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-empty-function": "off",

View File

@ -1,4 +1,12 @@
// The master version of this file is in the repo root. Eslint seems to have
// problems using symbolic links for the config file, so we copy it to the packages.
// To update:
// 1. Go to the repo root
// 2. Make edits in .eslintrc.js
// 3. Run `find ./packages -name ".eslintrc.js" -exec cp .eslintrc.js {} \;`
module.exports = {
root: true,
env: {
es6: true,
jasmine: true,
@ -61,6 +69,12 @@ module.exports = {
format: ["strictCamelCase"],
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-empty-function": "off",

View File

@ -1,4 +1,12 @@
// The master version of this file is in the repo root. Eslint seems to have
// problems using symbolic links for the config file, so we copy it to the packages.
// To update:
// 1. Go to the repo root
// 2. Make edits in .eslintrc.js
// 3. Run `find ./packages -name ".eslintrc.js" -exec cp .eslintrc.js {} \;`
module.exports = {
root: true,
env: {
es6: true,
jasmine: true,
@ -61,6 +69,12 @@ module.exports = {
format: ["strictCamelCase"],
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-empty-function": "off",

View File

@ -1,4 +1,12 @@
// The master version of this file is in the repo root. Eslint seems to have
// problems using symbolic links for the config file, so we copy it to the packages.
// To update:
// 1. Go to the repo root
// 2. Make edits in .eslintrc.js
// 3. Run `find ./packages -name ".eslintrc.js" -exec cp .eslintrc.js {} \;`
module.exports = {
root: true,
env: {
es6: true,
jasmine: true,
@ -61,6 +69,12 @@ module.exports = {
format: ["strictCamelCase"],
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-empty-function": "off",

View File

@ -1,4 +1,12 @@
// The master version of this file is in the repo root. Eslint seems to have
// problems using symbolic links for the config file, so we copy it to the packages.
// To update:
// 1. Go to the repo root
// 2. Make edits in .eslintrc.js
// 3. Run `find ./packages -name ".eslintrc.js" -exec cp .eslintrc.js {} \;`
module.exports = {
root: true,
env: {
es6: true,
jasmine: true,
@ -61,6 +69,12 @@ module.exports = {
format: ["strictCamelCase"],
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-empty-function": "off",

View File

@ -1,4 +1,12 @@
// The master version of this file is in the repo root. Eslint seems to have
// problems using symbolic links for the config file, so we copy it to the packages.
// To update:
// 1. Go to the repo root
// 2. Make edits in .eslintrc.js
// 3. Run `find ./packages -name ".eslintrc.js" -exec cp .eslintrc.js {} \;`
module.exports = {
root: true,
env: {
es6: true,
jasmine: true,
@ -61,6 +69,12 @@ module.exports = {
format: ["strictCamelCase"],
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-empty-function": "off",

View File

@ -1,4 +1,12 @@
// The master version of this file is in the repo root. Eslint seems to have
// problems using symbolic links for the config file, so we copy it to the packages.
// To update:
// 1. Go to the repo root
// 2. Make edits in .eslintrc.js
// 3. Run `find ./packages -name ".eslintrc.js" -exec cp .eslintrc.js {} \;`
module.exports = {
root: true,
env: {
es6: true,
jasmine: true,
@ -61,6 +69,12 @@ module.exports = {
format: ["strictCamelCase"],
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-empty-function": "off",

View File

@ -1,4 +1,12 @@
// The master version of this file is in the repo root. Eslint seems to have
// problems using symbolic links for the config file, so we copy it to the packages.
// To update:
// 1. Go to the repo root
// 2. Make edits in .eslintrc.js
// 3. Run `find ./packages -name ".eslintrc.js" -exec cp .eslintrc.js {} \;`
module.exports = {
root: true,
env: {
es6: true,
jasmine: true,
@ -61,6 +69,12 @@ module.exports = {
format: ["strictCamelCase"],
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-empty-function": "off",

View File

@ -1,4 +1,12 @@
// The master version of this file is in the repo root. Eslint seems to have
// problems using symbolic links for the config file, so we copy it to the packages.
// To update:
// 1. Go to the repo root
// 2. Make edits in .eslintrc.js
// 3. Run `find ./packages -name ".eslintrc.js" -exec cp .eslintrc.js {} \;`
module.exports = {
root: true,
env: {
es6: true,
jasmine: true,
@ -61,6 +69,12 @@ module.exports = {
format: ["strictCamelCase"],
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-empty-function": "off",

View File

@ -1,4 +1,12 @@
// The master version of this file is in the repo root. Eslint seems to have
// problems using symbolic links for the config file, so we copy it to the packages.
// To update:
// 1. Go to the repo root
// 2. Make edits in .eslintrc.js
// 3. Run `find ./packages -name ".eslintrc.js" -exec cp .eslintrc.js {} \;`
module.exports = {
root: true,
env: {
es6: true,
jasmine: true,
@ -61,6 +69,12 @@ module.exports = {
format: ["strictCamelCase"],
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-empty-function": "off",

View File

@ -1,4 +1,12 @@
// The master version of this file is in the repo root. Eslint seems to have
// problems using symbolic links for the config file, so we copy it to the packages.
// To update:
// 1. Go to the repo root
// 2. Make edits in .eslintrc.js
// 3. Run `find ./packages -name ".eslintrc.js" -exec cp .eslintrc.js {} \;`
module.exports = {
root: true,
env: {
es6: true,
jasmine: true,
@ -61,6 +69,12 @@ module.exports = {
format: ["strictCamelCase"],
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-empty-function": "off",