forked from NASA-AMMOS/aerie-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
37 lines (37 loc) · 1.06 KB
/
.eslintrc.cjs
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
/** @type {import('@typescript-eslint/utils').TSESLint.Linter.Config} */
module.exports = {
env: {
browser: true,
es2017: true,
node: true,
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
plugins: ['svelte3', '@typescript-eslint'],
root: true,
rules: {
'@typescript-eslint/member-ordering': [
'error',
{
default: {
memberTypes: ['call-signature', 'field', 'constructor', 'get', 'method', 'set', 'signature'],
order: 'alphabetically',
},
},
],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
curly: 2,
'no-undef': 'off',
'sort-keys': ['error', 'asc', { caseSensitive: true, natural: false, minKeys: 2 }],
},
settings: {
'svelte3/typescript': () => require('typescript'),
},
};