mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
build: fix EsLint rule and add fixer (#11826)
This commit is contained in:
11
.eslintrc.js
11
.eslintrc.js
@@ -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',
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user