ect
@sxzz/eslint-config-ts
npm i @sxzz/eslint-config-ts
ect

@sxzz/eslint-config-ts

A ESLint config preset.

by 三咲智子

2.4.4 (see all)License:MITTypeScript:Not Found
npm i @sxzz/eslint-config-ts
Readme

@sxzz/eslint-config

ESLint config for JavaScript, TypeScript, Vue 2, Vue 3, Prettier.

Forked from antfu/eslint-config

Usage

pnpm i -D @sxzz/eslint-config-basic # JavaScript only
# Or yarn add -D / npm install -D
pnpm i -D @sxzz/eslint-config-ts # JavaScript and TypeScript
pnpm i -D @sxzz/eslint-config-vue # JavaScript, TypeScript and Vue 2/3 (Auto detect)
pnpm i -D @sxzz/eslint-config-prettier # Prettier only
pnpm i -D @sxzz/eslint-config # JavaScript, TypeScript, Vue 2/3 and Prettier

Quick start

Vue 3

pnpm i -D @sxzz/eslint-config
// .eslintrc.js
module.exports = {
  root: true,
  extends: ['@sxzz/eslint-config'],
  rules: {
    // Your custom rules
  },
}
// .prettierrc
{
  "singleQuote": true,
  "semi": true,
  "arrowParens": "avoid",
  "jsxSingleQuote": true,
  "endOfLine": "lf",
  "trailingComma": "es5"
}

VSCode

// settings.json
{
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    "html",
    "vue",
    "json",
    "json5",
    "jsonc",
    "yaml"
  ],
  "eslint.probe": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    "html",
    "vue",
    "json",
    "json5",
    "jsonc",
    "yaml"
  ]
}

Sponsors

License

MIT License © 2021-PRESENT 三咲智子

Downloads/wk

531

GitHub Stars

23

LAST COMMIT

5mos ago

MAINTAINERS

1

CONTRIBUTORS

6

OPEN ISSUES

1

OPEN PRs

0
VersionTagPublished
2.4.4
latest
9d ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate