Skip to content

Commit

Permalink
eslint-config: Enforce import types with `@typescript-eslint/consiste…
Browse files Browse the repository at this point in the history
…nt-type-imports` (#1623)
  • Loading branch information
MicroFish91 authored Nov 10, 2023
1 parent 3d7c500 commit 677be89
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions eslint-config-azuretools/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = {
],
"rules": {
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off",
Expand All @@ -28,6 +29,7 @@ module.exports = {
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/unbound-method": "off",
"eqeqeq": ["error", "always"],
"import/consistent-type-specifier-style": ["error", "prefer-inline"],
"import/no-internal-modules": ["error", { "allow": ["yaml/types"] }],
"no-case-declarations": "off",
"no-constant-condition": ["error", { "checkLoops": false }],
Expand Down
4 changes: 2 additions & 2 deletions eslint-config-azuretools/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion eslint-config-azuretools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/eslint-config-azuretools",
"version": "0.2.1",
"version": "0.2.2",
"description": "Shared ESLint configuration used by Azure Tools for VS Code",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit 677be89

Please sign in to comment.