-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yaml
37 lines (36 loc) · 1006 Bytes
/
.eslintrc.yaml
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
34
35
36
root: true
parser: '@typescript-eslint/parser'
env:
browser: true
es6: true
node: true
plugins:
- '@typescript-eslint'
- svelte3
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
- prettier
overrides:
- files:
- '*.js'
- '*.ts'
- files:
- '*.svelte'
processor: svelte3/svelte3
# Svelte/Eslint/TS currently have [some limitations](https://github.com/sveltejs/eslint-plugin-svelte3#installation-with-typescript).
# Therefore the following rules are disabled as they are caught by typescript anyway.
rules:
'@typescript-eslint/no-unsafe-assignment': 'off'
'@typescript-eslint/no-unsafe-call': 'off'
'@typescript-eslint/no-unsafe-member-access': 'off'
'no-undef': 'off'
settings:
svelte3/typescript: true
parserOptions:
ecmaVersion: 2019
sourceType: module
tsconfigRootDir: .
project: ['./tsconfig.json']
extraFileExtensions: ['.svelte']