npm.io
2.0.0 • Published 4 years ago

eslint-config-awzzm

Licence
MIT
Version
2.0.0
Deps
4
Size
22 kB
Vulns
0
Weekly
0

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")