Skip to content

Conversation

@kamui545
Copy link
Contributor

This PR adds ESLint with Typescript support, and also runs it on CI.

Usage:

npm run lint

# ignore warnings
npm run lint -- --quiet 

Config is using only the recommended rules:

  • eslint:recommended
  • @typescript-eslint/recommended

I disabled 3 rules that currently trigger errors:

  • @typescript-eslint/ban-types
  • @typescript-eslint/no-explicit-any
  • prefer-const

If this PR gets merged, I will then make separate PRs to fix those errors, it should be easier to review that way.

@taylorotwell taylorotwell merged commit 248d6ff into laravel:master Jul 22, 2020
@kamui545 kamui545 deleted the eslint branch July 23, 2020 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants