2.0.3 • Published 8 months ago

@lehoczky/eslint-config-vue v2.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Eslint Config Vue

npm version

ESLint configuration for Vue projects with TypeScript. Supports prettier by default.

💿 Installation

Create a new project with vite:

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

Install eslint and the config:

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

💻 Usage

With Type Checking

eslint.config.mjs:

import { configLehoczkyVue } from "@lehoczky/eslint-config-vue"

/** @type {import("eslint").Linter.Config[]} */
export default configLehoczkyVue({
  parserOptionsForTypeChecking: {
    projectService: true,
    tsconfigRootDir: import.meta.dirname,
  },
})

See more: typescript-eslint | Linting with Type Information

Without Type Checking

import { configLehoczkyTypescript } from "@lehoczky/eslint-config-typescript"

/** @type {import("eslint").Linter.Config[]} */
export default configLehoczkyVue()

📢 Commands

package.json:

{
  "scripts": {
    "eslint:check": "eslint --max-warnings=0",
    "eslint:fix": "eslint --max-warnings=0 --fix"
  }
}
2.0.3

8 months ago

2.0.2

8 months ago

1.3.0

8 months ago

2.0.1

8 months ago

2.0.0

8 months ago

1.2.6

12 months ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

2 years ago

1.0.0

2 years ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.10

3 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.9

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago