fix: linting

This commit is contained in:
Justin Lin committed 2025-04-26 17:02:47 +08:00
1 parent 6fe49c4f38
commit 9498bb77ef
17 files changed
+224 -218

No files matched your search

+10 -13
View File
@@ -75,25 +75,15 @@ module.exports = {
tsx: 'never',
},
],
'no-unused-vars': 'off',
'no-unused-vars': 'warn',
'no-useless-constructor': 'off',
'@typescript-eslint/no-useless-constructor': 'error',
'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': 'error',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
'no-restricted-imports': [
'error',
{
patterns: [
{
group: ['../*'],
message: 'Relative imports are not allowed.',
allowSameFolder: true,
},
],
},
],
'no-restricted-imports': ['error', '../*'],
'import/no-relative-packages': 'off',
},
overrides: [
{
@@ -109,5 +99,12 @@ module.exports = {
'import/no-extraneous-dependencies': 'off',
},
},
{
files: ['**/packages/**/*.ts'],
rules: {
'no-restricted-imports': 'off',
'import/no-extraneous-dependencies': 'off',
},
},
],
}