import config from '@pengzhanbo/eslint-config-vue'

export default config({
  pnpm: true,
  vue: {
    a11y: true,
  },
  ignores: [
    'lib',
    'docs/snippet/code-block.snippet.md',
    'docs/snippet/whitespace.snippet.md',
  ],
  globals: {
    __VUEPRESS_VERSION__: 'readonly',
    __VUEPRESS_BASE__: 'readonly',
    __VUEPRESS_DEV__: 'readonly',
    __VUEPRESS_SSR__: 'readonly',
    __VUE_HMR_RUNTIME__: 'readonly',
    __VUE_OPTIONS_API__: 'readonly',
    __VUE_PROD_DEVTOOLS__: 'readonly',
  },
}, {
  files: ['**/*.vue'],
  rules: {
    'vue/no-v-text-v-html-on-component': 'off',
    'vue-a11y/click-events-have-key-events': 'off',
    'vue-a11y/no-static-element-interactions': 'off',
  },
}, {
  files: ['**/*.md/*.{js,ts}'],
  rules: {
    'import/no-duplicates': 'off',
    'import/first': 'off',
    'no-new': 'off',
    'eslint-comments/no-unlimited-disable': 'off',
    'antfu/no-top-level-await': 'off',
  },
})
