@liutsing/eslint-config
v0.0.11
Published
> eslint config used by `TypeScript` app of MapleImage
Downloads
28
Readme
@liutsing/eslint-config
eslint config used by
TypeScript
app of MapleImage
Usage
npm install @liutsing/eslint-config -D
TypeScript project
- Create a
.eslintrc.js
configuration file in the root of your project with the following content:
module.exports = {
extends: '@liutsing/eslint-config',
}
- Run eslint on all the ts files etc in your project:
npx eslint . --ext .ts
Vue3 + TypeScript projects
- 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
}
- 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"
}
}