.eslintrc.cjs 646 B

123456789101112131415161718192021
  1. /**
  2. * @type {import('eslint').Linter.Config}
  3. */
  4. module.exports = {
  5. root: true,
  6. extends: ['@antfu', './.eslintrc-auto-import.json', '@unocss'],
  7. rules: {
  8. 'curly': ['error', 'all'],
  9. '@typescript-eslint/semi': ['error', 'always'],
  10. '@typescript-eslint/no-use-before-define': ['error', { allowNamedExports: true, functions: false }],
  11. 'vue/no-empty-component-block': ['error'],
  12. 'no-restricted-imports': ['error', {
  13. paths: [{
  14. name: '@vueuse/core',
  15. importNames: ['useClipboard'],
  16. message: 'Please use local useCopy from src/composable/copy.ts instead of useClipboard.',
  17. }],
  18. }],
  19. },
  20. };