forked from batoulapps/adhan-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
49 lines (43 loc) · 1.04 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
40
41
42
43
44
45
46
47
48
49
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
project: ['./tsconfig.json'],
sourceType: 'module',
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jest/recommended',
'plugin:jest/style',
'plugin:prettier/recommended',
],
overrides: [
{
files: ['*.js'],
parser: null,
parserOptions: { project: null },
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unnecessary-condition': 'off',
},
},
],
env: {
node: true,
browser: true,
'jest/globals': true,
},
rules: {
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/no-unnecessary-condition': 'warn',
complexity: ['warn', 10],
'max-lines': ['warn', 300],
'max-params': ['warn', 5],
eqeqeq: ['error', 'smart'],
'no-var': 'error',
'prefer-const': 'error',
'object-shorthand': 'error',
},
plugins: ['@typescript-eslint', 'jest'],
};