Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.51 KB

README.md

File metadata and controls

53 lines (39 loc) · 1.51 KB

ponstandard

Pon tech community JavaScript Standard Style

The default standardjs lint rules: https://github.com/standard/eslint-config-standard/blob/master/.eslintrc.json

Install

Add a .npmrc to your project in the root directory, with the following content:

@pondevelopment:registry=https://npm.pkg.github.com/
npm install @pondevelopment/ponstandard @babel/core @babel/eslint-parser @babel/preset-env --save-dev

Add this to your package.json:

"ponstandard": {
    "parser": "@babel/eslint-parser"
}

Usage

Use ponstandard on the command line the same way you use standard:

Usage:
    ponstandard <flags> [FILES...]

    If FILES is omitted, then all JavaScript source files (*.js, *.jsx) in the current
    working directory are checked, recursively.

    Certain paths (node_modules/, coverage/, vendor/, *.min.js, bundle.js, and
    files/folders that begin with '.' like .git/) are automatically ignored.

    Paths in a project's root .gitignore file are also automatically ignored.

Flags:
        --fix       Automatically fix problems
    -v, --verbose   Show rule names for errors (to ignore specific rules)
        --version   Show current version
    -h, --help      Show usage information

Flags (advanced):
        --stdin     Read file text from stdin
        --global    Declare global variable
        --plugin    Use custom eslint plugin
        --env       Use custom eslint environment
        --parser    Use custom js parser (e.g. babel-eslint)