File tree Expand file tree Collapse file tree 5 files changed +89
-131
lines changed
Expand file tree Collapse file tree 5 files changed +89
-131
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- /** @type { import(" eslint").Linter.Config } */
2- module . exports = {
3- root : true ,
4- extends : [
5- 'eslint:recommended' ,
6- 'plugin:@typescript-eslint/recommended' ,
7- 'plugin:svelte/recommended' ,
8- 'prettier'
9- ] ,
10- parser : '@typescript-eslint/parser' ,
11- plugins : [ '@typescript-eslint '] ,
12- parserOptions : {
13- sourceType : 'module' ,
14- ecmaVersion : 2020 ,
15- extraFileExtensions : [ '.svelte' ]
16- } ,
17- env : {
18- browser : true ,
19- es2017 : true ,
20- node : true
1+ import js from '@ eslint/js' ;
2+ import ts from 'typescript-eslint' ;
3+ import svelte from 'eslint-plugin-svelte' ;
4+ import prettier from 'eslint-config-prettier' ;
5+ import globals from 'globals' ;
6+
7+ /** @type { import('eslint').Linter.Config[] } */
8+ export default [
9+ js . configs . recommended ,
10+ ... ts . configs . recommended ,
11+ ... svelte . configs [ 'flat/recommended '] ,
12+ prettier ,
13+ ... svelte . configs [ 'flat/prettier' ] ,
14+ {
15+ languageOptions : {
16+ globals : {
17+ ... globals . browser ,
18+ ... globals . node
19+ }
20+ }
2121 } ,
22- overrides : [
23- {
24- files : [ '*.svelte' ] ,
25- parser : 'svelte-eslint-parser' ,
22+ {
23+ files : [ '**/*.svelte' ] ,
24+ languageOptions : {
2625 parserOptions : {
27- parser : '@typescript-eslint/ parser'
26+ parser : ts . parser
2827 }
2928 }
30- ]
31- } ;
29+ } ,
30+ {
31+ ignores : [ 'build/' , '.svelte-kit/' , 'dist/' ]
32+ }
33+ ] ;
Original file line number Diff line number Diff line change 1+ import js from '@eslint/js' ;
2+ import ts from 'typescript-eslint' ;
3+ import svelte from 'eslint-plugin-svelte' ;
4+ import prettier from 'eslint-config-prettier' ;
5+ import globals from 'globals' ;
6+
7+ /** @type {import('eslint').Linter.Config[] } */
8+ export default [
9+ js . configs . recommended ,
10+ ...ts . configs . recommended ,
11+ ...svelte . configs [ 'flat/recommended' ] ,
12+ prettier ,
13+ ...svelte . configs [ 'flat/prettier' ] ,
14+ {
15+ languageOptions : {
16+ globals : {
17+ ...globals . browser ,
18+ ...globals . node
19+ }
20+ }
21+ } ,
22+ {
23+ files : [ '**/*.svelte' ] ,
24+ languageOptions : {
25+ parserOptions : {
26+ parser : ts . parser
27+ }
28+ }
29+ } ,
30+ {
31+ ignores : [ 'build/' , '.svelte-kit/' , 'dist/' ]
32+ }
33+ ] ;
You can’t perform that action at this time.
0 commit comments