generated from kainstar/typescript-npm-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.ts
33 lines (32 loc) · 865 Bytes
/
eslint.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import kainstar from '@kainstar/eslint-config';
import type { Linter } from 'eslint';
import svelte from 'eslint-plugin-svelte';
import * as parserSvelte from 'svelte-eslint-parser';
export default kainstar({}, [
{
name: 'svelte',
files: ['**/*.svelte'],
languageOptions: {
parser: parserSvelte,
parserOptions: {
extraFileExtensions: ['.svelte'],
parser: {
ts: '@typescript-eslint/parser',
js: 'espree',
typescript: '@typescript-eslint/parser',
},
},
},
plugins: {
svelte,
},
processor: svelte.processors.svelte,
rules: {
'import/no-mutable-exports': 'off',
'prettier/prettier': 'error',
'no-inner-declarations': 'off',
'no-self-assign': 'off',
...(svelte.configs.recommended.rules as Linter.RulesRecord),
},
},
]);