Skip to content

Commit 5e3a2c4

Browse files
committed
feat(test): configured more of the test rules
1 parent c5ad53b commit 5e3a2c4

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

index.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,18 @@ module.exports = {
2626
}
2727
},
2828
{
29-
files: '**/*-test.js',
29+
files: [
30+
'src/**/stories.js',
31+
'**/*-test.js'
32+
],
33+
globals: {
34+
window: 'readonly',
35+
document: 'readonly'
36+
},
3037
rules: {
31-
'react/prop-types': 'off'
38+
'react/prop-types': 'off',
39+
'react/jsx-props-no-spreading': 'off',
40+
'react/jsx-boolean-value': ['error', 'always']
3241
}
3342
}
3443
]

0 commit comments

Comments
 (0)