diff --git a/README.md b/README.md index 6d15fa7..a2a3dff 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,12 @@ It will reload automatically on changes to the code. ### Linting and coding style -Each Pull Request is validated by eslint and prettier. +Each Pull Request is validated by `eslint` and `prettier`. To run this locally: ```bash npm run lint -npm run prettier +npm run format ``` The last command will modify source files where needed. diff --git a/package.json b/package.json index e9b692c..f86ac4f 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "build": "rollup -c", "build-storybook": "storybook build", "dev": "storybook dev -p 6006 --no-open", - "lint": "eslint .storybook src --ext .js,.ts,.tsx --cache && prettier -c .storybook src", - "prettier": "prettier -w .storybook src" + "format": "prettier -w .storybook src", + "lint": "eslint .storybook src --ext .js,.ts,.tsx --cache && prettier -c .storybook src" }, "repository": { "type": "git",