GithubHelp home page GithubHelp logo

jimmy-guzman / eslint-config-jimmy-guzman Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 921 KB

๐Ÿšจ An opinionated ESLint configuration that targets typescript, javascript, react and jest/vitest and testing-library

License: MIT License

Shell 0.42% JavaScript 4.42% TypeScript 95.17%
eslint eslint-rules eslintconfig jest react testing-library typescript vitest

eslint-config-jimmy-guzman's People

Contributors

jimmy-guzman avatar renovate-bot avatar renovate[bot] avatar semantic-release-bot avatar

Watchers

 avatar  avatar

eslint-config-jimmy-guzman's Issues

Do not enforce keys order


name: ๐Ÿ’ก Feature Request
about: I have a suggestion (and might want to implement myself ๐Ÿ™‚)!


Describe the feature you'd like:

Suggested implementation:

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

'dot-notation' should be false for TypeScript files

  • eslint-config-jimmy-guzman version:
  • eslint version:
  • typescript version:
  • node version:

Relevant code or config:

const your => code => here

What you did:

What happened:

Reproduction:

Problem description:

Suggested solution:

relax explicit-function-return-type

Describe the feature you'd like:

explicit-function-return-type can be very annoying and a lot of return types are inferred already. This also loses value when a function is not being exported. Also explicit-module-boundary-types is already turned and is enough.

Suggested implementation:

'@typescript-eslint/explicit-function-return-type': 'off'

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

disable no-use-before-define for typescript

  • eslint-config-jimmy-guzman version:
  • eslint version:
  • typescript version:
  • node version:

Relevant code or config:

const your => code => here

What you did:

What happened:

Reproduction:

Problem description:

Suggested solution:

no-confusing-void-expression conflicts with prettier

  • eslint-config-jimmy-guzman version: 1.0.0
  • eslint version: 8.2.0
  • typescript version: 4.5.0
  • node version: 16

Relevant code or config:

'@typescript-eslint/no-confusing-void-expression': 'error'

What you did:

What happened:

Reproduction:

Problem description:

Suggested solution:

  '@typescript-eslint/no-confusing-void-expression': [
    'error',
    { ignoreArrowShorthand: true, ignoreVoidOperator: false },
  ],

dependencies should not be pinned

  • eslint-config-jimmy-guzman version: 1.2.1
  • eslint version: 8.3.0
  • typescript version: 4.5.2
  • node version: 14

Relevant code or config:

  "dependencies": {
    "@typescript-eslint/eslint-plugin": "5.3.1",
    "@typescript-eslint/parser": "5.3.1",
    "eslint-config-prettier": "8.3.0",
    "eslint-plugin-import": "2.25.3",
    "eslint-plugin-jest": "25.2.4",
    "eslint-plugin-jsx-a11y": "6.5.1",
    "eslint-plugin-react": "7.27.0",
    "eslint-plugin-react-hooks": "4.3.0"
  },

What you did:

What happened:

Reproduction:

Problem description:

Suggested solution:

  "dependencies": {
    "@typescript-eslint/eslint-plugin": "^5.3.1",
    "@typescript-eslint/parser": "^5.3.1",
    "eslint-config-prettier": "^8.3.0",
    "eslint-plugin-import": "^2.25.3",
    "eslint-plugin-jest": "^25.2.4",
    "eslint-plugin-jsx-a11y": "^6.5.1",
    "eslint-plugin-react": "^7.27.0",
    "eslint-plugin-react-hooks": "^4.3.0"
  },

Enable consistent type imports and exports and add new rules

Describe the feature you'd like:

Enable

  • consistent-type-imports
  • consistent-type-exports

Add

  • no-duplicate-enum-values
  • consistent-generic-constructor

Suggested implementation:

  '@typescript-eslint/consistent-type-imports': [
    'error',
    { prefer: 'type-imports', disallowTypeAnnotations: true },
  ],
  '@typescript-eslint/consistent-type-exports': [
    'error',
    { fixMixedExportsWithInlineTypeSpecifier: true },
  ],
  '@typescript-eslint/no-duplicate-enum-values': 'error',
  '@typescript-eslint/consistent-generic-constructors': [
    'error',
    'constructor',
  ],

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

This will be considered a breaking change

Dependency Dashboard

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

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): ๐Ÿค– bump commitlint to v19.2.2
  • chore(deps): ๐Ÿค– bump eslint-plugin-simple-import-sort to v12.1.0
  • chore(deps): ๐Ÿค– bump pnpm to v9
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

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

Detected dependencies

github-actions
.github/workflows/pull_request.yml
  • actions/checkout v4
  • pnpm/action-setup v2
  • actions/setup-node v4
  • codecov/codecov-action v4
  • actions/checkout v4
  • wagoid/commitlint-github-action v6
  • actions/checkout v4
  • streetsidesoftware/cspell-action v6
.github/workflows/release.yml
  • actions/checkout v4
  • pnpm/action-setup v2
  • actions/setup-node v4
  • codecov/codecov-action v4
npm
package.json
  • @typescript-eslint/eslint-plugin ^7.4.0
  • @typescript-eslint/parser ^7.4.0
  • eslint-config-prettier ^9.1.0
  • eslint-import-resolver-typescript ^3.6.1
  • eslint-plugin-import ^2.29.1
  • eslint-plugin-jest ^27.9.0
  • eslint-plugin-jest-dom ^5.2.0
  • eslint-plugin-jsx-a11y ^6.8.0
  • eslint-plugin-node-import ^1.0.4
  • eslint-plugin-react ^7.34.1
  • eslint-plugin-react-hooks ^4.6.0
  • eslint-plugin-simple-import-sort ^12.0.0
  • eslint-plugin-testing-library ^6.2.0
  • @semantic-release/changelog 6.0.3
  • @semantic-release/commit-analyzer 12.0.0
  • @semantic-release/git 10.0.1
  • @semantic-release/github 10.0.2
  • @semantic-release/npm 12.0.0
  • @semantic-release/release-notes-generator 13.0.0
  • @types/node 20.11.30
  • @vitest/coverage-v8 1.4.0
  • clean-pkg-json ^1.2.0
  • commitlint 19.2.1
  • eslint 8.57.0
  • eslint-find-rules 4.1.0
  • gitzy 5.2.0
  • husky 9.0.11
  • is-ci 3.0.1
  • lint-staged 15.2.2
  • pkgroll 2.0.2
  • prettier 3.2.5
  • semantic-release 23.0.6
  • typescript 5.4.3
  • vitest 1.4.0
  • eslint ^8.56.0
  • prettier ^2.4.0 || ^3.0.2
  • typescript >=4.7.4 <5.5.0
  • node >= 20
  • pnpm 8.15.5
nvm
.nvmrc
  • node 20

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

Drop support for node 12

Describe the feature you'd like:

Suggested implementation:

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

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.