diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 8ffaf1ef..b64c2235 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -18,6 +18,7 @@ learn how: http://kcd.im/pull-request Relevant code or config ```javascript + ``` What you did: diff --git a/README.md b/README.md index 4d184b64..81dac115 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,6 @@ for linting, testing, building, and more. - - [Installation](#installation) - [Usage](#usage) - [Overriding Config](#overriding-config) @@ -126,7 +125,7 @@ add `@babel/preset-flow` to the `presets`-section. ### TypeScript Support -If the `tsconfig.json`-file is present in the project root directory and +If the `tsconfig.json`-file is present in the project root directory and `typescript` is a dependency the `@babel/preset-typescript` will automatically get loaded when you use the default babel config that comes with `kcd-scripts`. If you customised your `.babelrc`-file you might need to manually add @@ -135,8 +134,9 @@ If you customised your `.babelrc`-file you might need to manually add `kcd-scripts` will automatically load any `.ts` and `.tsx` files, including the default entry point, so you don't have to worry about any rollup configuration. -`tsc --build tsconfig.json` will run during before committing to verify that files will compile. -So make sure to add the `noEmit` flag to the `tsconfig.json`'s `compilerOptions`. +`tsc --build tsconfig.json` will run during before committing to verify that +files will compile. So make sure to add the `noEmit` flag to the +`tsconfig.json`'s `compilerOptions`. ## Inspiration @@ -208,6 +208,7 @@ Thanks goes to these people ([emoji key][emojis]): + This project follows the [all-contributors][all-contributors] specification. diff --git a/package.json b/package.json index 40514435..c65c2634 100644 --- a/package.json +++ b/package.json @@ -31,60 +31,60 @@ "author": "Kent C. Dodds (https://kentcdodds.com)", "license": "MIT", "dependencies": { - "@babel/cli": "^7.8.4", - "@babel/core": "^7.9.6", - "@babel/plugin-proposal-class-properties": "^7.8.3", - "@babel/plugin-transform-modules-commonjs": "^7.9.6", - "@babel/plugin-transform-runtime": "^7.9.6", - "@babel/preset-env": "^7.9.6", - "@babel/preset-react": "^7.9.4", - "@babel/preset-typescript": "^7.9.0", - "@babel/runtime": "^7.9.6", - "@rollup/plugin-babel": "^5.0.2", - "@rollup/plugin-commonjs": "^12.0.0", - "@rollup/plugin-json": "^4.0.3", - "@rollup/plugin-node-resolve": "^8.0.0", - "@rollup/plugin-replace": "^2.3.2", - "@types/jest": "^25.2.3", + "@babel/cli": "^7.10.5", + "@babel/core": "^7.11.4", + "@babel/plugin-proposal-class-properties": "^7.10.4", + "@babel/plugin-transform-modules-commonjs": "^7.10.4", + "@babel/plugin-transform-runtime": "^7.11.0", + "@babel/preset-env": "^7.11.0", + "@babel/preset-react": "^7.10.4", + "@babel/preset-typescript": "^7.10.4", + "@babel/runtime": "^7.11.2", + "@rollup/plugin-babel": "^5.2.0", + "@rollup/plugin-commonjs": "^15.0.0", + "@rollup/plugin-json": "^4.1.0", + "@rollup/plugin-node-resolve": "^9.0.0", + "@rollup/plugin-replace": "^2.3.3", + "@types/jest": "^26.0.10", "arrify": "^2.0.1", - "babel-jest": "^26.0.1", + "babel-jest": "^26.3.0", "babel-plugin-macros": "^2.8.0", "babel-plugin-minify-dead-code-elimination": "^0.5.1", "babel-plugin-module-resolver": "^4.0.0", "babel-plugin-transform-inline-environment-variables": "^0.4.3", "babel-plugin-transform-react-remove-prop-types": "^0.4.24", - "browserslist": "^4.12.0", - "chalk": "^4.0.0", - "concurrently": "^5.2.0", - "cosmiconfig": "^6.0.0", + "browserslist": "^4.14.0", + "chalk": "^4.1.0", + "concurrently": "^5.3.0", + "cosmiconfig": "^7.0.0", "cross-env": "^7.0.2", - "cross-spawn": "^7.0.2", + "cross-spawn": "^7.0.3", "doctoc": "^1.4.0", "eslint": "^6.8.0", - "eslint-config-kentcdodds": "^14.13.0", + "eslint-config-kentcdodds": "^14.15.0", "eslint-config-prettier": "^6.11.0", "glob": "^7.1.6", "husky": "^4.2.5", "is-ci": "^2.0.0", - "jest": "^26.0.1", + "jest": "^26.4.2", "jest-watch-typeahead": "^0.6.0", - "lint-staged": "^10.2.6", + "lint-staged": "^10.2.11", "lodash.camelcase": "^4.3.0", "lodash.has": "^4.5.2", "lodash.omit": "^4.5.0", "mkdirp": "^1.0.4", - "prettier": "2.0.5", + "prettier": "2.1.0", "read-pkg-up": "^7.0.1", "resolve": "^1.17.0", "rimraf": "^3.0.2", - "rollup": "^2.10.9", + "rollup": "^2.26.5", "rollup-plugin-node-builtins": "^2.1.2", "rollup-plugin-node-globals": "^1.4.0", "rollup-plugin-size-snapshot": "^0.12.0", - "rollup-plugin-terser": "^6.0.1", + "rollup-plugin-terser": "^7.0.0", "semver": "^7.3.2", "which": "^2.0.2", - "yargs-parser": "^18.1.3" + "yargs-parser": "^19.0.1" }, "eslintConfig": { "extends": [ diff --git a/src/config/prettierrc.js b/src/config/prettierrc.js index 181b27c9..88af7683 100644 --- a/src/config/prettierrc.js +++ b/src/config/prettierrc.js @@ -1,6 +1,7 @@ module.exports = { arrowParens: 'avoid', bracketSpacing: false, + embeddedLanguageFormatting: 'auto', endOfLine: 'lf', htmlWhitespaceSensitivity: 'css', insertPragma: false,