File: .eslintrc.json

Recommend this page to a friend!
  Classes of Dom Hastings  >  JS Webdav Client  >  .eslintrc.json  >  Download  
File: .eslintrc.json
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: JS Webdav Client
Access files of a Webdav server
Author: By
Last change:
Date: 1 month ago
Size: 1,895 bytes
 

Contents

Class file image Download
{
  "env": {
    "es6": true,
    "browser": true
  },
  "extends": "eslint:recommended",
  "parser": "babel-eslint",
  "parserOptions": {
    "ecmaVersion": 2018,
    "sourceType": "module"
  },
  "reportUnusedDisableDirectives": true,
  "root": true,
  "rules": {
    "arrow-parens": "error",
    "arrow-spacing": "error",
    "curly": ["error", "all"],
    "eqeqeq": "error",
    "indent": ["warn", 2],
    "linebreak-style": ["error", "unix"],
    "no-var": "error",
    "object-curly-spacing": ["error", "never"],
    "padded-blocks": ["warn", "never"],
    "padding-line-between-statements": [
      "error",
      {
        "blankLine": "always",
        "prev": "*",
        "next": "return"
      },
      {
        "blankLine": "always",
        "prev": "block",
        "next": "*"
      },
      {
        "blankLine": "always",
        "prev": "*",
        "next": "break"
      },
      {
        "blankLine": "always",
        "prev": "const",
        "next": "*"
      },
      {
        "blankLine": "always",
        "prev": "function",
        "next": "*"
      }
    ],
    "prefer-arrow-callback": "warn",
    "prefer-const": "warn",
    "prefer-destructuring": "warn",
    "prefer-numeric-literals": "warn",
    "prefer-rest-params": "warn",
    "prefer-spread": "warn",
    "prefer-template": "warn",
    "quote-props": ["warn", "as-needed"],
    "quotes": ["warn", "single"],
    "semi": "error",
    "sort-imports": "warn",
    "space-before-blocks": "error",
    "space-before-function-paren": ["error", {
      "anonymous": "never",
      "named": "never",
      "asyncArrow": "always"
    }],
    "space-in-parens": ["error", "never"],
    "space-infix-ops": "error",
    "space-unary-ops": ["warn", {
      "words": true,
      "nonwords": false,
      "overrides": {
        "!": true,
        "!!": true
      }
    }],
    "template-curly-spacing": "error"
  }
}