-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
39 lines (38 loc) · 1005 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
37
38
39
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module'
},
extends: [
'standard' // Out of the box StandardJS rules
],
plugins: [
'@typescript-eslint', // Let's us override rules below.
'import',
],
env: {
es6: true,
node: true,
jest: true
},
rules: {
// Prevent unused vars errors when variables are only used as TS types
// see: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md#options
'@typescript-eslint/no-unused-vars': [
'error',
{
vars: 'all',
args: 'after-used',
ignoreRestSiblings: false
}
],
'@typescript-eslint/interface-name-prefix': ['error', 'always'],
camelcase: 'error',
'import/no-default-export': 'error',
'import/order': 'error',
'no-trailing-spaces': 'error',
'no-unused-vars': 'off',
quotes: ['error', 'single']
}
}