-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.js
39 lines (39 loc) · 1.08 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
module.exports = {
extends: [
require.resolve('@hover/javascript/eslint'),
require.resolve('@hover/javascript/eslint/strict'),
],
ignorePatterns: ['dom-testing-library.js', 'rollup.input.js'],
parserOptions: {
tsconfigRootDir: __dirname,
project: ['tsconfig.eslint.json', 'tsconfig.json'],
},
rules: {
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'no-restricted-syntax': 'off',
'no-underscore-dangle': ['error', {allow: ['__regex', '__flags']}],
},
overrides: [
{
files: ['playwright-test/*.+(js|ts)'],
rules: {
'import/no-extraneous-dependencies': ['error', {devDependencies: true}],
},
},
{
files: ['test/fixture/**/*.+(js|ts)'],
rules: {
'jest/no-done-callback': 'off',
},
},
{
files: ['lib/fixture/**/*.+(js|ts)'],
rules: {
'no-empty-pattern': 'off',
'no-underscore-dangle': ['error', {allow: ['__testingLibraryReviver']}],
},
},
],
}