eslint-plugin-valkyriecoms/eslint.config.js
2024-10-03 00:14:11 +13:00

32 lines
641 B
JavaScript

import globals from 'globals';
import tsParser from '@typescript-eslint/parser';
import pluginValkyrie from './index.js';
export default [
...pluginValkyrie.configs['recommended'],
{
files: ['**/*.js', '**/*.jsx'],
languageOptions: {
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
},
},
{
files: ['**/*.ts', '**/*.tsx'],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
parserOptions: {
ecmaVersion: 'latest',
parser: tsParser,
project: ['./tsconfig.json'],
sourceType: 'module',
tsconfigRootDir: import.meta.dirname,
},
},
},
];