1. Warning
$ eslint tray/tray_sub.js Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration . /home/wsd02/PrivateInvoice/817r/modules/tray/tray_sub.js 24:18 error 'require' is not defined no-undef 28:16 error 'require' is not defined no-undef 29:12 error 'require' is not defined no-undef 338:1 error 'module' is not defined no-undef
2. ‘require’ is not defined no-undef
"env": { "browser": true, "es2021": true, "node": true <-- add },
3. Warning: React version not specified in eslint-plugin-react settings
"extends": [ "eslint:recommended", //"plugin:react/recommended" <-- del ],
4. .eslintrc.js
module.exports = { "env": { "browser": true, "es2021": true, "node": true }, "extends": [ "eslint:recommended", //"plugin:react/recommended" ], "parserOptions": { "ecmaFeatures": { "jsx": true }, "ecmaVersion": "latest", "sourceType": "module" }, "plugins": [ "react" ], "rules": { } }