From 96fedb3f878308da85280e32a3bcfacc39d4b227 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sun, 12 May 2024 19:54:26 +0200 Subject: [PATCH] chore: rename "npm run prettier" to "npm run format" (#119) You don't actually care what software does the formatting. Just that it gets done. --- README.md | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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",