Skip to content

Instantly share code, notes, and snippets.

@mcseptian
Last active February 20, 2020 02:45
Show Gist options
  • Save mcseptian/708a484cbfaf2419b70ddb3beb806a97 to your computer and use it in GitHub Desktop.
Save mcseptian/708a484cbfaf2419b70ddb3beb806a97 to your computer and use it in GitHub Desktop.
Config of vscode-eslint 2.0.14
root: true
parser: babel-eslint
env:
browser: true
node: true
es6: true
extends:
- eslint:recommended
- plugin:import/errors
- plugin:import/warnings
- plugin:unicorn/recommended
- xo/esnext
- xo/browser
rules:
dot-location: ["error", "property"]
wrap-iife: ["error", "any"]
capitalized-comments: "off"
indent: ["error", 4]
max-params: ["warn", 5]
multiline-ternary: ["error", "always-multiline"]
new-cap: "off"
no-console: "error"
object-curly-spacing: ["error", "always"]
semi: ["error","never"]
unicorn/consistent-function-scoping: "off"
unicorn/explicit-length-check: "off"
unicorn/import-index: "off"
unicorn/no-for-loop: "off"
unicorn/no-unused-properties: "error"
unicorn/prefer-dataset: "off"
unicorn/prefer-includes: "off"
unicorn/prefer-node-append: "off"
unicorn/prefer-node-remove: "off"
unicorn/prefer-query-selector: "off"
unicorn/prefer-text-content: "off"
unicorn/prevent-abbreviations: "off"
globals:
Atomics: readonly
SharedArrayBuffer: readonly
parserOptions:
ecmaVersion: 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment