Convert this .eslintrc.json to eslint.config.js: [code]
- User
Convert this .eslintrc.json to eslint.config.js:
code{ "env": { "browser": true, "es6": true, "es2021": true, "jest": true, "node": true }, "extends": ["fbjs", "plugin:prettier/recommended", "eslint:recommended", "plugin:react/recommended", "plugin:react-hooks/recommended"], // "parser": "@babel/eslint-parser", "rules": { "prettier/prettier": [ "error", { "endOfLine": "auto" } ], "flowtype/object-type-delimiter": "off" }, "parserOptions": { "sourceType": "module", "ecmaVersion": 12, "ecmaFeatures": { "jsx": true } }, "plugins": ["prettier", "react", "react-hooks"], "settings": { // "import/resolver": { // "webpack": { // "config": "./config/webpack.config.prod.js" // } // }, "react": { "version": "17.0.0" }, "no-console": "error" } } - Assistant
To convert your
.eslintrc.jsonfile toeslint.config.js, you need to follow ESLint's JavaScript-based configuration format. Here's how you can do it:- Load and use the necessary ESLint packages.
- Transform JSON properties into corresponding JavaScript module exports.
- Include comments using JavaScript syntax.
Here's the converted
eslint.config.js:js - User
how do i tell .eslintrc to use esbuild as parser
- Assistant
- User
what does eslint error
92:9 error Parsing error: Unexpected token =in class based component mean - Assistant
- User
how do i set eslint parser to use esbuild
- Assistant
- User
how do i disable
react/prop-typesin eslintrc - Assistant