eslint.config.js•938 B
import js from '@eslint/js';
import typescript from '@typescript-eslint/eslint-plugin';
import typescriptParser from '@typescript-eslint/parser';
import globals from 'globals';
export default [
js.configs.recommended,
{
files: ['**/*.ts'],
languageOptions: {
parser: typescriptParser,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json'
},
globals: {
...globals.node,
...globals.browser,
fetch: 'readonly'
}
},
plugins: {
'@typescript-eslint': typescript
},
rules: {
...typescript.configs.recommended.rules,
'quotes': ['error', 'double', { 'avoidEscape': true }],
},
},
{
ignores: ['dist/', 'node_modules/', '**/*.js']
}
];