1.1.2 • Published 2 months ago

@iconicompany/eslint-config v1.1.2

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
2 months ago

@iconicompany/eslint-config

  • Semi quotes
  • Auto fix for formatting
  • Sorted imports, dangling commas
  • Reasonable defaults, best practices, only one-line of config
  • Style principle: Minimal for reading, stable for diff

Usage

Install

npm install -D eslint @iconicompany/eslint-config

Configure eslint.config.js

import config from "@iconicompany/eslint-config";

export default config;

Add script for package.json

{
  "scripts": {
    "lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.js .",
    "lint:fix": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.js --fix ."
  }
}

Done! 🎉