forked from ChrRubin/svelte-webext-stores
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
36 lines (36 loc) · 871 Bytes
/
.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
35
36
module.exports = {
root: true,
env: {
browser: true,
webextensions: true,
jest: true
},
parser: '@typescript-eslint/parser',
extends: 'standard-with-typescript',
parserOptions: {
sourceType: 'module',
project: './tsconfig.json'
},
plugins: [
'@typescript-eslint'
],
rules: {
'linebreak-style': ['error', 'unix'],
semi: 'off',
'@typescript-eslint/semi': ['error', 'always'],
'no-extra-semi': 'off',
'@typescript-eslint/no-extra-semi': 'error',
'@typescript-eslint/member-delimiter-style': [
'error',
{
multiline: { delimiter: 'semi', requireLast: true },
singleline: { delimiter: 'comma', requireLast: false }
}
],
'space-before-function-paren': 'off',
'@typescript-eslint/space-before-function-paren': [
'error',
{ named: 'never' }
]
}
};