Giter Site home page Giter Site logo

long-woo / eslint-config-typescript-prettier Goto Github PK

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

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

Home Page: https://www.npmjs.com/package/@loongwoo/eslint-config-typescript-prettier

JavaScript 100.00%
eslint eslint-prettier eslint-typescript

eslint-config-typescript-prettier's Introduction

eslint-config-typescript-prettier

🔧 ESLint configuration for TypeScript, using Prettier to format code.

If you need to format Vue code, you can use @loongwoo/eslint-config-vue.

use

  1. Install dependencies
pnpm add -D @loongwoo/eslint-config-typescript-prettier

#or
yarn add -D @loongwoo/eslint-config-typescript-prettier

# or
npm install --save-dev @loongwoo/eslint-config-typescript-prettier
  1. Configure ESLint
import tsPrettier from '@loongwoo/eslint-config-typescript-prettier';

/** @type {import('@typescript-eslint/utils').TSESLint.FlatConfig.ConfigFile} */
export default [
  ...tsPrettier,
  {
    files: ['*.ts', '*.tsx'],
    ignores: ['src/vite-env.d.ts'],
  },
];
  1. Open the package.json file and add the eslint command in the scripts configuration.
{
   "scripts": {
     "lint": "eslint . --fix"
   }
}

eslint-config-typescript-prettier's People

Contributors

long-woo avatar renovate[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

eslint-config-typescript-prettier'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
  • @eslint/js ^9.3.0
  • eslint-config-prettier ^9.1.0
  • eslint-plugin-prettier ^5.1.3
  • typescript-eslint 8.3.0
  • eslint ^9.3.0
  • prettier ^3.2.5
  • typescript ^5.4.5
  • eslint ^9.0.0
  • prettier ^3.2.5
  • typescript ^5.4.5

  • 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.