Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15392187
D11071.id26584.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11071.id26584.diff
View Options
diff --git a/.arclint b/.arclint
--- a/.arclint
+++ b/.arclint
@@ -21,10 +21,20 @@
"(^support/aphlict/)"
]
},
- "jshint": {
+ "jshint-browser": {
"type": "jshint",
"include": "(\\.js$)",
- "jshint.jshintrc": "support/lint/jshintrc"
+ "exclude": [
+ "(^support/aphlict/server/.*\\.js$)"
+ ],
+ "jshint.jshintrc": "support/lint/browser.jshintrc"
+ },
+ "jshint-node": {
+ "type": "jshint",
+ "include": [
+ "(^support/aphlict/server/.*\\.js$)"
+ ],
+ "jshint.jshintrc": "support/lint/node.jshintrc"
},
"json": {
"type": "json",
diff --git a/support/lint/jshintrc b/support/lint/browser.jshintrc
rename from support/lint/jshintrc
rename to support/lint/browser.jshintrc
diff --git a/support/lint/jshintrc b/support/lint/node.jshintrc
rename from support/lint/jshintrc
rename to support/lint/node.jshintrc
--- a/support/lint/jshintrc
+++ b/support/lint/node.jshintrc
@@ -16,8 +16,7 @@
"globals": {
"JX": false,
- "Raphael": false,
"__DEV__": false
},
- "browser": true
+ "node": true
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 16, 1:41 PM (2 d, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7701931
Default Alt Text
D11071.id26584.diff (1 KB)
Attached To
Mode
D11071: Define a seperate JSHint configuration for NodeJS files
Attached
Detach File
Event Timeline
Log In to Comment