Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Validate engine versions + dependency list * Probably make all pass * Fix failing tests * Fix Node 12 support * Remove leftover todo comment * Improve naming of "results" post refactoring * Extract `hasErrors` and `hasWarnings` variables * Add coverage report * Exclude tests from type checks As else it checks `tmp/standard/`, which doesn't pass * Tweak type format * Extract utility methods * Remove non-needed @ts-ignore * Add unit tests for utils * We need to ensure we run the clone test first * Rename `build` to `lint` * Rename `Linter` to `StandardEngine` * Update README + CHANGELOG * Sync `dependabot.yml` with standard/standard repo See standard/standard#1752 * Update CHANGELOG.md Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
- Loading branch information
Showing
18 changed files
with
417 additions
and
155 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 |
---|---|---|
@@ -1,13 +1,21 @@ | ||
# For more information see: https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: 'daily' | ||
interval: "daily" | ||
labels: | ||
- "dependency" | ||
# Always increase the version requirement to match the new version. | ||
versioning-strategy: increase | ||
|
||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
ignore: | ||
- dependency-name: "actions/*" | ||
update-types: | ||
["version-update:semver-minor", "version-update:semver-patch"] | ||
schedule: | ||
interval: 'daily' | ||
interval: "daily" | ||
labels: | ||
- "github-actions" |
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,41 @@ | ||
name: 'linting' | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
lint: | ||
runs-on: 'ubuntu-latest' | ||
|
||
strategy: | ||
matrix: | ||
node-version: ['lts/*'] | ||
fail-fast: false | ||
|
||
steps: | ||
- name: 'Checkout Project' | ||
uses: 'actions/checkout@v2' | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: 'actions/setup-node@v2' | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: 'Cache Node dependencies' | ||
uses: 'actions/cache@v2' | ||
with: | ||
path: '~/.npm' | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: 'Install Dependencies' | ||
run: 'npm install' | ||
|
||
- name: 'Run Tests' | ||
run: 'npm run check' |
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
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules/ | ||
tmp/ | ||
coverage/ |
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
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
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.