generated from muratkeremozcan/react-cypress-ts-vite-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
34 lines (34 loc) · 929 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'chai-friendly', 'no-only-tests'],
extends: [
// 'react-app', // error: ESLint couldn't determine the plugin "@typescript-eslint" uniquely.
'react-app/jest',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
rules: {
'no-only-tests/no-only-tests': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-var-requires': 'off',
'testing-library/no-render-in-setup': 'off',
semi: ['error', 'always'],
indent: ['error', 2, { SwitchCase: 1 }],
quotes: ['error', 'single'],
semi: ['error', 'always'],
eqeqeq: 'error',
'prettier/prettier': [
'off',
{
bracketSpacing: true,
},
],
},
env: {
browser: true,
amd: true,
node: true,
},
};