Skip to content

Commit

Permalink
rockstor#1629 eslint models.js, adding globals to eslint config
Browse files Browse the repository at this point in the history
Signed-off-by: Mirko Arena <mirko.arena@gmail.com>
  • Loading branch information
MFlyer committed Jan 26, 2017
1 parent 56281f1 commit 24f874f
Show file tree
Hide file tree
Showing 2 changed files with 196 additions and 88 deletions.
106 changes: 104 additions & 2 deletions .eslintrc.js
Expand Up @@ -50,6 +50,12 @@ module.exports = {
'semi': [
'error',
'always'
],
'no-unused-vars': [
'error',
{
'vars': 'local'
}
]
},
'globals': {
Expand All @@ -58,7 +64,103 @@ module.exports = {
'_': false,
'd3': false,
'humanize': false,
// Rockstor internal globals
// Rockstor internal Globals - Backbone models.jslibs
'Setup': true,
'Disk': true,
'DiskCollection': true,
'Pool': true,
'SmartInfo': true,
'PoolCollection': true,
'SupportCase': true,
'SupportCaseCollection': true,
'Share': true,
'PoolShare': true,
'PoolShareCollection': true,
'ShareCollection': true,
'Image': true,
'ImageCollection': true,
'Container': true,
'ContainerCollection': true,
'Snapshot': true,
'SnapshotCollection': true,
'Snapshots': true,
'SnapshotsCollection': true,
'Poolscrub': true,
'PoolscrubCollection': true,
'PoolRebalance': true,
'PoolRebalanceCollection': true,
'SysInfo': true,
'NFSExport': true,
'NFSExportCollection': true,
'NFSExportGroup': true,
'NFSExportGroupCollection': true,
'SMBShare': true,
'SMBShareCollection': true,
'SambaCollection': true,
'Service': true,
'ServiceCollection': true,
'Appliance': true,
'ApplianceCollection': true,
'User': true,
'UserCollection': true,
'Group': true,
'GroupCollection': true,
'ISCSITarget': true,
'DashboardConfig': true,
'Probe': true,
'ProbeCollection': true,
'NetworkDevice': true,
'NetworkDeviceCollection': true,
'NetworkConnection': true,
'NetworkConnectionCollection': true,
'ProbeRun': true,
'ProbeRunCollection': true,
'ProbeTemplate': true,
'ProbeTemplateCollection': true,
'Replica': true,
'ReplicaCollection': true,
'ReplicaTrail': true,
'ReplicaTrailCollection': true,
'ReplicaShare': true,
'ReplicaShareCollection': true,
'ReceiveTrail': true,
'ReceiveTrailCollection': true,
'TaskDef': true,
'TaskDefCollection': true,
'Task': true,
'TaskCollection': true,
'SFTP': true,
'SFTPCollection': true,
'AFP': true,
'AFPCollection': true,
'ReplicaReceive': true,
'ReplicaReceiveCollection': true,
'ReplicaReceiveTrail': true,
'ReplicaReceiveTrailCollection': true,
'AdvancedNFSExport': true,
'AdvancedNFSExportCollection': true,
'AccessKey': true,
'AccessKeyCollection': true,
'Certificate': true,
'ConfigBackup': true,
'ConfigBackupCollection': true,
'RockOn': true,
'RockOnCollection': true,
'RockOnVolume': true,
'RockOnVolumeCollection': true,
'RockOnPort': true,
'RockOnPortCollection': true,
'RockOnCustomConfig': true,
'RockOnCustomConfigCollection': true,
'RockOnEnvironment': true,
'RockOnEnvironmentCollection': true,
'EmailAccount': true,
'EmailAccountCollection': true,
'UpdateSubscription': true,
'UpdateSubscriptionCollection': true,
'RockStorPaginatedCollection': true,
'RockStorWidgets': true,
// Rockstor internal Globals
'displayUsagePieChart': true
}
};
};

0 comments on commit 24f874f

Please sign in to comment.