-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
44 lines (44 loc) · 967 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
36
37
38
39
40
41
42
43
44
/*eslint-env node*/
const OFF = 0
const ERROR = 2
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
'jest/globals': true
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'next/core-web-vitals',
'plugin:@typescript-eslint/recommended',
'plugin:jest/recommended',
'plugin:jest/style',
'plugin:storybook/recommended'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 12,
sourceType: 'module'
},
plugins: [
'react',
'@typescript-eslint',
'jest'
],
rules: {
'indent': [ERROR, 2],
'linebreak-style': [ERROR, 'unix'],
'quotes': [ERROR, 'single'],
'semi': [ERROR, 'never'],
'react/prop-types': [OFF],
'@typescript-eslint/no-empty-function': [OFF],
'@typescript-eslint/ban-ts-comment': [OFF],
'jest/no-standalone-expect': [OFF],
}
}