Shared config for Prettier.
$ npm i -D prettier @kensho-technologies/prettier-config
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 ."
}
}
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.