forked from fdnd-task/lose-your-head-the-client-case
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
38 lines (37 loc) · 818 Bytes
/
eslint.config.js
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
37
38
import eslintPluginSvelte from 'eslint-plugin-svelte';
import prettierConfig from 'eslint-config-prettier';
import eslintPluginPrettier from 'eslint-plugin-prettier';
export default [
{
files: ['**/*.svelte'],
plugins: {
svelte: eslintPluginSvelte,
prettier: eslintPluginPrettier,
},
languageOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
rules: {
'prettier/prettier': 'error',
...prettierConfig.rules,
},
settings: {
'svelte3/ignore-styles': () => true,
},
},
{
files: ['**/*.js'],
languageOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
plugins: {
prettier: eslintPluginPrettier,
},
rules: {
'prettier/prettier': 'error',
...prettierConfig.rules,
},
},
];