0.0.10 • Published 8 months ago
@ecar/eslint-config v0.0.10
@ecar/eslint-config
eslint config used by
TypeScript
app of ecar
Usage
npm install @ecar/eslint-config -D
TypeScript project
- Create a
.eslintrc.js
configuration file in the root of your project with the following content:
module.exports = {
extends: '@ecar/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: '@ecar/eslint-config',
}
- Run eslint on all the SCSS files etc in your project:
npx eslint . --ext .ts
0.0.10
8 months ago