0996aa1f2d
Cleanup draggable-components.js to pass eslint. Added checks, that Hogan templates are present on the page, to prevent occasional failures if the script is included on a different page. Refactored prototype modification. Added TENANT_ID to global variables in .eslintrc Partially implements: blueprint add-js-lint-jobs Change-Id: I35e3cee2af3eb8ee34f4b9a97cd9e4e756cd6458
44 lines
982 B
Plaintext
44 lines
982 B
Plaintext
# For a detailed list of all options please see here:
|
|
# http://eslint.org/docs/configuring/
|
|
|
|
extends: openstack
|
|
|
|
env:
|
|
# Use jquery global variables
|
|
jquery: true
|
|
browser: true
|
|
|
|
globals:
|
|
# allow accessing horizon
|
|
horizon: false
|
|
|
|
# allow passing TENANT_ID from django templates
|
|
TENANT_ID: false
|
|
|
|
# Only support ECMA5, disable everything else.
|
|
# NOTE(kzaitsev): blatantly copied from horizon
|
|
ecmaFeatures:
|
|
arrowFunctions: false
|
|
binaryLiterals: false
|
|
blockBindings: false
|
|
classes: false
|
|
defaultParams: false
|
|
destructuring: false
|
|
forOf: false
|
|
generators: false
|
|
modules: false
|
|
objectLiteralComputedProperties: false
|
|
objectLiteralDuplicateProperties: false
|
|
objectLiteralShorthandMethods: false
|
|
objectLiteralShorthandProperties: false
|
|
octalLiterals: false
|
|
regexUFlag: false
|
|
regexYFlag: false
|
|
restParams: false
|
|
spread: false
|
|
superInFunctions: false
|
|
templateStrings: false
|
|
unicodeCodePointEscapes: false
|
|
globalReturn: false
|
|
jsx: false
|