2024-10-02 11:01:50 +00:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-10-02 11:14:11 +00:00
|
|
|
];
|