E
E
EVGENIY ARAPOV2019-12-16 23:14:25
Node.js
EVGENIY ARAPOV, 2019-12-16 23:14:25

ESLint, prettier and VS Code?

After installing packages npm install eslint-config-prettier eslint-plugin-prettier prettier lint-staged husky --save-dev. Creating the appropriate .eslintrc and .prettierrc configuration files in the root of the project when running npm run eslint and installing plugins from the VS code market. Error in terminal: npm ERR! missing script: eslint
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Evgeny\AppData\Roaming\npm-cache_logs\2019-12-16T14_07_00_742Z-
debug.log or external command, operable program or batch file. (this folder is also in the root of the project)
.prettierrc

{"userTabs": false,
    "printWidth": 80,
    "tabWidth":2,
    "singleQuote":true,
    "trailingComma":"es5",
    "parcer":"flow",
    "semi":false
}

.eslintrc
{
"extends": [
    "react-app",
    "prettir"
],

"rules" : {

    "jsx-quotes": [
        1,
        "prefer-double"
    ]
    
    },
    "plugins":[
        "prettier"
    ]
}

linter doesn't start.. ..Screen of pacage.json I attached
5df7e5774636e714507860.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question