Skip to content

Commit bf64c19

Browse files
committed
chore(edward) lint
1 parent b2dc924 commit bf64c19

File tree

8 files changed

+76
-32
lines changed

8 files changed

+76
-32
lines changed

.github/main.workflow

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
workflow "Push" {
2+
resolves = ["lint", "coverage"]
3+
on = "push"
4+
}
5+
6+
action "lint" {
7+
uses = "gimenete/[email protected]"
8+
}
9+
10+
action "coverage" {
11+
uses = "coverallsapp/[email protected]"
12+
}

.github/workflows/nodejs.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Node CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: [14.x, 15.x]
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
21+
- name: Install Redrun
22+
run:
23+
npm i redrun -g
24+
25+
- name: Install
26+
run:
27+
npm install
28+
29+
- name: Bootstrap
30+
run:
31+
redrun bootstrap
32+
33+
- name: Lint
34+
run:
35+
redrun lint
36+
37+
- name: Coverage
38+
run:
39+
redrun coverage report
40+
41+
- name: Coveralls
42+
uses: coverallsapp/github-action@master
43+
with:
44+
github-token: ${{ secrets.GITHUB_TOKEN }}
45+

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ modules/pako/dist
1717
!modules/pako/dist/paco.min.js
1818

1919
yarn-error.log
20-
.putoutcache
2120

21+
coverage

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ modules/ace-builds
1010

1111
yarn-error.log
1212

13-
madrun.js
1413

14+
coverage

.putout.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"match": {
3+
"client": {
4+
"declare-undefined-variables": "off"
5+
},
36
"client/edward.js": {
47
"remove-console": "off"
58
}

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Edward [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL]
22

33
[NPMIMGURL]: https://img.shields.io/npm/v/edward.svg?style=flat
4-
[BuildStatusIMGURL]: https://img.shields.io/travis/cloudcmd/edward/master.svg?style=flat
4+
[BuildStatusURL]: https://github.com/cloudcmd/edward/actions?query=workflow%3A%22Node+CI%22 "Build Status"
5+
[BuildStatusIMGURL]: https://github.com/cloudcmd/edward/workflows/Node%20CI/badge.svg
56
[DependencyStatusIMGURL]: https://img.shields.io/david/cloudcmd/edward.svg?style=flat
67
[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
78
[NPM_INFO_IMG]: https://nodei.co/npm/edward.png?downloads=true&&stars&&downloadRank "npm install edward"

assets/index.html

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,19 @@
88
<div class="edit" data-name="js-edit"></div>
99
<script src="/edward/edward.js"></script>
1010
<script>
11-
(function() {
12-
'use strict';
13-
14-
window.addEventListener('DOMContentLoaded', function domLoad() {
15-
edward('[data-name="js-edit"]', function(editor) {
16-
editor
17-
.focus()
18-
.setOptions({
19-
fontSize: '16px',
20-
fontFamily: 'Droid Sans Mono'
21-
});
22-
});
23-
24-
window.removeEventListener('DOMContentLoaded', domLoad);
11+
/* global edward */
12+
window.addEventListener('DOMContentLoaded', function domLoad() {
13+
edward('[data-name="js-edit"]', (editor) => {
14+
editor
15+
.focus()
16+
.setOptions({
17+
fontSize: '16px',
18+
fontFamily: 'Droid Sans Mono',
19+
});
2520
});
26-
})()
21+
22+
window.removeEventListener('DOMContentLoaded', domLoad);
23+
});
2724
</script>
2825
</body>
2926
</html>

0 commit comments

Comments
 (0)