From 0a9cadb7a6fabc00af62048a6f5d5fffa7035145 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Wed, 30 Mar 2022 18:09:55 -0400 Subject: [PATCH] Update linting and CI configs. --- .eslintrc.js | 9 +++++++-- .github/workflows/main.yml | 5 +++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 168924e..eaf2ed6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,7 +1,12 @@ module.exports = { root: true, - extends: ['digitalbazaar'], + parserOptions: { + // this is required for dynamic import() + ecmaVersion: 2020 + }, env: { node: true - } + }, + extends: ['digitalbazaar', 'digitalbazaar/jsdoc'], + ignorePatterns: ['node_modules/'] }; diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9062b02..bafe3ad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,13 +1,14 @@ -name: Lint CI +name: Bedrock Node.js CI on: [push] jobs: lint: runs-on: ubuntu-latest + timeout-minutes: 10 strategy: matrix: - node-version: [12.x] + node-version: [14.x] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }}