-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbase.js
43 lines (43 loc) · 1.18 KB
/
base.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
module.exports = {
plugins: ['functional'],
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prefer-type-alias/recommended',
'plugin:import/recommended',
'plugin:functional/recommended',
'plugin:functional/stylistic',
'prettier',
'turbo',
],
rules: {
curly: 'warn',
eqeqeq: 'warn',
'prefer-template': 'warn',
'func-style': ['warn', 'declaration'],
'no-negated-condition': 'warn',
'no-else-return': 'warn',
'no-nested-ternary': 'warn',
'import/order': 'warn',
'import/first': 'warn',
'import/exports-last': 'warn',
'functional/no-class': 'error',
'functional/no-return-void': 'off',
'functional/no-expression-statement': 'off',
'functional/functional-parameters': 'off',
'functional/no-mixed-type': 'off',
'turbo/no-undeclared-env-vars': 'off',
},
overrides: [
{
files: ['**/*.js'],
rules: {
'functional/no-expression-statement': 'off',
'functional/immutable-data': 'off',
'@typescript-eslint/no-var-requires': 'off',
},
},
],
};