0.5.0 • Published 2 years ago

@luooooob/eslint-config v0.5.0

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

@luooooob/eslint-config

My shareable ESLint configuration. Inspired by https://github.com/antfu/eslint-config

Feature

  1. Out of the box.
  2. Support javascript, typescript, javascriptreact, typescriptreact, vue and json, package.json, tsconfig.json files.

Usage

Install

npm i -D @luooooob/eslint-config

Config .eslintrc

{
  "extends": "@luooooob"
}

Add script for package.json

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

Config editor

I recommend using eslint as the default formatter of your editor. For example, if you are using VS Code, create a .vscode/settings.json:

{
  "editor.formatOnSave": true,
  "eslint.format.enable": true,
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    "vue",
    "json"
  ],
  "[javascript]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint",
  },
  "[javascriptreact]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint",
  },
  "[typescript]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint",
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint",
  },
  "[vue]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint",
  },
  "[json]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint",
  },
}
0.5.0

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago