Coder Social home page Coder Social logo

long-woo / eslint-config-vue Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 83 KB

🔧 一个 Vue3 的 ESLint 配置,使用 Prettier 格式化代码。

Home Page: https://www.npmjs.com/package/@longwoo/eslint-config-vue

JavaScript 100.00%
eslint eslint-prettier eslint-typescript eslint-vue

eslint-config-vue's Introduction

eslint-config-vue

🔧 一个 Vue 的 ESLint 配置,使用 Prettier 格式化代码。

如果只需要对 TypeScript 的代码进行格式化,可以使用 @loongwoo/eslint-config-typescript-prettier

使用

1.安装依赖

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

# or
bun add -D @loongwoo/eslint-config-vue

# or
yarn add -D @loongwoo/eslint-config-vue

# or
npm install --save-dev @loongwoo/eslint-config-vue

2.配置 ESLint

{
  "extends": "@loongwoo/vue"
}

3.打开 package.json 文件,在 scripts 配置中添加 eslint 命令,运行 ESLint 校验代码。

{
  "scripts": {
    "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
  }
}

eslint-config-vue's People

Contributors

long-woo avatar renovate[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

eslint-config-vue's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @vue/eslint-config-prettier ^9.0.0
  • @vue/eslint-config-typescript ^13.0.0
  • eslint-plugin-vue ^9.27.0
  • eslint ^9.6.0
  • prettier ^3.3.2
  • typescript ^5.5.3
  • eslint ^9.6.0
  • prettier ^3.3.1
  • typescript ^5.5.3

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.