Commit d3f3657f authored by Robert Knight's avatar Robert Knight

Add lint rule requiring strict mode

parent e6da5b0e
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
"error", "error",
{ allow: ["warn", "error"] }, { allow: ["warn", "error"] },
], ],
"strict": ["error", "safe"],
}, },
"parserOptions": { "parserOptions": {
"ecmaVersion": 6, "ecmaVersion": 6,
......
'use strict';
// cached date formatting instance. // cached date formatting instance.
// See https://github.com/hypothesis/h/issues/2820#issuecomment-166285361 // See https://github.com/hypothesis/h/issues/2820#issuecomment-166285361
var formatter; var formatter;
......
'use strict';
module.exports = ['$animate', function($animate) { module.exports = ['$animate', function($animate) {
'use strict';
return { return {
link: function(scope, elem) { link: function(scope, elem) {
// ngAnimate conflicts with the spinners own CSS // ngAnimate conflicts with the spinners own CSS
......
'use strict';
/** /**
* Parses H account names of the form 'acct:<username>@<provider>' * Parses H account names of the form 'acct:<username>@<provider>'
* into a {username, provider} object or null if the input does not * into a {username, provider} object or null if the input does not
......
'use strict';
var persona = require('../persona'); var persona = require('../persona');
describe('persona', function () { describe('persona', function () {
......
'use strict';
/** This software is released under the MIT license: /** This software is released under the MIT license:
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
......
'use strict';
// Expose the sinon assertions. // Expose the sinon assertions.
sinon.assert.expose(assert, {prefix: null}); sinon.assert.expose(assert, {prefix: null});
......
#!/usr/bin/env node #!/usr/bin/env node
'use strict';
/** /**
* Creates a GitHub release for the repository. * Creates a GitHub release for the repository.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment