This package has been deprecated

Author message:

WARNING: This project has been renamed to volar-service-eslint. Install using volar-service-eslint instead.

@volar-plugins/eslint
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

@volar-plugins/eslint

Volar plugin for ESLint.

Use ESLint with Volar language server to have better performance and accuracy.

Please note that you should disable ESLint VSCode Extension when use this plugin.

Example: https://github.com/DrJume/vue-volar-eslint

Usage

package.json

{
	"devDependencies": {
		"@volar-plugins/eslint": "latest",
		"eslint": "latest"
	}
}

volar.config.js

const baseConfig = require('./.eslintrc.cjs'); // load your project eslint config

module.exports = {

	plugins: [

		require('@volar-plugins/eslint').default(program => ({
			...baseConfig,
			ignorePatterns: ['**/*.vue.*'], // ignore virtual files: *.vue.ts, *.vue.html, *.vue.css
			parserOptions: {
				...baseConfig.parserOptions,
				programs: [program], // replace eslint typescript program
			},
		})),
	],
};

Readme

Keywords

none

Package Sidebar

Install

npm i @volar-plugins/eslint

Weekly Downloads

822

Version

2.0.0

License

MIT

Unpacked Size

5.8 kB

Total Files

4

Last publish

Collaborators

  • johnsoncodehk
  • patarapolw