[ESLint] Allow zero warnings (#575)
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
"test": "node -e \"console.log('imagine')\"",
|
"test": "node -e \"console.log('imagine')\"",
|
||||||
"build-md5": "find build -type f | sort | xargs md5sum | awk '{ print $1 }' | tr -d '\n' | md5sum| awk '{ print $1 }' > buildZip/md5sum ",
|
"build-md5": "find build -type f | sort | xargs md5sum | awk '{ print $1 }' | tr -d '\n' | md5sum| awk '{ print $1 }' > buildZip/md5sum ",
|
||||||
"build-zip": "cd build && rev=$(git rev-list HEAD --count) && echo r$rev > revision && zip -9 -r ../buildZip/Suwayomi-WebUI-r$rev *",
|
"build-zip": "cd build && rev=$(git rev-list HEAD --count) && echo r$rev > revision && zip -9 -r ../buildZip/Suwayomi-WebUI-r$rev *",
|
||||||
"lint": "eslint src --ext .ts,.tsx,.js,.jsx",
|
"lint": "eslint src --ext .ts,.tsx,.js,.jsx --max-warnings=0",
|
||||||
"createChangelog": "ts-node tools/scripts/createReleaseChangelog.ts",
|
"createChangelog": "ts-node tools/scripts/createReleaseChangelog.ts",
|
||||||
"updateDeps": "yarn upgrade && yarn syncyarnlock -s -k && yarn && git add package.json yarn.lock && git commit -m \"Update dependencies\" && echo Updated non breaking dependencies. Check potential breaking changes below... && yarn outdated",
|
"updateDeps": "yarn upgrade && yarn syncyarnlock -s -k && yarn && git add package.json yarn.lock && git commit -m \"Update dependencies\" && echo Updated non breaking dependencies. Check potential breaking changes below... && yarn outdated",
|
||||||
"gql:codegen-base": "graphql-codegen --config gql_codegen.ts",
|
"gql:codegen-base": "graphql-codegen --config gql_codegen.ts",
|
||||||
|
|||||||
@@ -7,4 +7,5 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export const defaultPromiseErrorHandler = (name: string) => (error: any) =>
|
export const defaultPromiseErrorHandler = (name: string) => (error: any) =>
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.error(`${name} failed due to`, error);
|
console.error(`${name} failed due to`, error);
|
||||||
|
|||||||
Reference in New Issue
Block a user