Skip to content

Commit

Permalink
Revert "Lint only updated files with stricter linting (#1635)" (#1652)
Browse files Browse the repository at this point in the history
This reverts commit 269b8bd.
  • Loading branch information
palisadoes authored Jan 8, 2024
1 parent 269b8bd commit 2be6a29
Show file tree
Hide file tree
Showing 4 changed files with 868 additions and 13,450 deletions.
30 changes: 15 additions & 15 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,20 @@
],

// restrict the use of same package in multiple import statements
"import/no-duplicates": "error",
"import/no-duplicates": "warn",

// error/1, error/2, off/0
"tsdoc/syntax": "error",
// warn/1, error/2, off/0
"tsdoc/syntax": "warn",

// Typescript Rules
"@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/ban-types": "error",
"@typescript-eslint/no-duplicate-enum-values": "error",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-inferrable-types": "warn",
"@typescript-eslint/no-non-null-asserted-optional-chain": "warn",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-var-requires": "warn",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/no-duplicate-enum-values": "warn",

// Typescript rule to enforce PascalCase naming convention for types and interfaces
"@typescript-eslint/naming-convention": [
Expand Down Expand Up @@ -115,9 +115,9 @@
],

// Typescript additional rules
"@typescript-eslint/array-type": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/explicit-function-return-type": "error"
"@typescript-eslint/array-type": "warn",
"@typescript-eslint/consistent-type-assertions": "warn",
"@typescript-eslint/consistent-type-imports": "warn",
"@typescript-eslint/explicit-function-return-type": "warn"
}
}
6 changes: 4 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
# Change to the current directory
. "$(dirname -- "$0")/_/husky.sh"

# Formats code using prettier.
npm run format:fix

# Checks code for typescript type errors and throws errors if found.
npm run typecheck

# Formats code using prettier
# Checks and fixes all lint issues in code which don't require manual intervention.
# Throws errors if lint issues requiring manual intervention are found in code.
npx lint-staged
npm run lint:fix

npm run gen:schema

Expand Down
Loading

0 comments on commit 2be6a29

Please sign in to comment.