Skyler Grey | 51e9e63 | 2023-06-03 10:20:11 +0200 | [diff] [blame] | 1 | module.exports = { |
| 2 | root: true, |
| 3 | extends: [ |
| 4 | 'eslint:recommended', |
| 5 | 'plugin:@typescript-eslint/recommended', |
| 6 | 'plugin:svelte/recommended', |
| 7 | 'prettier' |
| 8 | ], |
| 9 | parser: '@typescript-eslint/parser', |
| 10 | plugins: ['@typescript-eslint'], |
| 11 | parserOptions: { |
| 12 | sourceType: 'module', |
| 13 | ecmaVersion: 2020, |
| 14 | extraFileExtensions: ['.svelte'] |
| 15 | }, |
| 16 | env: { |
| 17 | browser: true, |
| 18 | es2017: true, |
| 19 | node: true |
| 20 | }, |
| 21 | overrides: [ |
| 22 | { |
| 23 | files: ['*.svelte'], |
| 24 | parser: 'svelte-eslint-parser', |
| 25 | parserOptions: { |
| 26 | parser: '@typescript-eslint/parser' |
| 27 | } |
| 28 | } |
| 29 | ] |
| 30 | }; |