0.3.0 • Published 5 months ago

eslint-config-artisan v0.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

eslint-config-artisan

An opinionated ESLint configuration for artisans

Overview

This configuration is based on @antfu/eslint-config with some notable differences.

  • Single quotes, but allow uninterpolated template literals for consistency
  • Comma-delimited properties for object-like type definitions
  • Use type and interface interchangeably for type definitions
  • Braces are not required
  • Single line braces are allowed
  • Parenthesis for arrow functions are optional

How to use it

Install the package in your project.

# npm
npm i -D eslint-config-artisan

# pnpm
pnpm add -D eslint-config-artisan

# yarn
yarn add -D eslint-config-artisan

Add it to your .eslintrc file.

{
  "extends": "artisan"
}

Add some scripts to your package.json.

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint --fix ."
  }
}
0.3.0

5 months ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.1

1 year ago