Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.02 KB

0.3-0.4.md

File metadata and controls

51 lines (33 loc) · 1.02 KB

Migration Guide 0.3.0 - 0.4.0

For more details, see the changelog

Update your kyt dependency to 0.4.0 and reinstall your dependencies.

Create a .babelrc

  1. If you are running a react app, install babel-preset-kyt-react:
$ npm install --save-dev babel-preset-kyt-react
  1. Create .babelrc file with the kyt presets:
{
  "presets": ["babel-preset-kyt-react"],
  "plugins": []
}
  1. Remove any presets or plugins from your kyt.config.js and add them to .babelrc.

Use kyt's new linter packages

In your .eslintrc.json:

"extends": [
  "eslint-config-kyt"
]

Read about the eslint rules kyt uses here.

In your .stylelintrc:

"extends": "stylelint-config-kyt"

Read about the stylelint rules kyt uses here.

Update package.json

Update pacakge.json scripts to reflect the updated and deprecated commands.

  1. npm run lint: kyt lint-script
  2. npm run start: node build/server/main.js