Skip to content

Commit adb7610

Browse files
Switched from ESLint to TSLint
1 parent d0e60db commit adb7610

File tree

9 files changed

+5147
-3643
lines changed

9 files changed

+5147
-3643
lines changed

.eslintrc.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# ESLint config
22
# http://eslint.org/docs/user-guide/configuring
3-
# https://jstools.dev/eslint-config-modular/
3+
# https://jstools.dev/eslint-config/
44

55
root: true
6-
7-
extends:
8-
- "@jsdevtools/modular/best-practices"
9-
- "@jsdevtools/modular/style"
10-
- "@jsdevtools/modular/browser"
11-
- "@jsdevtools/modular/node"
12-
- "@jsdevtools/modular/es6"
6+
extends: "@jsdevtools"

.github/workflows/CI-CD.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
run: npm run coverage:node
5454

5555
- name: Send code coverage results to Coveralls
56-
uses: coverallsapp/github-action@v1.0.1
56+
uses: coverallsapp/github-action@v1.1.0
5757
with:
5858
github-token: ${{ secrets.GITHUB_TOKEN }}
5959
parallel: true
@@ -97,7 +97,7 @@ jobs:
9797
cat coverage/*/lcov.info > ./coverage/lcov.info
9898
9999
- name: Send code coverage results to Coveralls
100-
uses: coverallsapp/github-action@v1.0.1
100+
uses: coverallsapp/github-action@v1.1.0
101101
with:
102102
github-token: ${{ secrets.GITHUB_TOKEN }}
103103
parallel: true
@@ -111,7 +111,7 @@ jobs:
111111
- browser_tests
112112
steps:
113113
- name: Let Coveralls know that all tests have finished
114-
uses: coverallsapp/github-action@v1.0.1
114+
uses: coverallsapp/github-action@v1.1.0
115115
with:
116116
github-token: ${{ secrets.GITHUB_TOKEN }}
117117
parallel-finished: true

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ Host Environment
77
[![License](https://img.shields.io/npm/l/@jsdevtools/host-environment.svg)](LICENSE)
88
[![Buy us a tree](https://img.shields.io/badge/Treeware-%F0%9F%8C%B3-lightgreen)](https://plant.treeware.earth/JS-DevTools/host-environment)
99

10-
[![Build Status](https://github.com/JS-DevTools/host-environment/workflows/CI-CD/badge.svg)](https://github.com/JS-DevTools/host-environment/blob/master/.github/workflows/CI-CD.yaml)
10+
[![Build Status](https://github.com/JS-DevTools/host-environment/workflows/CI-CD/badge.svg)](https://github.com/JS-DevTools/host-environment/actions)
1111
[![Coverage Status](https://coveralls.io/repos/github/JS-DevTools/host-environment/badge.svg?branch=master)](https://coveralls.io/github/JS-DevTools/host-environment)
1212
[![Dependencies](https://david-dm.org/JS-DevTools/host-environment.svg)](https://david-dm.org/JS-DevTools/host-environment)
1313

14-
[![OS and Browser Compatibility](https://jstools.dev/img/badges/ci-badges-with-ie.svg)](https://github.com/JS-DevTools/host-environment/blob/master/.github/workflows/CI-CD.yaml)
14+
[![OS and Browser Compatibility](https://jstools.dev/img/badges/ci-badges-with-ie.svg)](https://github.com/JS-DevTools/host-environment/actions)
1515

1616

1717
Host Environment is a [universal JavaScript](https://medium.com/@mjackson/universal-javascript-4761051b7ae9) library that makes it easy to detect what host environment your code is running in. It lets you answer questions like:
@@ -193,7 +193,7 @@ This property is `false` when running in Node.js. When running in a browser it i
193193

194194
Contributing
195195
--------------------------
196-
Contributions, enhancements, and bug-fixes are welcome! [File an issue](https://github.com/JS-DevTools/host-environment/issues) on GitHub and [submit a pull request](https://github.com/JS-DevTools/host-environment/pulls).
196+
Contributions, enhancements, and bug-fixes are welcome! [Open an issue](https://github.com/JS-DevTools/host-environment/issues) on GitHub and [submit a pull request](https://github.com/JS-DevTools/host-environment/pulls).
197197

198198
#### Building
199199
To build the project locally on your computer:

karma.conf.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ module.exports = karmaConfig({
1010
sourceDir: "esm",
1111
fixtures: "test/fixtures/**/*.js",
1212
browsers: {
13-
chrome: true,
14-
firefox: host.os.linux,
15-
safari: host.os.linux, // SauceLabs
16-
edge: host.os.linux, // SauceLabs
13+
chrome: host.ci ? host.os.linux : true,
14+
firefox: host.ci ? host.os.linux : true,
15+
safari: host.ci ? host.os.linux : host.os.mac,
16+
edge: host.ci ? host.os.linux : host.os.windows,
1717
ie: host.os.windows,
1818
},
1919
config: {

0 commit comments

Comments
 (0)