-
Notifications
You must be signed in to change notification settings - Fork 205
/
Copy path.eslintrc.js
33 lines (32 loc) · 828 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
// TODO: figure out why import/no-unresolved doesn't work on windows...
const isWindows =
process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE)
module.exports = {
extends: ['kentcdodds', 'kentcdodds/jest'],
rules: {
'no-console': 'off',
'import/no-cycle': 'off',
'import/no-extraneous-dependencies': 'off',
'babel/new-cap': 'off',
'require-await': 'warn',
'import/no-unresolved': isWindows ? 'off' : 'error',
},
overrides: [
{
files: ['**/__tests__/**'],
settings: {
'import/resolver': {
jest: {
jestConfigFile: require.resolve('./test/jest.config.projects.js'),
},
},
},
},
{
files: ['**/__tests__/*.exercise.*'],
rules: {
'jest/prefer-todo': 'off',
},
},
],
}