Skip to content

Instantly share code, notes, and snippets.

@AhmetEnesKCC
Created March 19, 2023 15:53
Show Gist options
  • Save AhmetEnesKCC/a8417989bd97bc59e8883723b6fc3107 to your computer and use it in GitHub Desktop.
Save AhmetEnesKCC/a8417989bd97bc59e8883723b6fc3107 to your computer and use it in GitHub Desktop.
{
"extends": [
"next",
"eslint:recommended",
"next/core-web-vitals",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"ignorePatterns": ["postcss.config.js", "tailwind.config.js"],
"rules": {
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal"],
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"no-unused-vars": "off",
"no-console": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off"
},
"globals": {
"React": true,
"JSX": true
}
}
@AhmetEnesKCC
Copy link
Author

dep

"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"autoprefixer": "^10.4.8",
"eslint": "^8.23.0",
"eslint-config-next": "13.0.3",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.1",

@AhmetEnesKCC
Copy link
Author

"lint:fix": "eslint --ext=jsx,ts,tsx . --fix",

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