build: fix EsLint rule and add fixer (#11826)

This commit is contained in:
Nikolay Vitkov
2024-02-05 10:26:37 +01:00
committed by GitHub
parent 197f00547e
commit b2c69fe5bd
38 changed files with 230 additions and 34 deletions

View File

@@ -172,8 +172,6 @@ module.exports = {
curly: ['error', 'all'],
// Brackets keep code readable and `return` intentions clear.
'arrow-body-style': ['error', 'always'],
// Error if comments do not adhere to `tsdoc`.
'tsdoc/syntax': 'error',
// Keeps array types simple only when they are simple for readability.
'@typescript-eslint/array-type': ['error', {default: 'array-simple'}],
'no-unused-vars': 'off',
@@ -277,5 +275,14 @@ module.exports = {
},
],
},
{
// Applies to only published packages
files: ['packages/**/*.ts'],
rules: {
// Error if comments do not adhere to `tsdoc`.
'tsdoc/syntax': 'error',
},
},
],
};