@liutsing/eslint-config

0.0.11 • Public • Published

@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"
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @liutsing/eslint-config

Weekly Downloads

2

Version

0.0.11

License

MIT

Unpacked Size

18.1 kB

Total Files

4

Last publish

Collaborators

  • liutsing-luo