-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
49 lines (49 loc) · 1.12 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
40
41
42
43
44
45
46
47
48
49
/** @type {import("eslint").Linter.Config} */
module.exports = {
rules: {
'unicorn/consistent-function-scoping': 'error',
'unicorn/consistent-destructuring': 'error',
'unused-imports/no-unused-imports': 'error',
'react/jsx-no-useless-fragment': 'error',
'unicorn/catch-error-name': 'error',
'react/self-closing-comp': 'error',
'react/react-in-jsx-scope': 'off',
'unicorn/better-regex': 'error',
'unicorn/no-lonely-if': 'error',
'react/jsx-fragments': 'error',
'prettier/prettier': 'error'
},
extends: [
'plugin:perfectionist/recommended-line-length',
'plugin:react-hooks/recommended',
'plugin:react/recommended',
'next/core-web-vitals'
],
ignorePatterns: [
'pnpm-lock.yaml',
'node_modules',
'social.ts',
'public',
'.next',
'out'
],
plugins: [
'@typescript-eslint',
'unused-imports',
'perfectionist',
'prettier',
'unicorn'
],
parserOptions: {
ecmaFeatures: {
jsx: true
},
sourceType: 'module',
ecmaVersion: 12
},
env: {
browser: true,
es2021: true
},
parser: '@typescript-eslint/parser'
};