forked from alexkatz/react-tiny-popover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (38 loc) · 1.14 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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
plugins: ['react-hooks', 'prettier'],
extends: ['react-app', 'airbnb-typescript', 'plugin:prettier/recommended'],
rules: {
'object-curly-spacing': ['warn', 'always'],
'@typescript-eslint/indent': 0,
'@typescript-eslint/no-unused-vars': [
'warn',
{
vars: 'all',
args: 'none',
},
],
'no-debugger': 0, // 1
'no-console': 0, // ['error', { allow: ['warn', 'error'] }],
'no-undefined': 'error',
'no-shadow': 0,
'no-undefined': 0,
'no-param-reassign': 0,
'no-return-assign': 0,
'class-methods-use-this': 0,
'no-constant-condition': ['error'],
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
'import/no-default-export': 1,
'import/no-default-export': 0,
'import/extensions': 0,
'react/destructuring-assignment': 0,
'react/prop-types': 0,
'react/jsx-curly-newline': 0,
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'react/static-property-placement': 0,
},
};