forked from leather-io/desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
36 lines (35 loc) · 1.07 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
module.exports = {
root: true,
extends: ['@stacks/eslint-config', 'plugin:react-hooks/recommended'],
plugins: ['react'],
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json',
ecmaVersion: 2019,
sourceType: 'module',
createDefaultProgram: true,
},
rules: {
'@typescript-eslint/no-unsafe-return': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-unsafe-member-access': 0,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/no-unsafe-call': 0,
'@typescript-eslint/unbound-method': 0,
'no-warning-comments': ['warn', { terms: ['SECURITY'], location: 'anywhere' }],
'react/self-closing-comp': [
'error',
{
component: true,
html: true,
},
],
'import/no-unresolved': 0,
'import/no-mutable-exports': ['error'],
'import/no-useless-path-segments': ['error'],
'import/first': ['error'],
'import/no-duplicates': ['error'],
'import/no-default-export': ['error'],
},
};