@purfect/syntax
React app syntax
Last updated 2 years ago by bytasv .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @purfect/syntax 
SYNC missed versions from official npm registry.

Purfect syntax

Use linting tools which helps to get consistent code through different react projects. If you use postcss in your project, this will also help you lint your style files

The problem

Getting all the best practices in one place and updating them throught the projects is really painful

The solution

This library allows to reuse it easily without any configuration

How to start?

  1. npm install --save @purfect/syntax or yarn add @purfect/syntax
  2. In your project's package.json add these scripts
"scripts": {
  "check": "purfect-syntax check",
  "check:code": "purfect-syntax check:code",
  "check:style": "purfect-syntax check:style"
}

Features

Command Feature
purfect-syntax check Checks both code and style files
purfect-syntax check:code Checks only code files
purfect-syntax check:style Checks only style files
purfect-syntax commit-hook Allows to run checks against specified file paths. Should be used in conjunction with husky (see below) or similar pre-commit hook manager

Current Tags

  • 0.1.0-alpha1                                ...           latest (2 years ago)

1 Versions

  • 0.1.0-alpha1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 2
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |