49 lines
900 B
JavaScript
49 lines
900 B
JavaScript
module.exports = {
|
|
'env': {
|
|
'browser': true,
|
|
'es2021': true,
|
|
'node': true
|
|
},
|
|
'extends': [
|
|
'next/core-web-vitals',
|
|
'eslint:recommended',
|
|
'plugin:react/recommended',
|
|
'plugin:@typescript-eslint/recommended'
|
|
],
|
|
'parser': '@typescript-eslint/parser',
|
|
'parserOptions': {
|
|
'ecmaFeatures': {
|
|
'jsx': true
|
|
},
|
|
'ecmaVersion': 'latest',
|
|
'sourceType': 'module'
|
|
},
|
|
'plugins': [
|
|
'react',
|
|
'@typescript-eslint'
|
|
],
|
|
'rules': {
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'indent': [
|
|
'warn',
|
|
2,
|
|
{ SwitchCase: 1 }
|
|
],
|
|
'linebreak-style': [
|
|
'error',
|
|
'unix'
|
|
],
|
|
'quotes': [
|
|
'warn',
|
|
'single'
|
|
],
|
|
'semi': [
|
|
'error',
|
|
'never'
|
|
],
|
|
'react/react-in-jsx-scope': 'off',
|
|
'no-async-promise-executor': 'off',
|
|
'@typescript-eslint/no-unused-vars': ['warn']
|
|
}
|
|
}
|