0.0.11 • Published 2 years ago

@liutsing/eslint-config v0.0.11

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

@liutsing/eslint-config

eslint config used by TypeScript app of MapleImage

Usage

npm install @liutsing/eslint-config -D

TypeScript project

  1. Create a .eslintrc.js configuration file in the root of your project with the following content:
module.exports = {
  extends: '@liutsing/eslint-config',
}
  1. Run eslint on all the ts files etc in your project:
npx eslint . --ext .ts

Vue3 + TypeScript projects

  1. Create a .eslintrc.cjs configuration file in the root of your project with the following content:
module.exports = {
  extends: '@liutsing/eslint-config',
  // ignorePatterns: [], or add .eslintignore file
}
  1. Run eslint on all the SCSS files etc in your project:
npx eslint . --ext .ts

Add script for package.json

For example:

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