-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* GPII-3083: (50 commits) GPII-3083: Added handlebars as a dev dependency to improve reliability of using handlebars in browser fixtures. GPII-3083: Cleaned up remaining message key examples. GPII-3038: Updated remaining overly generic <Object> references in JSDocs. GPII-3083: Tweaked environment detection based on errors requiring individual files from Node.js. GPII-3083 Standardised message key namespacing in code and docs. GPII-3083: Fixed duplicate Chrome Testem runs. GPII-3083: Refined and extended JSDoc typedefs. GPII-3080: Added JSDoc typedefs for several object types. GPII-3083: Added JSDoc typedef for AJV errors. GPII-3083: Cleaned up schema-validated and schema-validated model docs. Removed "fluid.get" check around schemaValidationResults. GPII-3083: Downgraded nyc dependency to avoid empty coverage reports. GPII-3083: Added "testem" as a direct (dev) dependency. Updated dependencies to pick up newer versions. GPII-3083: Removed lingering instances of "typeof require" pattern. Standardised "Ajv" name to match browser global case. GPII-3083: Replace lingering instances of "FSL" throughout. GPII-3083: Refactored "node vs. web" check for cross-environment scripts. GPII-3083: Disallowed "additionalProperties" in GSS schemas. GPII-3083: Updated kettle middleware to add a configurable status code when a validation error occurs. GPII-3083: Removed crufty comment. GPII-3083: Added default rules to kettle validation request handler in case some reuses that grade in their own work withour our options wiring. ...
- Loading branch information
Showing
114 changed files
with
5,833 additions
and
10,354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ | |
"plugins": [ | ||
"markdown" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"extends": "eslint-config-fluid" | ||
} | ||
"extends": "eslint-config-fluid" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,4 +45,3 @@ vagrant_destroy: | |
- vagrant destroy -f | ||
- "rm -fr ../.vagrant-$CI_COMMIT_SHA" | ||
when: always | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"reporter": ["html", "text-summary"], | ||
"report-dir": "reports", | ||
"temp-directory": "coverage", | ||
"include": [ "./src/**/*.js", "./index.js"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,18 @@ | ||
/* eslint-env node */ | ||
"use strict"; | ||
|
||
module.exports = function (grunt) { | ||
grunt.initConfig({ | ||
eslint: { | ||
js: { | ||
src: ["./src/**/*.js", "./tests/**/*.js", "./*.js"] | ||
}, | ||
md: { | ||
options: { | ||
configFile: ".eslintrc-md.json" | ||
}, | ||
src: ["./*.md", "./src/docs/**/*.md"] | ||
} | ||
}, | ||
jsonlint: { | ||
src: ["./src/**/*.json", "tests/**/*.json", "./*.json"] | ||
}, | ||
json5lint: { | ||
src: ["./src/**/*.json5", "tests/**/*.json5", "./*.json5"] | ||
}, | ||
mdjsonlint: { | ||
src: ["./*.md", "./**/*.md", "!./node_modules/**"] | ||
}, | ||
markdownlint: { | ||
full: { | ||
options: { | ||
config: { | ||
// See https://github.com/DavidAnson/markdownlint#rules--aliases for rule names and meanings. | ||
"no-emphasis-as-header": false, // We use this far too often in fairly legitimate contexts i.e. for a line of actual emphasis that we should discuss | ||
"no-duplicate-header": false, // We use duplicate nested headers, as in section 1 and 2 both have the same sub-section name. | ||
"no-trailing-punctuation": false, // This catches headings that are questions, which seems wrong. | ||
"first-header-h1": false, // Docpad takes care of this for us. | ||
"first-line-h1": false, // Docpad also takes care of this for us. | ||
"header-style": {style: "atx"}, // Although we use a mix, in discussion with various team members, we agreed to try this for now. | ||
"no-inline-html": false, // Obviously we need HTML | ||
"line-length": false, | ||
"ol-prefix": {style: "ordered"} // 1. 2. 3. etc | ||
} | ||
}, | ||
src: ["./*.md", "src/docs/**/*.md"] | ||
lintAll: { | ||
sources: { | ||
md: [ "./*.md","./docs/*.md"], | ||
js: ["./src/**/*.js", "./tests/**/*.js", "./*.js"], | ||
json: ["./src/**/*.json", "./tests/**/*.json", "./*.json"], | ||
json5: ["./src/**/*.json5", "./tests/**/*.json5", "./*.json5"], | ||
other: ["./.*"] | ||
} | ||
}, | ||
mdlint: ["./*.md", "src/docs/**/*.md"] | ||
} | ||
}); | ||
|
||
grunt.loadNpmTasks("grunt-jsonlint"); | ||
grunt.loadNpmTasks("fluid-grunt-json5lint"); | ||
grunt.loadNpmTasks("fluid-grunt-eslint"); | ||
grunt.loadNpmTasks("grunt-markdownlint"); | ||
grunt.loadNpmTasks("gpii-grunt-mdjson-lint"); | ||
|
||
grunt.registerTask("lint", "Apply eslint, jsonlint, json5lint, and markdownlint", ["eslint:js", "jsonlint", "markdownlint", "eslint:md", "mdjsonlint"]); | ||
grunt.loadNpmTasks("gpii-grunt-lint-all"); | ||
grunt.registerTask("lint", "Perform all standard lint checks.", ["lint-all"]); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.