32 lines
648 B
JavaScript
32 lines
648 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
amd: true,
|
|
node: true,
|
|
es6: true,
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:jsx-a11y/recommended',
|
|
'plugin:prettier/recommended',
|
|
'next',
|
|
'next/core-web-vitals',
|
|
],
|
|
rules: {
|
|
'prettier/prettier': 'error',
|
|
'react/react-in-jsx-scope': 'off',
|
|
'jsx-a11y/anchor-is-valid': [
|
|
'error',
|
|
{
|
|
components: ['Link'],
|
|
specialLink: ['hrefLeft', 'hrefRight'],
|
|
aspects: ['invalidHref', 'preferButton'],
|
|
},
|
|
],
|
|
'react/prop-types': 0,
|
|
'no-unused-vars': 0,
|
|
'react/no-unescaped-entities': 0,
|
|
},
|
|
}
|