mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 20:25:48 +00:00
build: remove linter rules already in base config (#1599)
This commit is contained in:
committed by
Mayukha Vadari
parent
eb56eb181a
commit
ac66c2174a
31
.eslintrc.js
31
.eslintrc.js
@@ -31,36 +31,7 @@ module.exports = {
|
|||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
selector: "interface",
|
selector: "interface",
|
||||||
format: ["PascalCase"],
|
format: ["PascalCase", 'snake_case'],
|
||||||
},
|
|
||||||
{
|
|
||||||
selector: "interface",
|
|
||||||
format: ["snake_case"],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
// Ignore type imports when counting dependencies.
|
|
||||||
"import/max-dependencies": [
|
|
||||||
"error",
|
|
||||||
{
|
|
||||||
max: 10,
|
|
||||||
ignoreTypeImports: true,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
// Removes comments and blank lines from the max-line rules
|
|
||||||
"max-lines-per-function": [
|
|
||||||
"warn",
|
|
||||||
{
|
|
||||||
max: 50,
|
|
||||||
skipBlankLines: true,
|
|
||||||
skipComments: true,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"max-lines": [
|
|
||||||
"warn",
|
|
||||||
{
|
|
||||||
max: 250,
|
|
||||||
skipBlankLines: true,
|
|
||||||
skipComments: true,
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"max-statements": ["warn", 25],
|
"max-statements": ["warn", 25],
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
"./test/**/*.ts",
|
"./test/**/*.ts",
|
||||||
"./snippets/src/**/*.ts",
|
"./snippets/src/**/*.ts",
|
||||||
".prettierrc.js",
|
".prettierrc.js",
|
||||||
|
".eslintrc.js",
|
||||||
"jest.config.js"
|
"jest.config.js"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user