mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
refactor: one eslint task per workspace (#63835)
This commit is contained in:
committed by
GitHub
parent
c9e83c5c6a
commit
1e0805fd72
@@ -0,0 +1,36 @@
|
||||
import { configTypeChecked, tsFiles } from '@freecodecamp/eslint-config/base';
|
||||
|
||||
import jsdoc from 'eslint-plugin-jsdoc';
|
||||
|
||||
/**
|
||||
* A shared ESLint configuration for the repository.
|
||||
*
|
||||
* @type {import("eslint").Linter.Config[]}
|
||||
* */
|
||||
export default [
|
||||
...configTypeChecked,
|
||||
{
|
||||
...jsdoc.configs['flat/recommended-typescript-error'],
|
||||
rules: {
|
||||
'jsdoc/require-jsdoc': [
|
||||
'error',
|
||||
{
|
||||
require: {
|
||||
ArrowFunctionExpression: true,
|
||||
ClassDeclaration: true,
|
||||
ClassExpression: true,
|
||||
FunctionDeclaration: true,
|
||||
FunctionExpression: true,
|
||||
MethodDefinition: true
|
||||
},
|
||||
|
||||
publicOnly: true
|
||||
}
|
||||
],
|
||||
|
||||
'jsdoc/require-description-complete-sentence': 'error',
|
||||
'jsdoc/tag-lines': 'off'
|
||||
},
|
||||
files: tsFiles
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user