@liutsing/eslint-config-typescript
eslint config used by
TypeScript
app of MapleImage
Usage
npm install @liutsing/eslint-config-typescript -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-typescript',
}
- 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-typescript',
}
- Run eslint on all the SCSS files etc in your project:
npx eslint . --ext .ts