-
Notifications
You must be signed in to change notification settings - Fork 28
/
.eslintrc.js
33 lines (32 loc) · 914 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
const OFF = 0;
const WARNING = 1;
const ERROR = 2;
module.exports = {
env: {
browser: true,
es6: true
},
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended'
],
parserOptions: {},
plugins: ['@typescript-eslint'],
rules: {
quotes: [ERROR, 'single'],
semi: [ERROR, 'always'],
'space-infix-ops': ERROR,
'prefer-spread': ERROR,
'no-multi-spaces': ERROR,
'class-methods-use-this': WARNING,
'arrow-parens': [ERROR, 'as-needed'],
'@typescript-eslint/no-unused-vars': ERROR,
'@typescript-eslint/no-explicit-any': OFF,
'@typescript-eslint/explicit-function-return-type': OFF,
'@typescript-eslint/explicit-member-accessibility': OFF,
'@typescript-eslint/no-namespace': OFF,
'@typescript-eslint/explicit-module-boundary-types': OFF
}
};