"prettier-eslint": "^8.8.1", "prettier-eslint-cli": "^4.7.1", "react-test-renderer": "^16.2.0", "redux-logger": "^3.0.6", "rimraf": "^2.6.2", 229 changes: 208 additions & 21 deletions 229 yarn.lock Original file line numberDiff line numberDiff line change @@ -154,6 ...
Description of the Change In order to get eslint to run, we had to install a newer version of eslint-plugin-prettier in #20. The only problem here is to make this work, you have to use a force inst...
Config with eslint: npm i -D eslint-plugin-cypress Open .eslintrc.js: const path = require('path') module.exports={ extends: ['kentcdodds','kentcdodds/import','kentcdodds/webpack','kentcdodds/jest','kentcdodds/react', ],plugins: ['eslint-plugin-cypress'], env: {'cypress/globa...
第1个选项是指ESLint仅用于错误预防,后3个选项是选择ESLint的哪一种代码规范一起使用。ESLint适用于代码校验的,至于代码风格,则有另外的规范来限制,如这里的Airbnb config Standard config和Prettier。至于选择哪种代码规范,这要看个人的喜好和公司的要求。这里先保持默认选择,即第1个选项ESLint with error...
对于自己要发布上线的项目,eslint、prettier以及ts的type等这些发布完全用不到的可以放到devDependencies下,然后上线打包部署的时候可以用npm install --production可以减少一些依赖安装时间,前提一定是不参与打包的;不过大部分人不用这个命令,那这时候就随便了,反正两种依赖都要安装。
对于自己要发布上线的项目,eslint、prettier以及ts的type等这些发布完全用不到的可以放到devDependencies下,然后上线打包部署的时候可以用npm install --production可以减少一些依赖安装时间,前提一定是不参与打包的;不过大部分人不用这个命令,那这时候就随便了,反正两种依赖都要安装。
JavaScript/TypeScript: ESLint helps you find and fix problems in yourJavaScript/TypeScriptcodePrettier is an opinionated code formatter that parses your code and reprints it using its own rules, enforcing consistency in style. C/C++:Microsoft’sC/C++extension includes IntelliSense, debugging, and ...
.eslintrc test(config): Configuration jest 5年前 .gitignore fix(fluent-ui.com): Use the environment variable for now 5年前 .prettierignore feat(init):hello fluent-ui 5年前 .prettierrc feat(init):hello fluent-ui 5年前 CHANGELOG.md ...
deps:Output is now es2017. Drop support for node < 8. 1.0.0(2019-02-12) 0.6.2(2018-11-21) Bug Fixes Space in file name:Support dirs with a space in the name (2ea3786) 0.6.0(2018-07-12) Features install-local:Support parallel install (#11) (a2f9524) ...
Choose linting tools: ESLint, Prettier, Lint staged files. Let's choose ESLint (a tool for analyzing your code and warning you of potential errors). Choose a test framework: None, Jest, AVA. Let's choose None as we won't cover testing in this quickstart. Choose rendering mode: Universa...