/ .eslintrc.js
.eslintrc.js
1 module.exports = { 2 extends: [ 3 'next/core-web-vitals', 4 'prettier', 5 'plugin:import/recommended', 6 'plugin:import/typescript', 7 'plugin:@typescript-eslint/recommended', 8 ], 9 plugins: ['prettier', 'import', 'simple-import-sort', '@typescript-eslint'], 10 rules: { 11 '@typescript-eslint/no-empty-interface': 'off', 12 '@typescript-eslint/no-explicit-any': 'error', 13 '@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true }], 14 'prettier/prettier': 'warn', 15 'react-hooks/rules-of-hooks': 'error', 16 'react-hooks/exhaustive-deps': 'warn', 17 'simple-import-sort/imports': 'error', 18 'simple-import-sort/exports': 'warn', 19 'import/first': 'error', 20 'import/newline-after-import': 'error', 21 'import/no-duplicates': 'error', 22 'import/no-named-as-default': 'error', 23 'import/no-unresolved': 'warn', 24 // disabled as with the static export Image does not make to much sense 25 '@next/next/no-img-element': 'off', 26 'react/self-closing-comp': 'warn', 27 'react/display-name': 'off', 28 }, 29 };