36 lines
784 B
JavaScript
36 lines
784 B
JavaScript
import eslint from '@eslint/js';
|
|
import { defineConfig } from 'eslint/config';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
export default defineConfig(
|
|
{
|
|
ignores: ['node_modules/**', 'coverage/**', 'packages/**/test/fixtures/**'],
|
|
},
|
|
{
|
|
files: ['**/*.js'],
|
|
...eslint.configs.recommended,
|
|
languageOptions: {
|
|
...eslint.configs.recommended.languageOptions,
|
|
globals: {
|
|
console: 'readonly',
|
|
process: 'readonly',
|
|
URL: 'readonly',
|
|
},
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.ts'],
|
|
extends: [...tseslint.configs.recommended],
|
|
languageOptions: {
|
|
parser: tseslint.parser,
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
},
|
|
},
|
|
rules: {
|
|
'no-undef': 'off',
|
|
},
|
|
},
|
|
);
|