Last active
February 27, 2023 10:22
-
-
Save sek-consulting/92aadf7d828e37205892266757c43802 to your computer and use it in GitHub Desktop.
current .prettier and .eslint settings for my next.js projects
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
{ | |
"extends": ["next/core-web-vitals", "prettier", "plugin:tailwindcss/recommended"], | |
"plugins": ["import", "tailwindcss"], | |
"rules": { | |
"comma-dangle": ["error", "never"], | |
"import/order": [ | |
"error", | |
{ | |
"groups": ["builtin", "external", "internal"], | |
"pathGroups": [ | |
{ | |
"pattern": "react", | |
"group": "external", | |
"position": "before" | |
} | |
], | |
"pathGroupsExcludedImportTypes": ["react"], | |
"newlines-between": "always", | |
"alphabetize": { | |
"order": "asc", | |
"caseInsensitive": true | |
} | |
} | |
], | |
"tailwindcss/no-custom-classname": "off" | |
}, | |
"settings": { | |
"tailwindcss": { | |
"callees": ["cn"] | |
} | |
} | |
} |
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
{ | |
"endOfLine": "lf", | |
"singleQuote": false, | |
"tabWidth": 2, | |
"trailingComma": "none", | |
"printWidth": 100, | |
"semi": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
npm i -D eslint-config-next eslint-config-prettier eslint-plugin-import eslint-plugin-react eslint-plugin-tailwindcss