Skip to content

Instantly share code, notes, and snippets.

@rtang03
Created July 18, 2022 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtang03/c77cb0e78bf459c3cd07242a70c60ca0 to your computer and use it in GitHub Desktop.
Save rtang03/c77cb0e78bf459c3cd07242a70c60ca0 to your computer and use it in GitHub Desktop.
eslint
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