Geen omschrijving

eslint.config.js 650B

1234567891011121314151617181920212223242526272829
  1. import globals from "globals";
  2. import pluginJs from "@eslint/js";
  3. import eslintPluginSvelte from 'eslint-plugin-svelte';
  4. import svelteConfig from './svelte.config.js';
  5. export default [
  6. {
  7. languageOptions: {
  8. globals: {
  9. ...globals.browser,
  10. ...globals.jquery,
  11. },
  12. parserOptions: {
  13. svelteConfig,
  14. },
  15. },
  16. },
  17. pluginJs.configs.recommended,
  18. ...eslintPluginSvelte.configs["flat/recommended"],
  19. {
  20. rules: {
  21. // override/add rules settings here, such as:
  22. // 'svelte/rule-name': 'error'
  23. }
  24. }
  25. ];