-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
51 lines (48 loc) · 1.34 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
50
51
/* cSpell:disable */
/* spell-checker: disable */
/* spellchecker: disable */
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: ['next', 'next/core-web-vitals', 'plugin:react/recommended', 'xo'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: { jsx: true },
ecmaVersion: 12,
sourceType: 'module',
project: './tsconfig.json',
},
plugins: ['react', '@typescript-eslint'],
ignorePatterns: ['**/*.js'],
rules: {
// Next.js
'@typescript-eslint/triple-slash-reference': 'off',
'react/react-in-jsx-scope': 'off',
// Prettier handles these
'@typescript-eslint/comma-dangle': 'off',
'react/function-component-definition': 'off',
'react/jsx-tag-spacing': 'off',
'react/no-unescaped-entities': 'off',
'no-mixed-operators': 'off',
'operator-linebreak': 'off',
'@typescript-eslint/naming-convention': 'off',
'quote-props': 'off',
'@typescript-eslint/quotes': 'off',
'react/jsx-curly-newline': 'off',
'@typescript-eslint/indent': 'off',
'@typescript-eslint/object-curly-spacing': 'off',
// Bruh
'@typescript-eslint/ban-types': 'off',
'object-curly-spacing': 'off',
'indent': 'off',
'no-mixed-spaces-and-tabs': 'off',
'no-unused-vars': 'warn',
'capitalized-comments': 'off',
'arrow-body-style': 'warn',
'curly': 'off',
'no-warning-comments': 'off',
},
};