mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-09 16:32:39 +01:00
b6e0c76c7d
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
97 lines
2.1 KiB
Text
97 lines
2.1 KiB
Text
{
|
|
"exclude": [
|
|
"(^externals/)",
|
|
"(^webroot/rsrc/externals/)",
|
|
"(/__tests__/data/)"
|
|
],
|
|
"linters": {
|
|
"chmod": {
|
|
"type": "chmod"
|
|
},
|
|
"filename": {
|
|
"type": "filename"
|
|
},
|
|
"generated": {
|
|
"type": "generated"
|
|
},
|
|
"javelin": {
|
|
"type": "javelin",
|
|
"include": "(\\.js$)",
|
|
"exclude": [
|
|
"(^support/aphlict/)"
|
|
]
|
|
},
|
|
"jshint-browser": {
|
|
"type": "jshint",
|
|
"include": "(\\.js$)",
|
|
"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",
|
|
"include": [
|
|
"(^src/docs/book/.*\\.book$)",
|
|
"(^support/lint/jshintrc$)",
|
|
"(^\\.arcconfig$)",
|
|
"(^\\.arclint$)",
|
|
"(\\.json$)"
|
|
]
|
|
},
|
|
"merge-conflict": {
|
|
"type": "merge-conflict"
|
|
},
|
|
"nolint": {
|
|
"type": "nolint"
|
|
},
|
|
"phutil-library": {
|
|
"type": "phutil-library",
|
|
"include": "(\\.php$)"
|
|
},
|
|
"phutil-xhpast": {
|
|
"type": "phutil-xhpast",
|
|
"include": "(\\.php$)",
|
|
"phutil-xhpast.deprecated.functions": {
|
|
"phutil_escape_html": "The phutil_escape_html() function is deprecated. Raw strings passed to phutil_tag() or hsprintf() are escaped automatically."
|
|
}
|
|
},
|
|
"spelling": {
|
|
"type": "spelling"
|
|
},
|
|
"text": {
|
|
"type": "text",
|
|
"exclude": [
|
|
"(^\\.arclint)",
|
|
"(^resources/sql/quickstart.sql)"
|
|
]
|
|
},
|
|
"text-without-length": {
|
|
"type": "text",
|
|
"severity": {
|
|
"3": "disabled"
|
|
},
|
|
"include": [
|
|
"(^\\.arclint)",
|
|
"(^resources/sql/quickstart.sql)"
|
|
]
|
|
},
|
|
"xhpast": {
|
|
"type": "xhpast",
|
|
"include": "(\\.php$)",
|
|
"severity": {
|
|
"16": "advice",
|
|
"34": "error"
|
|
},
|
|
"xhpast.php-version": "5.2.3",
|
|
"xhpast.php-version.windows": "5.3.0"
|
|
}
|
|
}
|
|
}
|