Created
July 18, 2022 09:50
-
-
Save rtang03/c77cb0e78bf459c3cd07242a70c60ca0 to your computer and use it in GitHub Desktop.
eslint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
parser: '@typescript-eslint/parser', | |
parserOptions: { | |
ecmaVersion: 2021, | |
requireConfigFile: false, | |
sourceType: 'module' | |
}, | |
plugins: ['@typescript-eslint', 'unused-imports', 'simple-import-sort', 'tailwindcss'], | |
extends: ['next', 'next/core-web-vitals', 'plugin:tailwindcss/recommended'], | |
rules: { | |
'react/prop-types': 'off', | |
'react/no-unescaped-entities': 'off', | |
'no-unused-vars': 'off', | |
'unused-imports/no-unused-imports': 'error', | |
'@next/next/no-html-link-for-pages': ['off', '/api/'], | |
'@typescript-eslint/ban-ts-comment': 'warn', | |
'@typescript-eslint/explicit-module-boundary-types': 'off', | |
'@next/next/no-img-element': 'off', | |
'simple-import-sort/imports': 'error', | |
'simple-import-sort/exports': 'error', | |
'jsx-a11y/role-supports-aria-props': 'off', | |
'tailwindcss/classnames-order': 'error', | |
'tailwindcss/no-custom-classname': 'off' | |
}, | |
ignorePatterns: ['/src/generated/types.d.ts'] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment