-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
46 lines (44 loc) · 1.13 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
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'next',
'next/core-web-vitals',
'plugin:react/recommended',
'xo',
'xo-typescript',
'xo-react',
'plugin:eslint-plugin-next-on-pages/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {jsx: true},
ecmaVersion: 12,
sourceType: 'module',
project: './tsconfig.json',
},
plugins: ['react', '@typescript-eslint', 'eslint-plugin-next-on-pages'],
ignorePatterns: ['**/*.js'],
rules: {
// Next.js
'@typescript-eslint/triple-slash-reference': 'off',
'react/react-in-jsx-scope': 'off',
// Doesn't work with next zero js
'@next/next/no-img-element': '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',
},
};