mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
eslint: Replace camelcase rule with naming-convention
This commit is contained in:
parent
55d34d79cf
commit
5e3db6dcfe
32
.eslintrc.js
32
.eslintrc.js
@ -33,7 +33,33 @@ module.exports = {
|
||||
"simple-import-sort/sort": "warn",
|
||||
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
|
||||
"@typescript-eslint/await-thenable": "warn",
|
||||
"@typescript-eslint/camelcase": "off", // deprecated in favour of @typescript-eslint/naming-convention, see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/camelcase.md
|
||||
"@typescript-eslint/explicit-function-return-type": ["warn", { allowExpressions: true }],
|
||||
"@typescript-eslint/naming-convention": [
|
||||
"warn",
|
||||
{
|
||||
selector: "default",
|
||||
format: ["strictCamelCase"],
|
||||
},
|
||||
{
|
||||
selector: "typeLike",
|
||||
format: ["StrictPascalCase"],
|
||||
},
|
||||
{
|
||||
selector: "enumMember",
|
||||
format: ["StrictPascalCase"],
|
||||
},
|
||||
{
|
||||
selector: "variable",
|
||||
format: ["strictCamelCase"],
|
||||
leadingUnderscore: "allow",
|
||||
},
|
||||
{
|
||||
selector: "parameter",
|
||||
format: ["strictCamelCase"],
|
||||
leadingUnderscore: "allow",
|
||||
},
|
||||
],
|
||||
"@typescript-eslint/no-dynamic-delete": "warn",
|
||||
"@typescript-eslint/no-empty-function": "off",
|
||||
"@typescript-eslint/no-empty-interface": "off",
|
||||
@ -59,11 +85,5 @@ module.exports = {
|
||||
"@typescript-eslint/no-non-null-assertion": "off",
|
||||
},
|
||||
},
|
||||
{
|
||||
files: "jasmine-testrunner.js",
|
||||
rules: {
|
||||
"@typescript-eslint/camelcase": ["error", { properties: "never" }],
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user