You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
657 B

  1. import { defineConfig, globalIgnores } from 'eslint/config'
  2. import globals from 'globals'
  3. import js from '@eslint/js'
  4. import pluginVue from 'eslint-plugin-vue'
  5. export default defineConfig([
  6. {
  7. name: 'app/files-to-lint',
  8. files: ['**/*.{js,mjs,jsx,vue}'],
  9. },
  10. globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']),
  11. {
  12. languageOptions: {
  13. globals: {
  14. ...globals.browser,
  15. },
  16. },
  17. },
  18. js.configs.recommended,
  19. ...pluginVue.configs['flat/essential'],
  20. {
  21. "rules": {
  22. "no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
  23. "no-undef": "off"
  24. }
  25. }
  26. ])