-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
34 lines (33 loc) · 1.04 KB
/
.eslintrc.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
/* eslint-env node */
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:eslint-plugin-eslint-plugin/recommended',
'plugin:eslint-plugin-n/recommended',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'eslint-plugin-eslint-plugin', 'eslint-plugin-n', 'eslint-plugin-svelte-runes'],
root: true,
rules: {
'@typescript-eslint/consistent-type-imports': 'error',
'n/no-unpublished-import': [
'error',
{
allowModules: ['eslint'],
},
],
// TODO: figure out how to get this to play nice with typescript
'n/no-missing-import': ['off'],
'svelte-runes/no-direct-rune-assign': 'error',
'svelte-runes/no-effect-outside-components': 'error',
'svelte-runes/no-external-rune-calls': ['error'],
'svelte-runes/no-external-svelte-exports': 'error',
'svelte-runes/no-external-svelte-imports': 'error',
'svelte-runes/no-initialized-rune-exports': 'error',
'svelte-runes/no-initialized-rune-return': 'error',
},
settings: {
'eslint-plugin-n': {},
},
};