-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
42 lines (41 loc) · 1009 Bytes
/
.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
42
const path = require('path')
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'jest', 'react'],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'airbnb-typescript',
'plugin:jest/recommended',
'prettier',
'prettier/@typescript-eslint',
'prettier/react',
],
globals: {
window: true,
document: true,
},
env: {
'jest/globals': true,
},
rules: {
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/prefer-to-have-length': 'warn',
'jest/valid-expect': 'error',
'react/prop-types': 0,
},
settings: {
'import/resolver': {
alias: {
map: [
['~components', path.join(__dirname, 'src/components')],
['~pages', path.join(__dirname, 'src/pages')],
],
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
},
},
},
}