1.2.5 • Published 16 days ago

@lehoczky/eslint-config-vue v1.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
16 days ago

Eslint Config Vue

npm version

ESLint configuration for Vue projects with TypeScript and prettier.

💿 Installation

Create a new project with vite:

pnpm create vite <app-name> --template vue-ts
cd <app-name>

Install the dependencies for the config:

pnpm add -D eslint prettier @lehoczky/eslint-config-vue

💻 Usage

.eslintrc.cjs:

module.exports = {
  root: true,
  extends: ["@lehoczky/eslint-config-vue"],
}

Example command:

{
  "scripts": {
    "eslint:fix": "eslint . --ext .js,.ts,.vue --max-warnings=0 --fix"
  }
}

🛠 TSConfig

If your tsconfig.json file does not include every TypeScript and vue file in the project, you can create a new tsconfig.eslint.json file and include every file in that.

This config will automatically use tsconfig.eslint.json file if it finds one in the root of your repository:

{
  "extends": "./tsconfig.json",
  "compilerOptions": {
    "allowJs": true
  },
  "include": ["src/**/*.ts", "src/**/*.vue", "./*.ts"]
}
1.2.5

16 days ago

1.2.4

1 month ago

1.2.3

2 months ago

1.2.2

2 months ago

1.2.1

3 months ago

1.2.0

4 months ago

1.1.0

6 months ago

1.0.0

6 months ago

0.0.20

8 months ago

0.0.21

8 months ago

0.0.22

8 months ago

0.0.18

10 months ago

0.0.19

9 months ago

0.0.16

1 year ago

0.0.17

11 months ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.10

2 years ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.9

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago