Skip to content

Commit

Permalink
style: update eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin-LL committed Jan 19, 2021
1 parent 372a146 commit 66e74c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"ignorePatterns": ["dist/", "test-dist/"],
"rules": {
"no-undef": "off",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-debugger": "error",
"no-unused-vars": "error",
"@typescript-eslint/no-empty-function": "error",
"no-unused-vars": "off",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-debugger": "warn",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-ts-comment": [
"error",
"warn",
{
"ts-expect-error": "allow-with-description",
"ts-ignore": true,
Expand Down
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
"*.{js,jsx,ts,tsx}": "eslint --fix",
"*.{js,jsx,ts,tsx}": "eslint --max-warnings 0 --fix",
"*.{js,jsx,ts,tsx,css,less,scss,vue,json,gql,md}": "prettier --write",
"*.{md}": "remark --frail",
};

0 comments on commit 66e74c2

Please sign in to comment.