module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'next/core-web-vitals',
'plugin:react/recommended',
'airbnb',
'eslint-config-prettier',
'plugin:prettier/recommended',
'prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 18,
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint'],
rules: {
'react/jsx-filename-extension': [1, { extensions: ['.ts', '.tsx'] }],
'react/react-in-jsx-scope': 'off',
'react/function-component-definition': 'off',
'react/jsx-props-no-spreading': 'off',
'no-nested-ternary': 'off',
'no-restricted-syntax': 'off',
'consistent-return': 'off',
'default-param-last': 'off',
'react/require-default-props': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': ['error'],
'@next/next/no-img-element': 'off',
'import/no-extraneous-dependencies': 'off',
'react/button-has-type': 'off',
},
};
ESLint Rules
StyleLint Rules