Created
November 28, 2023 16:43
-
-
Save twsau/2c66a6e2485b0115d9b13aaec2d14533 to your computer and use it in GitHub Desktop.
next lint template
This file contains hidden or 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
Show hidden characters
{ | |
"parser": "@typescript-eslint/parser", | |
"plugins": ["react", "@typescript-eslint", "autofix", "react-hooks"], | |
"extends": ["next/core-web-vitals", "plugin:tailwindcss/recommended"], | |
"rules": { | |
"@typescript-eslint/consistent-type-imports": [ | |
"error", | |
{ | |
"prefer": "type-imports" | |
} | |
], | |
"arrow-body-style": ["error", "as-needed"], | |
"autofix/no-unused-vars": [ | |
"error", | |
{ | |
"argsIgnorePattern": "^_", | |
"ignoreRestSiblings": true, | |
"destructuredArrayIgnorePattern": "^_" | |
} | |
], | |
"import/order": [ | |
"error", | |
{ | |
"groups": [ | |
"builtin", | |
"external", | |
"parent", | |
"sibling", | |
"index", | |
"object", | |
"type" | |
], | |
"pathGroups": [ | |
{ | |
"pattern": "@/**/**", | |
"group": "parent", | |
"position": "before" | |
} | |
], | |
"alphabetize": { "order": "asc" } | |
} | |
], | |
"no-restricted-imports": [ | |
"error", | |
{ | |
"patterns": ["../"] | |
} | |
], | |
"react-hooks/exhaustive-deps": "error", | |
"react/self-closing-comp": [ | |
"error", | |
{ | |
"component": true, | |
"html": true | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment