-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.js
39 lines (39 loc) · 1.15 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
35
36
37
38
39
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
},
plugins: ['@typescript-eslint', 'rxjs', 'prettier'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
// 'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:rxjs/recommended',
'plugin:prettier/recommended'
],
env: {
browser: true,
commonjs: true,
node: true,
mocha: true,
es6: true,
},
rules: {
curly: 'error',
'rxjs/finnish': 'error',
'rxjs/no-subject-value': 'warn', // demote to warn, as we use it
'@typescript-eslint/naming-convention': [
'error',
{ selector: 'variable', format: ['camelCase', 'UPPER_CASE', 'PascalCase'] },
],
'linebreak-style': ['error', 'unix'],
semi: ['error', 'always'],
'@typescript-eslint/no-unused-vars': ['error', { varsIgnorePattern: '^_', argsIgnorePattern: '^_' }],
'@typescript-eslint/class-name-casing': 'off',
'@typescript-eslint/no-empty-function': 'off',
'prettier/prettier': 'error',
},
};