32 lines
641 B
JavaScript
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,
|
|
},
|
|
},
|
|
},
|
|
];
|