-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
40 lines (39 loc) · 1.51 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
/* eslint-disable @typescript-eslint/no-var-requires */
const base = require('@subsocial/config/eslintrc')
// add override for any (a metric ton of them, initial conversion)
module.exports = {
...base,
rules: {
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'semi': [ 'warn', 'never' ],
'react/prop-types': 'off',
'quotes': [ 'warn', 'single' ],
'no-multi-spaces': 'error',
'space-before-function-paren': [ 'warn', 'always' ],
'non-nullish value': 'off',
'react/display-name': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'react-hooks/rules-of-hooks': 'error', // Checks rules of Hooks
'react-hooks/exhaustive-deps': 'off', // Checks effect dependencies
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/member-delimiter-style': [ 'warn', { 'multiline': { 'delimiter': 'none' } } ],
'prefer-const': 'off',
'jsx-quotes': [ 'warn', 'prefer-single' ],
'object-curly-spacing': [ 'warn', 'always' ],
'array-bracket-spacing': [ 'warn', 'always' ],
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
'argsIgnorePattern': '^_',
'varsIgnorePattern': '^_',
'caughtErrorsIgnorePattern': '^_'
}
],
}
}