Kenya-West
@Kenya-West
Обычный Кеня

Почему так происходит на VS Code в проектах на React?

Смотрите, что происходит, когда я пытаюсь задать точку остановы:

https://imgur.com/a/Tcb7phR

Почему так происходит?

Вот мой package.json:
spoiler
{
  "private": true,
  "scripts": {
    "deploy": "now && now alias",
    "start": "react-scripts start",
    "now-start": "serve -s ./build",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject",
    "precommit": "pretty-quick --staged"
  },
  "devDependencies": {
    "eslint": "^6.5.1",
    "eslint-config-standard": "^14.1.0",
    "eslint-plugin-import": "^2.18.2",
    "eslint-plugin-node": "^10.0.0",
    "eslint-plugin-promise": "^4.2.1",
    "eslint-plugin-standard": "^4.0.1",
    "prettier": "^1.18.2",
    "react-scripts": "^3.2.0"
  },
  "dependencies": {
    "@date-io/date-fns": "^1.3.11",
    "@material-ui/core": "^4.5.1",
    "@material-ui/icons": "^4.5.1",
    "@material-ui/pickers": "^3.2.7",
    "axios": "^0.19.0",
    "connected-react-router": "^6.5.2",
    "date-fns": "^2.8.1",
    "react": "^16.11.0",
    "react-dom": "^16.11.0",
    "react-redux": "^7.1.1",
    "react-router": "^5.1.2",
    "react-router-dom": "^5.1.2",
    "redux": "^4.0.4",
    "redux-thunk": "^2.3.0",
    "sanitize.css": "^11.0.0",
    "serve": "^11.2.0",
    "typeface-roboto": "0.0.75"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ]
}


Мои правила ESLint:
spoiler
{
    "env": {
        "browser": true,
        "es6": true
    },
    "extends": [
        "standard"
    ],
    "globals": {
        "Atomics": "readonly",
        "SharedArrayBuffer": "readonly"
    },
    "parserOptions": {
        "ecmaFeatures": {
            "jsx": true
        },
        "ecmaVersion": 2018,
        "sourceType": "module"
    },
    "plugins": [
        "react"
    ],
    "rules": {
        // Indent with 4 spaces
        "indent": [
            "warn",
            4
        ],
        // Indent JSX with 4 spaces
        "react/jsx-indent": [
            "warn",
            4
        ],
        // Indent props with 4 spaces
        "react/jsx-indent-props": [
            "warn",
            4
        ]
    }
}


Мой список расширений в VS Code:
spoiler
Angular.ng-template
christian-kohler.npm-intellisense
chrmarti.regex
CoenraadS.bracket-pair-colorizer-2
cssho.vscode-svgviewer
dbaeumer.vscode-eslint
donjayamanne.githistory
ecmel.vscode-html-css
eg2.vscode-npm-script
fabiospampinato.vscode-git-history
fabiospampinato.vscode-github-notifications-bell
fabiospampinato.vscode-open-in-github
fabiospampinato.vscode-terminals
formulahendry.auto-rename-tag
humy2833.ftp-simple
infinity1207.angular2-switcher
johnpapa.Angular2
kisstkondoros.typelens
mikestead.dotenv
mrmlnc.vscode-autoprefixer
ms-azuretools.vscode-docker
ms-vscode-remote.remote-wsl
ms-vscode.powershell
ms-vscode.vscode-typescript-tslint-plugin
ms-vsliveshare.vsliveshare
ms-vsts.team
msjsdiag.debugger-for-chrome
pflannery.vscode-versionlens
quicktype.quicktype
rubbersheep.gi
Shan.code-settings-sync
sibiraj-s.vscode-scss-formatter
thekalinga.bootstrap4-vscode
VisualStudioExptTeam.vscodeintellicode
  • Вопрос задан
  • 192 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы