2.0.0 • Published 2 years ago

eslint-config-awzzm v2.0.0

Weekly downloads
18
License
MIT
Repository
github
Last release
2 years ago

⬅️ Back to overview

Base Configuration

npm install --save-dev eslint-config-awzzm
# or
yarn add -D eslint-config-awzzm

Add it to your ESLint configuration:

{
  "extends": ["awzzm"]
}

Most Significant Rules

  • Use double quotes (quotes)
// ✔️ Good
const a = "value"

// ❌ Bad
const b = 'value'
  • Don't use semicolons (semi)
// ✔️ Good
console.log("hi!")

// ❌ Bad
console.log("hi!");
  • Don't use default exports (import/no-default-export)

    Why: 1 and 2

// ✔️ Good
export const sayHello = () => console.log("hello")

// ❌ Bad
export default () => console.log("hello")