Answer the question
In order to leave comments, you need to log in
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
}
{
"extends": [
"react-app",
"prettir"
],
"rules" : {
"jsx-quotes": [
1,
"prefer-double"
]
},
"plugins":[
"prettier"
]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question