MajorAmari
MajorAmari2y ago

how to specify giving error or warning for a lint rule?

I'm new to Deno couldn't find a way to make a lint rule give error instead of error
{
"lint": {
"include": [],
"exclude": [],
"rules": {
"tags": [
"recommended"
],
"include": [
"eqeqeq" // <-- Here for example it give warning in vscode
],
"exclude": [
"import-prefix-missing"
]
}
}
}
{
"lint": {
"include": [],
"exclude": [],
"rules": {
"tags": [
"recommended"
],
"include": [
"eqeqeq" // <-- Here for example it give warning in vscode
],
"exclude": [
"import-prefix-missing"
]
}
}
}
1 Reply
ybabts
ybabts2y ago
I don't understand, do you want to have it fail if you have a linting error? If thats your intent you can set up a process to run deno lint and check if you have any linting errors. Usually this is set up as a Github action that fails the build if there's a linting error. But if you wanted to, you can make it terminate the program after it checks on startup.

Did you find this page helpful?