forked from Harshita0008/Merchant-Form
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
19 lines (18 loc) · 896 Bytes
/
Copy path.eslintrc.json
File metadata and controls
19 lines (18 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"extends": ["next", "next/core-web-vitals", "plugin:tailwindcss/recommended"],
"rules": {
// General ESLint Rules
"no-console": "warn", // Avoids using console.log, console.error, etc.
"no-unused-vars": "warn", // Warns about unused variables
"no-undef": "error", // Disallows usage of undeclared variables
"no-extra-semi": "error", // Disallows unnecessary semicolons
"semi": ["error", "never"], // Requires or disallows semicolons instead of ASI
"quotes": ["error", "single"], // Enforces single quotes
"no-multiple-empty-lines": ["error", { "max": 1 }], // Disallows multiple empty lines
"no-var": "error", // Disallows usage of var keyword
"prefer-const": "error", // Requires usage of const declaration when variable is not reassigned
// React Rules
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "off"
}
}