@ecar/eslint-config
v0.0.10
Published
> eslint config used by `TypeScript` app of ecar
Downloads
5
Readme
@ecar/eslint-config
eslint config used by
TypeScriptapp of ecar
Usage
npm install @ecar/eslint-config -DTypeScript project
- Create a
.eslintrc.jsconfiguration 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 .tsVue3 + TypeScript projects
- Create a
.eslintrc.cjsconfiguration 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