Files
shields/.eslintrc.yml
Paul Melnikow 66d444aa40 Clean up our callback style and enforce no exclusive tests and remove an exclusive test (#1900)
We use arrow functions in most places; this enforces it.

Passing arrow functions to Mocha is discouraged: https://mochajs.org/#arrow-functions

This was a mix of autofixes and hand adjustments.
2018-08-12 20:45:43 -04:00

37 lines
855 B
YAML

parserOptions:
ecmaVersion: 8
env:
node: true
# We use Promise, Map, and occasional ES6 syntax.
es6: true
mocha: true
plugins:
- mocha
extends:
# Enable a set of unopinionated, style-agnostic rules which cover many
# likely errors.
- "eslint:recommended"
rules:
# Disable some rules from eslint:recommended.
no-console: "off"
no-empty: ["error", { "allowEmptyCatch": true }]
# Allow unused parameters. In callbacks, removing them seems to obscure
# what the functions are doing.
no-unused-vars: ["error", {"args": "none"}]
# We use semicolons.
semi: ["error", "always"]
# We keep whitespace cleaned up.
no-trailing-spaces: "error"
eol-last: "error"
object-curly-spacing: ["error", "always"]
comma-dangle: ["error", "always-multiline"]
mocha/no-exclusive-tests: "error"
mocha/no-mocha-arrows: "error"