yandongxu / eslint-config-vue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

Setup

pnpm i @yandongxu/eslint-config-vue eslint typescript -D

Usage

/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution")

/**
 * @type {import("eslint").Linter.Config}
 */
module.exports = {
  extends: [
    // ... other configs
    "@yandongxu/eslint-config-vue"
    "@yandongxu/eslint-config-prettier"
  ],
  rules: {
    'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
    'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  },
  parserOptions: {
    ecmaVersion: 'latest',
  },
}

About


Languages

Language:JavaScript 100.0%