Skip to content

💥 JavaScript Standard Style with custom PON tweaks

License

Notifications You must be signed in to change notification settings

pondevelopment/ponstandard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

💥 JavaScript Standard Style with custom PON tweaks

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 100.0%