Skip to content

Commit

Permalink
Updating development stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
fboes committed Jun 21, 2022
1 parent 7d65907 commit 3c89f11
Show file tree
Hide file tree
Showing 11 changed files with 157 additions and 277 deletions.
26 changes: 26 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true
},
extends: [
'standard'
],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
semi: ['error', 'always']
},
overrides: [
{
files: [
"test/*.js"
],
env: {
mocha: true
}
}
]
}
61 changes: 0 additions & 61 deletions .eslintrc.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm test
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

5 changes: 0 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ You will need:

1. A [Github account](https://github.com/) and Git
2. [NodeJs](https://nodejs.org/) with NPM installed
3. [Gulp](https://gulpjs.com/) installed globally
4. [ESLint](https://eslint.org/) installed globally
5. [Nodeunit](https://github.com/caolan/nodeunit) installed globally

For Gulp, ESLint and Nodeunit call `npm install -g gulp-cli eslint nodeunit` from command line.

Making changes
--------------
Expand Down
62 changes: 0 additions & 62 deletions gulpfile.js

This file was deleted.

18 changes: 9 additions & 9 deletions lib/convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,39 @@
* Convert units
*/
const convert = {
celsiusToFahrenheit: function(celsius) {
celsiusToFahrenheit: function (celsius) {
return celsius * 1.8 + 32;
},

feetToMeters: function(feet) {
feetToMeters: function (feet) {
return feet * 0.3048;
},

milesToMeters: function(miles) {
milesToMeters: function (miles) {
return miles * 1609.344;
},

metersToMiles: function(meters) {
metersToMiles: function (meters) {
return meters / 1609.344;
},

inhgToKpa: function(inHg) {
inhgToKpa: function (inHg) {
return inHg / 0.29529988;
},

kpaToInhg: function(kpa) {
kpaToInhg: function (kpa) {
return kpa * 0.29529988;
},

kphToMps: function(kph) {
kphToMps: function (kph) {
return kph / 3600 * 1000;
},

mpsToKts: function(mps) {
mpsToKts: function (mps) {
return mps * 1.9438445;
},

ktsToMps: function(kts) {
ktsToMps: function (kts) {
return kts / 1.9438445;
}
};
Expand Down
Loading

0 comments on commit 3c89f11

Please sign in to comment.