I have a dashboard bootstrap in reactjs when i run the dashboard i receive this error
"ESLint configuration in package.json is invalid:
- Unexpected top-level property "babelOptions"."
I don’t understand what ESLint is but I believe it is a set of rules for the way the code is written.
I don’t understand what this error means it is appearing in the package.json structure.
is there a way to disable Eslint or fix this issue?
here is my package.json file:
{
"name": "skote-react-hook",
"version": "2.0.0",
"private": true,
"dependencies": {
"@ckeditor/ckeditor5-build-classic": "^31.0.0",
"@ckeditor/ckeditor5-react": "^3.0.3",
"@fullcalendar/bootstrap": "^5.10.1",
"@fullcalendar/core": "^5.10.1",
"@fullcalendar/daygrid": "^5.10.1",
"@fullcalendar/interaction": "^5.10.1",
"@fullcalendar/react": "^5.10.1",
"@lourenci/react-kanban": "^2.1.0",
"@testing-library/jest-dom": "^5.15.0",
"@testing-library/react": "^12.1.2",
"@testing-library/user-event": "^13.5.0",
"@vtaits/react-color-picker": "^0.1.1",
"apexcharts": "3.30.0",
"axios": "^0.21.1",
"axios-mock-adapter": "^1.20.0",
"bootstrap": "^5.1.3",
"chart.js": "^2.9.4",
"chartist": "^0.11.4",
"classnames": "^2.3.1",
"draft-js": "^0.11.7",
"echarts": "^4.9.0",
"echarts-for-react": "^3.0.1",
"firebase": "^9.0.1",
"formik": "^2.2.9",
"google-maps-react": "^2.0.6",
"i18next": "^20.3.1",
"i18next-browser-languagedetector": "^6.1.1",
"leaflet": "^1.7.1",
"lodash": "^4.17.21",
"lodash.clonedeep": "^4.5.0",
"metismenujs": "^1.3.0",
"moment": "2.29.1",
"node-sass": "^6.0.1",
"nouislider-react": "^3.4.0",
"prop-types": "^15.7.2",
"react": "^17.0.2",
"react-apexcharts": "^1.3.9",
"react-auth-code-input": "^1.2.1",
"react-bootstrap-editable": "^0.8.2",
"react-bootstrap-sweetalert": "^5.2.0",
"react-bootstrap-table-next": "^4.0.3",
"react-bootstrap-table2-editor": "^1.4.0",
"react-bootstrap-table2-paginator": "^2.1.2",
"react-bootstrap-table2-toolkit": "^2.1.3",
"react-chartist": "^0.14.4",
"react-chartjs-2": "^2.11.1",
"react-color": "^2.19.3",
"react-countdown": "^2.3.2",
"react-datepicker": "^4.1.1",
"react-dom": "^17.0.2",
"react-draft-wysiwyg": "^1.14.7",
"react-drag-listview": "^0.1.8",
"react-dropzone": "^11.3.2",
"react-dual-listbox": "^2.1.2",
"react-facebook-login": "^4.1.1",
"react-flatpickr": "^3.10.7",
"react-google-login": "^5.2.2",
"react-i18next": "^11.10.0",
"react-image-lightbox": "^5.1.1",
"react-input-mask": "^2.0.4",
"react-jvectormap": "^0.0.16",
"react-leaflet": "^2.7.0",
"react-meta-tags": "^1.0.1",
"react-modal-video": "^1.2.7",
"react-native-inline-datepicker": "^1.2.0",
"react-perfect-scrollbar": "^1.5.8",
"react-rangeslider": "^2.2.0",
"react-rating": "^2.0.5",
"react-rating-tooltip": "^1.2.0",
"react-redux": "^7.2.4",
"react-responsive-carousel": "^3.2.18",
"react-router-dom": "^5.2.0",
"react-script": "^2.0.5",
"react-scripts": "^4.0.3",
"react-select": "^4.3.1",
"react-sparklines": "^1.7.0",
"react-star-ratings": "^2.3.0",
"react-super-responsive-table": "^5.2.0",
"react-switch": "^6.0.0",
"react-table": "^7.7.0",
"react-time-picker": "^4.3.0",
"react-toast-notifications": "^2.4.4",
"reactstrap": "^9.0.1",
"recharts": "^2.1.5",
"redux": "^4.1.1",
"redux-form": "^8.3.7",
"redux-saga": "^1.1.3",
"simplebar-react": "^2.3.6",
"toastr": "^2.1.4",
"yup": "^0.32.11"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts --max_old_space_size=8000 build",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"format": "prettier --write "**/*.{js,jsx,json,md,html,css,less,scss}"",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"babelOptions": {
"presets": [
"@babel/preset-react"
]
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"es6": true
},
"globals": {
"$": true
},
"settings": {
"react": {
"version": "^17.0.1"
}
},
"rules": {
"semi": [
"error",
"never"
]
}
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"resolutions": {
"moment": "2.29.1"
},
"devDependencies": {
"babel-eslint": "^10.1.0",
"eslint": "^7.32.0",
"eslint-config-standard-react": "^9.2.0",
"eslint-plugin-react": "^7.20.6",
"prettier": "^2.1.1"
}
}