You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2020/04/06 14:32:04 UTC
[trafficcontrol] branch master updated: Update .jshintrc (#4590)
This is an automated email from the ASF dual-hosted git repository.
mitchell852 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new d54328c Update .jshintrc (#4590)
d54328c is described below
commit d54328c8797c8be3d12daa00f05cacab60817935
Author: Steve Hamrick <sh...@users.noreply.github.com>
AuthorDate: Mon Apr 6 08:31:57 2020 -0600
Update .jshintrc (#4590)
* Sort lines
* Remove deprecated
* Ignore files
* Forgot bower components
* Properly ignore
* Define global vars/frameworks
* Fix issue
---
traffic_portal/.jshintignore | 7 +++++++
traffic_portal/.jshintrc | 31 ++++++++++++++++++++-----------
2 files changed, 27 insertions(+), 11 deletions(-)
diff --git a/traffic_portal/.jshintignore b/traffic_portal/.jshintignore
new file mode 100644
index 0000000..a8a3bb3
--- /dev/null
+++ b/traffic_portal/.jshintignore
@@ -0,0 +1,7 @@
+node_modules/*
+etc/*
+docker/*
+build/*
+app/dist/*
+app/bower_components/*
+app/src/assets/js/*
diff --git a/traffic_portal/.jshintrc b/traffic_portal/.jshintrc
index 6b2ddc7..dba6910 100644
--- a/traffic_portal/.jshintrc
+++ b/traffic_portal/.jshintrc
@@ -1,23 +1,32 @@
{
- "browser": true,
- "esnext": true,
"bitwise": true,
- "camelcase": true,
+ "browser": true,
"curly": true,
+ "devel": true,
"eqeqeq": true,
- "immed": true,
- "indent": 2,
+ "esversion": 6,
+ "jasmine": true,
+ "jquery": true,
"latedef": true,
- "newcap": true,
+ "module": true,
"noarg": true,
- "quotmark": "single",
"regexp": true,
- "undef": true,
- "unused": true,
+ "smarttabs": true,
"strict": true,
"trailing": true,
- "smarttabs": true,
+ "undef": true,
+ "unused": true,
"globals": {
- "angular": false
+ "_": false,
+ "angular": false,
+ "browser": false,
+ "by": false,
+ "element": false,
+ "exports": false,
+ "module": false,
+ "moment": false,
+ "process": false,
+ "protractor": false,
+ "require": false
}
}