-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript Beta #68
Comments
The above was then I had to restart my editor. So I don't think that has anything to do with this config. In fact it was catching implicit any |
Okay Beta 3 is out: To install:
Then in your package.json: "eslintConfig": {
"extends": "eslint-config-wesbos/typescript.js",
"parserOptions": {
"project": "./tsconfig.json"
}
}, Then make a {
"extends": "eslint-config-wesbos/tsconfig.json",
"include": [
"**/*"
]
} This now allows you to mix .js and .ts files in a project |
turn off no-explicit-any |
Thank you for useful project. I created .eslintrc file to override setting. .eslintrc
but, my project created by
App.tsx
Problems This means "singleQuote: false" does not work. How can I override settings? |
@KhaVNguyen you should define "paths"
i do have issues with working without the |
Need to look at "no-redeclare" "no-redeclare": "off",
"@typescript-eslint/no-redeclare": [
"warn",
{
"ignoreDeclarationMerge": true,
}
]
} |
Published a new version 2.0.0.beta.5, adding these rules: '@typescript-eslint/no-explicit-any': 'off',
'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': [
'warn',
{
ignoreDeclarationMerge: true,
},
], And for JSX:
|
It seems that the current eslint doesn't like when you use Record type https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeystype |
Any chance we can get a fix for the linter when using prettier > 8.0.0 ? I think you already fixed it for js. but I'm using ts. |
@miguel-krasamo Sure! Can you test out |
I was able to test out the beta.6 just now. with the comment:
If yes, I deleted it and found no significant changes yet. At first I thought my modules didn't update so I removed them and install everything again.
So I still needed to manually remove |
thanks! I just removed those two bits and published a beta 7 |
It's working properly on beta 7. Thanks! |
Hi Wes, Did you mention you'll be bring out out a typescript course? |
@ThomasGuy have you tried to delete modules folder and install them again? I've been using beta 7 for the past days and I don't get the prettier issue anymore. |
I am also getting this same error @wesbos when trying to update Nextjs to 11 and figured I would update from beta 4 to beta 7.
I've tired this, and still get this error when I build with nextjs. |
Just tried beta 7 with the latest version of Next.js and it appera to be a clash with Nexts built in linting config. The only way to clear the error is to remove the It appears Next is using |
Hi Wes, |
Beta 10 is out, going to test it with next.js and CRA and then Ill probabky release it |
Beta 11 is out → #97 |
Hi Wes do i need to update anything i have gone through this article still throwing errors npm ERR! Fix the upstream dependency conflict, or retry |
This is your solution in the error you posted 🙂 |
Okay, I've put together a beta for typescript support.
I've run it through a few projects, but likely haven't hit every issue so I'm looking for testers. Both for errors as well as suggestions on rules. It's mostly based on my own existing eslint as well as airbnb's typescript rules.
to run:
package.json
, runnpx install-peerdeps --dev eslint-config-wesbos@2.0.0-beta.0
package.json
add this:tsconfig.json
in the root for it to work.Then the rest of the steps for VS code or CLI will work.
let me know what you think / run into!
The text was updated successfully, but these errors were encountered: