1.0.4 • Published 9 months ago
@codewithhridoy/eslint-config v1.0.4
📦 @codewithhridoy/eslint-config
📥 Installation
#If you use npm
npm install --save-dev @codewithhridoy/eslint-config
#If you use yarn
yarn add -D @codewithhridoy/eslint-config
#If you use pnpm (preferred)
pnpm add -D @codewithhridoy/eslint-config
🔩 Usage
// .eslintrc.js
module.exports = {
extends: ['@codewithhridoy/eslint-config'],
};
⚙️ Rules overview
Rule | Style | Type | Documentation |
---|---|---|---|
linebreak-style | Unix | 🚫 Error | Documentation |
prettier/prettier | Warn | ⚠️ Warning | External rule |
quotes | Single | 🚫 Error | Documentation |
semi | Never | ⚠️ Warning | Documentation |
newline-before-return | Error | 🚫 Error | Documentation |
import/newline-after-import | - | 🚫 Error | External rule |
comma-dangle | Documentation | 🚫 Error | Documentation |
no-eval | Error | 🚫 Error | Documentation |
func-names | As-needed | 🚫 Error | Documentation |
camelcase | Documentation | ⚠️ Warning | Documentation |
no-unused-vars | Documentation | ⚠️ Warning | Documentation |
import/order | - | ⚠️ Warning | External rule |
prefer-arrow-callback | Error | 🚫 Error | Documentation |
block-spacing | Error | 🚫 Error | Documentation |
comma-spacing | Error | 🚫 Error | Documentation |
keyword-spacing | Error | 🚫 Error | Documentation |
space-infix-ops | Error | 🚫 Error | Documentation |
space-unary-ops | Error | 🚫 Error | Documentation |
brace-style | Error | 🚫 Error | Documentation |
object-curly-spacing | Always | 🚫 Error | Documentation |
space-before-function-paren | Documentation | 🚫 Error | Documentation |
space-in-parens | Never | 🚫 Error | Documentation |
array-bracket-spacing | Never | 🚫 Error | Documentation |
template-curly-spacing | Never | 🚫 Error | Documentation |
computed-property-spacing | Never | 🚫 Error | Documentation |
no-use-before-define | Documentation | 🚫 Error | Documentation |
no-label-var | Error | 🚫 Error | Documentation |
no-undef | Error | 🚫 Error | Documentation |
no-undefined | Off | 💡 Disabled | Documentation |
complexity | 20 | ⚠️ Warning | Documentation |
no-alert | Error | 🚫 Error | Documentation |
require-await | Off | 💡 Disabled | Documentation |
yoda | Error | 🚫 Error | Documentation |
no-empty | Error | 🚫 Error | Documentation |
no-extra-semi | Error | 🚫 Error | Documentation |
valid-typeof | Documentation | 🚫 Error | Documentation |
jsx-quotes | Prefer-double | 💡 Disabled | Documentation |
unicode-bom | Never | 🚫 Error | Documentation |
no-process-env | Off | 💡 Disabled | Documentation |
no-process-exit | Off | 💡 Disabled | Documentation |
global-require | Error | 🚫 Error | Documentation |