filmov
tv
ESLint, TypeScript, and Custom Scripts Demystified! 💥

Показать описание
🔗 Stay Connected:
Follow me on:
💲 Venmo: @Ryan-Pags
My ESLint config
{
"extends": ["next/core-web-vitals"],
"rules": {
"quotes": ["error", "single", { "allowTemplateLiterals": true, "avoidEscape": true }],
"jsx-quotes": ["error", "prefer-double"],
"linebreak-style": ["error", "unix"],
"no-unused-vars": ["error"],
"no-console": ["warn", { "allow": ["error"] }],
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [1, { "extensions": [".ts", ".tsx"] }],
"react/jsx-props-no-spreading": "off",
"next/no-img-element": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["hrefLeft", "hrefRight"],
"aspects": ["invalidHref", "preferButton"]
}
],
"react-hooks/exhaustive-deps": "off"
}
}