Skip to content

Instantly share code, notes, and snippets.

@sek-consulting
Last active February 27, 2023 10:22
Show Gist options
  • Save sek-consulting/92aadf7d828e37205892266757c43802 to your computer and use it in GitHub Desktop.
Save sek-consulting/92aadf7d828e37205892266757c43802 to your computer and use it in GitHub Desktop.
current .prettier and .eslint settings for my next.js projects
{
"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"]
}
}
}
{
"endOfLine": "lf",
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "none",
"printWidth": 100,
"semi": false
}
@sek-consulting
Copy link
Author

npm i -D eslint-config-next eslint-config-prettier eslint-plugin-import eslint-plugin-react eslint-plugin-tailwindcss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment