Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
d3f3657f
Commit
d3f3657f
authored
Jul 11, 2016
by
Robert Knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add lint rule requiring strict mode
parent
e6da5b0e
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
1 deletion
+15
-1
.eslintrc
.eslintrc
+1
-0
date-util.js
h/static/scripts/date-util.js
+2
-0
spinner.js
h/static/scripts/directive/spinner.js
+2
-1
persona.js
h/static/scripts/filter/persona.js
+2
-0
persona-test.js
h/static/scripts/filter/test/persona-test.js
+2
-0
frame-rpc.js
h/static/scripts/frame-rpc.js
+2
-0
bootstrap.js
h/static/scripts/test/bootstrap.js
+2
-0
create-github-release.js
scripts/create-github-release.js
+2
-0
No files found.
.eslintrc
View file @
d3f3657f
...
@@ -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,
...
...
h/static/scripts/date-util.js
View file @
d3f3657f
'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
;
...
...
h/static/scripts/directive/spinner.js
View file @
d3f3657f
'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
...
...
h/static/scripts/filter/persona.js
View file @
d3f3657f
'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
...
...
h/static/scripts/filter/test/persona-test.js
View file @
d3f3657f
'use strict'
;
var
persona
=
require
(
'../persona'
);
var
persona
=
require
(
'../persona'
);
describe
(
'persona'
,
function
()
{
describe
(
'persona'
,
function
()
{
...
...
h/static/scripts/frame-rpc.js
View file @
d3f3657f
'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
...
...
h/static/scripts/test/bootstrap.js
View file @
d3f3657f
'use strict'
;
// Expose the sinon assertions.
// Expose the sinon assertions.
sinon
.
assert
.
expose
(
assert
,
{
prefix
:
null
});
sinon
.
assert
.
expose
(
assert
,
{
prefix
:
null
});
...
...
scripts/create-github-release.js
View file @
d3f3657f
#!/usr/bin/env node
#!/usr/bin/env node
'use strict'
;
/**
/**
* Creates a GitHub release for the repository.
* Creates a GitHub release for the repository.
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment