2023-03-28 20:37:18 +08:00
|
|
|
/* eslint-env node */
|
|
|
|
|
|
|
|
/** @type {import('eslint').Linter.Config} */
|
|
|
|
module.exports = {
|
2023-08-11 16:40:06 +08:00
|
|
|
extends: ['@antfu', 'plugin:prettier/recommended'],
|
2023-03-28 20:37:18 +08:00
|
|
|
rules: {
|
2023-06-10 15:54:00 +08:00
|
|
|
'vue/component-tags-order': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
order: [['script', 'template'], 'style']
|
|
|
|
}
|
|
|
|
],
|
2024-02-04 11:54:30 +08:00
|
|
|
'vue/attribute-hyphenation': 'off',
|
|
|
|
'vue/v-on-event-hyphenation': 'off',
|
2023-03-28 20:37:18 +08:00
|
|
|
'vue/order-in-components': 'off',
|
|
|
|
'vue/component-name-in-template-casing': 'off',
|
|
|
|
'vue/custom-event-name-casing': 'off',
|
|
|
|
'vue/quote-props': 'off',
|
|
|
|
'vue/attributes-order': 'off',
|
|
|
|
'vue/prop-name-casing': 'off',
|
|
|
|
'vue/html-self-closing': 'off',
|
|
|
|
'vue/prefer-separate-static-class': 'off',
|
|
|
|
'vue/comma-dangle': 'off',
|
|
|
|
'vue/prefer-template': 'off',
|
2023-11-25 18:22:18 +08:00
|
|
|
'vue/no-unused-refs': 'off',
|
2024-02-04 11:54:30 +08:00
|
|
|
'vue/require-component-is': 'off',
|
2023-08-11 16:40:06 +08:00
|
|
|
'vue/singleline-html-element-content-newline': 'off',
|
2024-06-26 11:08:46 +08:00
|
|
|
'vue/no-v-for-template-key-on-child': 'off',
|
2023-03-28 20:37:18 +08:00
|
|
|
'curly': 'off',
|
|
|
|
'sort-imports': 'off',
|
|
|
|
'prefer-template': 'off',
|
|
|
|
'arrow-parens': 'off',
|
|
|
|
'operator-linebreak': 'off',
|
|
|
|
'antfu/if-newline': 'off',
|
2023-06-06 10:59:43 +08:00
|
|
|
'antfu/top-level-function': 'off',
|
2023-03-28 20:37:18 +08:00
|
|
|
'import/order': 'off',
|
|
|
|
'import/no-duplicates': 'off',
|
|
|
|
'quote-props': 'off',
|
|
|
|
'prefer-const': 'off',
|
2023-08-11 16:40:06 +08:00
|
|
|
'multiline-ternary': 'off',
|
2023-12-22 14:43:44 +08:00
|
|
|
'vue/no-deprecated-v-on-native-modifier': 'off',
|
2023-03-28 20:37:18 +08:00
|
|
|
'@typescript-eslint/comma-dangle': 'off',
|
|
|
|
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
|
|
'@typescript-eslint/no-unsafe-call': 'off',
|
|
|
|
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
|
|
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
|
|
'@typescript-eslint/no-unsafe-return': 'off',
|
|
|
|
'@typescript-eslint/brace-style': 'off',
|
|
|
|
'@typescript-eslint/restrict-plus-operands': 'off',
|
|
|
|
'@typescript-eslint/no-use-before-define': 'off',
|
2023-12-05 15:26:16 +08:00
|
|
|
'@typescript-eslint/restrict-template-expressions': 'off',
|
2024-06-26 11:08:46 +08:00
|
|
|
'@typescript-eslint/no-invalid-this': 'off',
|
|
|
|
'vue/no-deprecated-dollar-scopedslots-api': 'off'
|
2023-06-10 15:54:00 +08:00
|
|
|
}
|
2023-03-28 20:37:18 +08:00
|
|
|
}
|