Fork of Chiri for Astro for my blog
at main 41 lines 920 B view raw
1import eslint from '@eslint/js' 2import globals from 'globals' 3import tseslint from 'typescript-eslint' 4import prettier from 'eslint-config-prettier' 5import eslintPluginAstro from 'eslint-plugin-astro' 6 7export default [ 8 eslint.configs.recommended, 9 ...tseslint.configs.recommended, 10 ...eslintPluginAstro.configs.recommended, 11 { 12 languageOptions: { 13 globals: { 14 ...globals.browser, 15 ...globals.node 16 } 17 } 18 }, 19 { 20 rules: { 21 'no-console': ['warn', { allow: ['warn', 'error'] }], 22 '@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }], 23 '@typescript-eslint/no-explicit-any': 'warn', 24 'astro/no-set-html-directive': 'off' 25 } 26 }, 27 prettier, 28 { 29 ignores: [ 30 'dist/**', 31 '.output/**', 32 'node_modules/**', 33 '*.log', 34 '.env*', 35 '.cache/**', 36 '.astro/**', 37 '.DS_Store', 38 'coverage/**' 39 ] 40 } 41]