mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-28 22:14:52 -07:00
Adjust lint rules to avoid unnecessary warning. (#18970)
This commit is contained in:
committed by
GitHub
parent
e1b9002b35
commit
3bed7bbe8d
@@ -10,8 +10,6 @@ import tsParser from '@typescript-eslint/parser';
|
|||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
files: ['**/*.ts'],
|
files: ['**/*.ts'],
|
||||||
},
|
|
||||||
{
|
|
||||||
plugins: {
|
plugins: {
|
||||||
'@typescript-eslint': typescriptEslint,
|
'@typescript-eslint': typescriptEslint,
|
||||||
},
|
},
|
||||||
@@ -40,6 +38,13 @@ export default [
|
|||||||
'no-throw-literal': 'warn',
|
'no-throw-literal': 'warn',
|
||||||
semi: 'warn',
|
semi: 'warn',
|
||||||
'@typescript-eslint/no-floating-promises': ['error'],
|
'@typescript-eslint/no-floating-promises': ['error'],
|
||||||
|
'@typescript-eslint/no-unsafe-type-assertion': 'error',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
files: ['**/*.test.ts'],
|
||||||
|
rules: {
|
||||||
|
'@typescript-eslint/no-unsafe-type-assertion': 'off',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user