chore(tooling): Configura ESLint e Prettier para padronização do código.
This commit is contained in:
parent
ea40427c82
commit
1ce6628e4a
8
susconecta/.prettierrc.json
Normal file
8
susconecta/.prettierrc.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"printWidth": 80,
|
||||
"tabWidth": 2,
|
||||
"singleQuote": false,
|
||||
"trailingComma": "all",
|
||||
"semi": true,
|
||||
"endOfLine": "auto"
|
||||
}
|
||||
@ -4,7 +4,7 @@ import tseslint from "typescript-eslint";
|
||||
import eslint from "@eslint/js";
|
||||
import nextPlugin from "@next/eslint-plugin-next";
|
||||
import unicornPlugin from "eslint-plugin-unicorn";
|
||||
import prettierConfig from "eslint-config-prettier";
|
||||
import prettierRecommended from "eslint-plugin-prettier/recommended";
|
||||
import { FlatCompat } from "@eslint/eslintrc";
|
||||
import { fileURLToPath } from "url";
|
||||
import { dirname } from "path";
|
||||
@ -52,9 +52,9 @@ const eslintConfig = [
|
||||
...tseslint.configs.recommended.rules,
|
||||
...unicornPlugin.configs.recommended.rules,
|
||||
// Disable noisy unicorn rules
|
||||
"unicorn/prevent-abbreviations": "off",
|
||||
"unicorn/prevent-abbreviations": "warn",
|
||||
"unicorn/filename-case": "off",
|
||||
"unicorn/no-null": "off",
|
||||
"unicorn/no-null": "warn",
|
||||
"unicorn/consistent-function-scoping": "off",
|
||||
"unicorn/no-array-for-each": "off",
|
||||
"unicorn/catch-error-name": "off",
|
||||
@ -81,8 +81,7 @@ const eslintConfig = [
|
||||
"unicorn/prefer-single-call": "off",
|
||||
}
|
||||
},
|
||||
prettierConfig,
|
||||
...compat.extends("next/core-web-vitals"),
|
||||
prettierRecommended,
|
||||
];
|
||||
|
||||
export default eslintConfig;
|
||||
|
||||
@ -7,6 +7,7 @@
|
||||
"build": "next build",
|
||||
"dev": "next dev",
|
||||
"lint": "eslint .",
|
||||
"lint:fix": "eslint . --fix",
|
||||
"start": "next start"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -70,6 +71,7 @@
|
||||
"zod": "3.25.67"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/eslintrc": "^3",
|
||||
"@eslint/js": "^9.36.0",
|
||||
"@tailwindcss/postcss": "^4.1.9",
|
||||
"@types/node": "^22",
|
||||
@ -79,14 +81,14 @@
|
||||
"@typescript-eslint/parser": "^8.45.0",
|
||||
"eslint": "^9.36.0",
|
||||
"eslint-config-next": "^15.5.4",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-prettier": "^5.5.4",
|
||||
"eslint-plugin-unicorn": "^61.0.2",
|
||||
"next": "^15.5.4",
|
||||
"postcss": "^8.5",
|
||||
"tailwindcss": "^4.1.9",
|
||||
"tw-animate-css": "1.3.3",
|
||||
"typescript": "^5",
|
||||
"typescript-eslint": "^8.45.0",
|
||||
"@eslint/eslintrc": "^3"
|
||||
"typescript-eslint": "^8.45.0"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user