mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 10:07:46 -05:00
37 lines
841 B
JavaScript
37 lines
841 B
JavaScript
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
|
|
}
|
|
];
|