-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
.eslintrc.js
35 lines (35 loc) · 861 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
module.exports = {
extends: [
'@remix-run/eslint-config',
'@remix-run/eslint-config/jest-testing-library',
'react-app',
'prettier',
],
plugins: ['prettier'],
overrides: [
{
files: ['*.ts', '*.tsx', '*.js', 'json'],
parser: '@typescript-eslint/parser',
},
{
files: ['e2e/*.spec.ts'],
rules: {
// NOTE: testing-library and playwright have the same functions (e.g. getByRole), so disable rules for testing-library.
'testing-library/prefer-screen-queries': 'off',
},
},
],
rules: {
'react/jsx-wrap-multilines': 'off',
'jsx-a11y/anchor-has-content': 'off',
'comma-dangle': ['warn', 'always-multiline'],
quotes: ['warn', 'single'],
semi: ['warn', 'never'],
'prettier/prettier': [
'error',
{
singleQuote: true,
},
],
},
}