-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
25 lines (25 loc) · 916 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
module.exports = {
extends: ['next/core-web-vitals', 'prettier'],
rules: {
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'no-unused-vars': 'off',
'func-names': ['warn', 'as-needed'],
'max-depth': ['warn', 4],
'max-lines': ['warn', { max: 450, skipBlankLines: true, skipComments: true }],
'prefer-arrow-callback': 'warn',
'prefer-const': 'warn',
'prefer-template': 'warn',
'object-curly-spacing': ['warn', 'always'],
'keyword-spacing': 'warn',
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
'react/no-unescaped-entities': 'warn',
'react/no-children-prop': 'warn',
'react/jsx-fragments': ['warn', 'syntax'],
'react/jsx-no-useless-fragment': 'warn',
'react/jsx-pascal-case': 'warn',
'import/prefer-default-export': 'off',
'@next/next/no-img-element': 'warn',
'@next/next/no-html-link-for-pages': 'warn'
}
}