| 1 |
# Set up globals |
| 2 |
globals: |
| 3 |
angular: false |
| 4 |
|
| 5 |
extends: openstack |
| 6 |
|
| 7 |
# Most environment options are not explicitly enabled or disabled, only |
| 8 |
# included here for completeness' sake. They are commented out, because the |
| 9 |
# global updates.py script would otherwise override them during a global |
| 10 |
# requirements synchronization. |
| 11 |
# |
| 12 |
# Individual projects should choose which platforms they deploy to. |
| 13 |
|
| 14 |
env: |
| 15 |
# browser global variables. |
| 16 |
browser: true |
| 17 |
|
| 18 |
# Adds all of the Jasmine testing global variables for version 1.3 and 2.0. |
| 19 |
jasmine: true |
| 20 |
|
| 21 |
# Enable eslint-plugin-angular |
| 22 |
plugins: |
| 23 |
- angular |
| 24 |
|
| 25 |
# Below we adjust rules specific to horizon's usage of openstack's linting |
| 26 |
# rules, and its own plugin inclusions. |
| 27 |
rules: |
| 28 |
############################################################################# |
| 29 |
# Disabled Rules from eslint-config-openstack |
| 30 |
############################################################################# |
| 31 |
valid-jsdoc: [1, { |
| 32 |
requireParamDescription: false |
| 33 |
}] |
| 34 |
brace-style: 1 |
| 35 |
block-scoped-var: 1 |
| 36 |
callback-return: 1 |
| 37 |
consistent-return: 1 |
| 38 |
guard-for-in: 1 |
| 39 |
no-extra-parens: 1 |
| 40 |
no-new: 1 |
| 41 |
no-redeclare: 1 |
| 42 |
no-undefined: 1 |
| 43 |
no-unneeded-ternary: 1 |
| 44 |
no-use-before-define: 1 |
| 45 |
quote-props: 0 |
| 46 |
semi-spacing: 1 |
| 47 |
space-in-parens: 1 |
| 48 |
|
| 49 |
############################################################################# |
| 50 |
# Angular Plugin Customization |
| 51 |
############################################################################# |
| 52 |
|
| 53 |
angular/controller-as-vm: |
| 54 |
- 1 |
| 55 |
- "ctrl" |
| 56 |
|
| 57 |
# Remove after migrating to angular 1.4 or later. |
| 58 |
angular/no-cookiestore: |
| 59 |
- 1 |