mirror of
https://gitea.redwind.top/Austin/subscription
synced 2024-11-16 05:32:20 +08:00
24 lines
685 B
JavaScript
24 lines
685 B
JavaScript
// @ts-check
|
|
const { defineConfig } = require('eslint-define-config');
|
|
|
|
module.exports = defineConfig({
|
|
root: true,
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'prettier',
|
|
],
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['@typescript-eslint'],
|
|
rules: {
|
|
'@typescript-eslint/ban-ts-comment': 'off',
|
|
'@typescript-eslint/no-empty-function': 'off',
|
|
'@typescript-eslint/no-unused-vars': 'off',
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'no-empty': 'off',
|
|
'prefer-const': 'off',
|
|
quotes: ['error', 'single', { allowTemplateLiterals: false }],
|
|
},
|
|
});
|