forked from raywo/MMM-PublicTransportHafas
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* let -> const * let -> const * Add PTHAFASDomBuilder as global variable * Remove 'self' because it's never used * eslint * eslint + prettier * Add prettier * fix test * Switch to eslint-config-airbnb-base for eslint * Remove "use strict" "use strict" is unnecessary inside of modules * Add space after // * Simplify methods * Change string concatenation * Remove unnecessary variable assignments * Use typeof * Prettier * Add moment as dependency * Use camel case * Remove unnecessary 'else' after 'return' * Change = to += * "default-case": "off" * Use static for methods without this * Revert "Use static for methods without this" This reverts commit 95064a9. * Add eslint rules * Use this * Add JSDoc comments * Raise version to 1.2.0 * Update README.md * Add a GitHub Actions CI workflow * Remove Preconditions * let UserPresence -> var UserPresence To fix #34 * Bump eslint from 8.7.0 to 8.8.0 (#33) Bumps [eslint](https://github.com/eslint/eslint) from 8.7.0 to 8.8.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.7.0...v8.8.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Remove dependency from "array-unique". * 'arrayUnique' was used before it was defined * Remove dependency from "arr-diff" * Raise version * Add configuration option `ignoreRelatedStations` * Optimize configuration part * Raise version to 1.3.0 * Fix typo * Show "plattform" as default Those who do not need it can deactivate it via `tableHeaderOrder`. * Optimize configuration part * Add css for Magdeburg * Add note for city css files * Fix line 8 * Use 'stylelint' for css files * Update lint command * Use kebab-case for class names * Optimize * Add blank * Raise version to 1.4.0 * npm install --omit=dev Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
f00103e
commit 5037dba
Showing
20 changed files
with
5,104 additions
and
658 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module.exports = { | ||
env: { | ||
es6: true, | ||
browser: true, | ||
commonjs: true, | ||
es2021: true | ||
}, | ||
extends: ["airbnb-base", "prettier"], | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
sourceType: "module" | ||
}, | ||
plugins: ["prettier"], | ||
root: true, | ||
rules: { | ||
"default-case": "off", | ||
"global-require": "off", | ||
"prefer-destructuring": "off", | ||
"prettier/prettier": "error", | ||
"import/no-dynamic-require": "off", | ||
"import/no-unresolved": "off" | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Run Automated Tests | ||
on: | ||
push: | ||
branches: [main, develop, test] | ||
pull_request: | ||
branches: [main, develop, test] | ||
jobs: | ||
run-lint: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
strategy: | ||
matrix: | ||
node-version: ['16', '17'] | ||
steps: | ||
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | ||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | ||
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | ||
- run: echo "🖥️ The workflow is now ready to test your code on the runner." | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- name: Install dependencies and run tests | ||
run: | | ||
npm install | ||
npm run lint | ||
- run: echo "🍏 This job's status is ${{ job.status }}." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
trailingComma: "none", | ||
tabWidth: 2, | ||
semi: true, | ||
arrowParens: "always" | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": ["stylelint-config-standard", "stylelint-config-prettier"], | ||
"plugins": ["stylelint-prettier"], | ||
"root": true, | ||
"rules": { | ||
"prettier/prettier": true, | ||
"rule-empty-line-before": null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.