@yandeu/eslint-config

0.0.4 • Public • Published

@yandeu/eslint-config

npm i -D @yandeu/eslint-config
// .eslintrc
{
  "extends": "@yandeu/eslint-config"
}
// package.json
"scripts": {
  "lint": "eslint src --ext .ts,.tsx",
  "lint:fix": "eslint --fix src --ext .ts,.tsx"
}

Configuration

// .eslintrc
{
  "extends": "@yandeu/eslint-config",
  "rules": {
    "my-eslint-rule": "error"
  }
}

TypeScript

Using TypeScript? Maybe you also want to add the rules below:

{
  // no-dupe-class-members ts fix
  "no-dupe-class-members": "off",
  "@typescript-eslint/no-dupe-class-members": ["error"],

  // no-redeclare ts fix
  "no-redeclare": "off",
  "@typescript-eslint/no-redeclare": ["error"]
}

GitHub Actions

- name: Run ESLint
  run: npm run lint

Integrating with Prettier

Install @yandeu/prettier-config.

VSCode

Using VSCode? Install the ESLint Extension.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @yandeu/eslint-config

Weekly Downloads

3

Version

0.0.4

License

none

Unpacked Size

3.42 kB

Total Files

6

Last publish

Collaborators

  • yandeu