eslint-config-mono

2.0.0 • Public • Published

eslint-config-mono travis npm downloads

An ESLint Shareable Config heavily based on JavaScript Standard Style

Note: This is really intended for personal use, but feel free to use it if it looks good to you

Install

npm install eslint-config-mono

Usage

Shareable configs are designed to work with the extends feature of .eslintrc files. You can learn more about Shareable Configs on the official ESLint website.

To use the JavaScript Standard Style shareable config, first run this:

npm install -D -E eslint eslint-config-mono

Then, add this to your .eslintrc file:

{
  "extends": "mono"
}

Custom rules

{
  "array-bracket-spacing": ["warn", "always"],
  "comma-dangle": [
    "warn",
    {
      "arrays": "always",
      "objects": "always",
      "imports": "always",
      "exports": "always",
      "functions": "ignore"
    }
  ],
  "quote-props": ["warn", "as-needed", { "keywords": true }],
  "no-sequences": ["off"],
  "no-console": ["warn"],
  "object-curly-spacing": ["warn", "always"],
  "standard/object-curly-even-spacing": ["off"]
}

Package Sidebar

Install

npm i eslint-config-mono

Weekly Downloads

104

Version

2.0.0

License

MIT

Unpacked Size

5.7 kB

Total Files

9

Last publish

Collaborators

  • monojack
  • mono