GithubHelp home page GithubHelp logo

eslint-config's Introduction

eslint-config-ted

My Eslint Rules

  • Base on Standard
  • Provide Typescript / Vue / React Support
  • Provide JSON Support

Usage

Default

pnpm i -D eslint eslint-config-ted

Config .eslintrc

{
  "extends": [
    "ted"
  ]
}

TS

pnpm i -D typescript

Config .eslintrc

{
  "extends": [
    "ted",
    "ted/typescript"
  ],
  "parserOptions": {
    "project": [
      './tsconfig.json'
    ]
  }
}

Vue

Config .eslintrc

{
  "extends": [
    "ted",
    "ted/vue"
  ]
}

With TS

Config .eslintrc

{
  "extends": [
    "ted",
    "ted/vue",
    "ted/typescript"
  ],
  "parser": "vue-eslint-parser",
  "parserOptions": {
    "parser": "@typescript-eslint/parser",
    "project": [
      "./tsconfig.json"
    ],
    "extraFileExtensions": [".vue"]
  }
}

Known Issues

  • props type cannot be infered in template expression when not import vue related api

React

Config .eslintrc

{
  "extends": [
    "ted",
    "ted/react"
  ]
}

With TS

Config .eslintrc

{
  "extends": [
    "ted",
    "ted/react",
    "ted/typescript"
  ]
}

Known Issues

When i use with typescript, i can't check .js file?

this because lint conflict with js and ts, right now is not support use both of them.

License

MIT

Inspired by

eslint-config's People

Contributors

renovate[bot] avatar preflower avatar renovate-bot avatar github-actions[bot] avatar

Watchers

Lucian avatar James Cloos avatar  avatar

eslint-config's Issues

Dependency Dashboard

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

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm eslint-config-standard-with-typescript Unavailable

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): update dependency @babel/eslint-parser to ^7.25.1
  • chore(deps): update commitlint monorepo to v19 (major) (@commitlint/cli, @commitlint/config-conventional)
  • chore(deps): update dependency husky to v9
  • fix(deps): update eslint related (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser, eslint, eslint-config-standard-with-typescript, eslint-plugin-n, eslint-plugin-promise)

Detected dependencies

github-actions
.github/workflows/release.yml
  • actions/checkout v4
  • actions/setup-node v4
npm
package.json
  • @typescript-eslint/eslint-plugin ^6.21.0
  • @typescript-eslint/parser ^6.21.0
  • eslint-config-standard ^17.1.0
  • eslint-config-standard-with-typescript ^39.1.1
  • eslint-plugin-import ^2.29.1
  • eslint-plugin-jsonc ^2.16.0
  • eslint-plugin-n ^16.6.2
  • eslint-plugin-promise ^6.6.0
  • eslint-plugin-react ^7.35.0
  • eslint-plugin-react-hooks ^4.6.2
  • eslint-plugin-vue ^9.27.0
  • jsonc-eslint-parser ^2.4.0
  • vue-eslint-parser ^9.4.3
  • @babel/eslint-parser ^7.24.8
  • @changesets/cli ^2.27.7
  • @commitlint/cli ^18.6.1
  • @commitlint/config-conventional ^18.6.3
  • @types/react ^18.3.3
  • eslint ^8.57.0
  • husky ^8.0.3
  • react ^18.3.1
  • typescript ^5.5.4
  • vue ^3.4.34
  • eslint *
  • typescript *

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