Skip to content

Commit 90f85e4

Browse files
authored
Fix lint config (#143)
1 parent 5c9b0f2 commit 90f85e4

8 files changed

+5854
-1804
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"plugins": ["prettier-plugin-svelte"],
23
"useTabs": true,
34
"singleQuote": true,
45
"arrowParens": "avoid",

eslint.config.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import antfu from '@antfu/eslint-config';
2+
3+
export default antfu({
4+
svelte: true,
5+
stylistic: {
6+
indent: 'tab',
7+
},
8+
9+
languageOptions: {
10+
globals: {
11+
chrome: true,
12+
},
13+
},
14+
rules: {
15+
'no-self-assign': 'off',
16+
'no-console': 'off',
17+
'import/order': 'off',
18+
'jsonc/object-curly-spacing': 'off',
19+
'style/semi': ['error', 'always'],
20+
'svelte/html-quotes': [
21+
'error',
22+
{
23+
prefer: 'double',
24+
},
25+
],
26+
'style/arrow-parens': 'off',
27+
'style/object-curly-spacing': 'off',
28+
29+
// Prettier conflicts
30+
'style/brace-style': 'off',
31+
'style/indent': 'off',
32+
'style/operator-linebreak': 'off',
33+
'style/quote-props': 'off',
34+
'svelte/indent': 'off',
35+
},
36+
});

0 commit comments

Comments
 (0)