I started programming in 1995 with Microsoft BASIC on MS-DOS from a book I found in my father's library, and I slowly (having no real mentors) learned other programming languages by myself.
Here's what I ended up with, since your examples don't build up (I mean the React config is lost after just being introduced :P):
module.exports={parser:"@typescript-eslint/parser",// Allows ESLint to lint TypeScript.extends:["plugin:react/recommended",// Uses the recommended rules from @eslint-plugin-react"plugin:@typescript-eslint/recommended",// A plugin that contains a bunch of ESLint rules that are TypeScript specific.'prettier/@typescript-eslint',// Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier'plugin:prettier/recommended',// Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.],parserOptions:{ecmaVersion:2018,sourceType:"module",ecmaFeatures:{jsx:true,// Allows for the parsing of JSX},},env:{es6:true,browser:true,node:true,},rules:{// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs// e.g. "@typescript-eslint/explicit-function-return-type": "off",},settings:{react:{version:"detect",// Tells eslint-plugin-react to automatically detect the version of React to use},},};
And of course, I disabled VSCode's onsave formatter, thanks for that catch! Could have driven me mad... :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks! It works perfectly!
Here's what I ended up with, since your examples don't build up (I mean the React config is lost after just being introduced :P):
And of course, I disabled VSCode's onsave formatter, thanks for that catch! Could have driven me mad... :)