doxdox-parser-dox
Version:
dox parser for doxdox
39 lines (36 loc) • 1.06 kB
JavaScript
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import typescriptParser from '@typescript-eslint/parser';
import typescriptPlugin from '@typescript-eslint/eslint-plugin';
export default [
js.configs.recommended,
tseslint.configs.eslintRecommended,
...tseslint.configs.recommended,
{
files: ['**/*.ts', '**/*.js'],
languageOptions: {
parser: typescriptParser,
globals: {
process: 'readonly',
console: 'readonly'
}
},
plugins: {
typescriptPlugin: typescriptPlugin
},
rules: {
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'no-warning-comments': [
'warn',
{ terms: ['todo'], location: 'start' }
],
'no-magic-numbers': [
'error',
{
ignore: [-1, 0, 1]
}
]
}
}
];