Open History to see the last commit
1// @ts-check
2
3import pluginJsdoc from 'eslint-plugin-jsdoc'
4import vitest from '@vitest/eslint-plugin'
5import rootConfig from './root.eslint.config.js'
6
7export default [
8 ...rootConfig,
9 pluginJsdoc.configs['flat/recommended-typescript'],
10 {
11 rules: {
12 'cspell/spellchecker': [
13 'warn',
14 {
15 cspell: {
16 ignoreRegExpList: ['\\ɵ.+'],
17 },
18 },
19 ],
20 'jsdoc/require-hyphen-before-param-description': 1,
21 'jsdoc/sort-tags': 1,
22 'jsdoc/require-throws': 1,
23 'jsdoc/check-tag-names': [
24 'warn',
25 {
26 // Not compatible with Api Extractor @public
27 typed: false,
28 },
29 ],
30 },
31 },
32 {
33 plugins: { vitest },
34 rules: {
35 'vitest/expect-expect': [
36 'error',
37 { assertFunctionNames: ['expect', 'expectSignals'] },
38 ],
39 },
40 },
41]