Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.35 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.35 KB

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.