@hckrnews/standard

JavaScript Standard Style with custom Hckr.News tweaks

Usage no npm install needed!

<script type="module">
  import hckrnewsStandard from 'https://cdn.skypack.dev/@hckrnews/standard';
</script>

README

hckrstandard

JavaScript Standard Style with custom Hckr.News tweaks

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

Install

npm install @hckrnews/standard --global

Usage

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

Usage:
    hckrstandard <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)