Skip to content

kensho-technologies/prettier-config

Repository files navigation

prettier-config

Build Status npm

Shared config for Prettier.

Install

$ npm i -D prettier @kensho-technologies/prettier-config

Usage

Configure Prettier to use the config, e.g., by adding a key to the project's package.json:

{
  "prettier": "@kensho-technologies/prettier-config"
}

Add scripts to package.json to format and validate files:

{
  "scripts": {
    "fix": "prettier -w .",
    "test": "prettier -c ."
  }
}

License

Licensed under the Apache 2.0 License. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2020-present Kensho Technologies, LLC. The present date is determined by the timestamp of the most recent commit in the repository.