egg_attach_template/eslint.config.js
2024-05-06 03:28:58 +00:00

26 lines
613 B
JavaScript

export default {
languageOptions: {
ecmaVersion: 2021,
sourceType: 'module',
},
ignores: ['*.js', '*.cjs', '*.mjs', '/src/Backup/*'],
plugins: ['@typescript-eslint', 'simple-import-sort'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
},
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
languageOptions: {
parser: '@typescript-eslint/parser',
},
},
],
};