forked from nandorojo/swr-firestore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
41 lines (41 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
module.exports = {
env: {
'es6': true,
'node': true,
'jest/globals': true,
},
extends: [
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:jest/recommended',
'plugin:react-hooks/recommended'
],
parser: '@typescript-eslint/parser',
ignorePatterns: [
'/lib/**/*', // Ignore built files.
'/node_modules/**/*', // Ignore built files.
],
plugins: ['@typescript-eslint', 'import'],
rules: {
'quotes': ['error', 'single', 'avoid-escape'],
'indent': ['error', 2, { 'SwitchCase': 1 }],
'max-len': ['error', { code: 120 }],
'object-curly-spacing': ['error', 'always'],
'space-before-function-paren': [
'error',
{ anonymous: 'always', named: 'never', asyncArrow: 'always' },
],
'valid-jsdoc': ['off'],
'require-jsdoc': ['off'],
'semi': 'off',
'@typescript-eslint/semi': ['error'],
'no-unused-vars': 0 // done through typescript
},
settings: {
jest: {
version: 'latest'
}
}
};