-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Updated ESLint file and made some pages ESLint compliant
- Loading branch information
1 parent
deb69c5
commit 12b46d9
Showing
6 changed files
with
38 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,45 @@ | ||
/** @type {import("eslint").Linter.Config} */ | ||
const config = { | ||
extends: [ | ||
'turbo', | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended-type-checked', | ||
'plugin:@typescript-eslint/stylistic-type-checked', | ||
'prettier' | ||
"turbo", | ||
"eslint:recommended", | ||
"next/core-web-vitals", | ||
"plugin:@typescript-eslint/recommended-type-checked", | ||
"plugin:@typescript-eslint/stylistic-type-checked", | ||
"prettier", | ||
], | ||
env: { | ||
es2022: true, | ||
node: true | ||
node: true, | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { project: true }, | ||
plugins: ['@typescript-eslint', 'import'], | ||
plugins: ["@typescript-eslint", "import"], | ||
rules: { | ||
'turbo/no-undeclared-env-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' } | ||
"turbo/no-undeclared-env-vars": "off", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" }, | ||
], | ||
'@typescript-eslint/consistent-type-imports': [ | ||
'warn', | ||
{ prefer: 'type-imports', fixStyle: 'separate-type-imports' } | ||
"@typescript-eslint/consistent-type-imports": [ | ||
"warn", | ||
{ prefer: "type-imports", fixStyle: "separate-type-imports" }, | ||
], | ||
'@typescript-eslint/no-misused-promises': [ | ||
"@typescript-eslint/no-misused-promises": [ | ||
2, | ||
{ checksVoidReturn: { attributes: false } } | ||
{ checksVoidReturn: { attributes: false } }, | ||
], | ||
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'] | ||
"import/consistent-type-specifier-style": ["error", "prefer-top-level"], | ||
}, | ||
ignorePatterns: [ | ||
'**/*.config.js', | ||
'**/*.config.cjs', | ||
'**/.eslintrc.cjs', | ||
'.next', | ||
'dist', | ||
'pnpm-lock.yaml' | ||
"**/*.config.js", | ||
"**/*.config.cjs", | ||
"**/.eslintrc.cjs", | ||
".next", | ||
"dist", | ||
"pnpm-lock.yaml", | ||
], | ||
reportUnusedDisableDirectives: true | ||
} | ||
reportUnusedDisableDirectives: true, | ||
}; | ||
|
||
module.exports = config | ||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters