@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Define a seperate JSHint configuration for NodeJS files

Summary: Currently, we assume that all JavaScript files are for use in a browser. This is not true for the NodeJS Aphlict server code. Split the current JSHint configuration into `jshint-browser` and `jshint-node`.

Test Plan: `arc lint`

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11071

authored by

Joshua Spence and committed by
epriestley
b6e0c76c 07dbd520

+34 -2
+12 -2
.arclint
··· 21 21 "(^support/aphlict/)" 22 22 ] 23 23 }, 24 - "jshint": { 24 + "jshint-browser": { 25 25 "type": "jshint", 26 26 "include": "(\\.js$)", 27 - "jshint.jshintrc": "support/lint/jshintrc" 27 + "exclude": [ 28 + "(^support/aphlict/server/.*\\.js$)" 29 + ], 30 + "jshint.jshintrc": "support/lint/browser.jshintrc" 31 + }, 32 + "jshint-node": { 33 + "type": "jshint", 34 + "include": [ 35 + "(^support/aphlict/server/.*\\.js$)" 36 + ], 37 + "jshint.jshintrc": "support/lint/node.jshintrc" 28 38 }, 29 39 "json": { 30 40 "type": "json",
support/lint/jshintrc support/lint/browser.jshintrc
+22
support/lint/node.jshintrc
··· 1 + { 2 + "bitwise": true, 3 + "curly": true, 4 + "immed": true, 5 + "indent": 2, 6 + "latedef": true, 7 + "newcap": true, 8 + "noarg": true, 9 + "quotmark": "single", 10 + "undef": true, 11 + "unused": true, 12 + 13 + "expr": true, 14 + "loopfunc": true, 15 + "sub": true, 16 + 17 + "globals": { 18 + "JX": false, 19 + "__DEV__": false 20 + }, 21 + "node": true 22 + }