Skip to content
💥 JavaScript Standard Style with custom tweaks
Branch: master
Clone or download
Latest commit 152e4e4 Aug 31, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
test tweak test style May 19, 2018
.gitignore remove unneeded entries in node_modules May 16, 2018
.npmignore npmignore May 16, 2018
.travis.yml do not cache node_modules May 15, 2018 init Aug 11, 2017 init Aug 11, 2017 add note for #2 Jun 9, 2018
index.js init Aug 11, 2017


JavaScript Standard Style with custom tweaks

npm travis standard


This package allows users to follow JavaScript Standard Style, but deviate if needed. This can be done by adding an .eslintrc file to their project directory or by adding an "eslintConfig" attribute to your packages.json. That eslint config will be layed on top of the standard ruleset.

If there is a standard attribute in your package.json for defining globals or ignoring files, rename it to standardx:

"standardx": {
    "global": [

All other standard features remain intact (including --fix!)


npm install standardx --global


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

    standardx <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.

        --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)


Running standardx with no additional configuration is the same as running standard itself. (Except rename the "standard" property in package.json to "standardx" if you have one.)

If there are rules you would like turned off, modify the ruleset using eslint config. Check out Configuring eslint for more information.

Example: Allow snake_case by turning off the camelCase rule

Via: .eslintrc:

  "rules": {
    "camelcase": 0

or via package.json:

  "name": "coolproject",
  "description": "My Cool Project",
  "version": "1.0.0",
  "author": "Fantastic Developer",
  "eslintConfig": {
    "rules": {
      "camelcase": 0

Now, running standardx (with no additional arguments) will allow snake_case without error!


Contributions welcome! Please read the contributing guidelines first.



You can’t perform that action at this time.