Skip to content

Commit

Permalink
fix: dependencies and use Node.js 16 (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolson authored Jul 22, 2024
1 parent efab4db commit a06fdd6
Show file tree
Hide file tree
Showing 8 changed files with 20,489 additions and 18,022 deletions.
10 changes: 5 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const unitTestsExtends = ['plugin:ava/recommended']
const cypressTestsExtends = ['plugin:cypress/recommended', 'eslint-config-sinon', 'plugin:chai-friendly/recommended']
const commonExtends = ['plugin:prettier/recommended', 'plugin:unicorn/recommended', 'plugin:radar/recommended']
const commonExtends = ['plugin:prettier/recommended', 'plugin:unicorn/recommended', 'plugin:sonarjs/recommended']
const tsExtends = ['airbnb-typescript/base', ...commonExtends]
const jsExtends = ['airbnb-base', ...commonExtends]

Expand All @@ -9,7 +9,7 @@ const UNIT_TESTS_TS_OVERRIDE = {
files: ['test/**/*.ts', 'test/**/*.tsx'],
extends: [...unitTestsExtends, ...tsExtends],
rules: {
'radar/no-duplicate-string': 'off',
'sonarjs/no-duplicate-string': 'off',
'no-unused-expressions': 'off',
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'],
},
Expand All @@ -18,15 +18,15 @@ const UNIT_TESTS_JS_OVERRIDE = {
files: ['test/**/*.js'],
extends: [...unitTestsExtends, ...jsExtends],
rules: {
'radar/no-duplicate-string': 'off',
'sonarjs/no-duplicate-string': 'off',
'no-unused-expressions': 'off',
},
}
const CYPRESS_TS_OVERRIDE = {
files: ['cypress/**/*.ts'],
extends: [...cypressTestsExtends, ...tsExtends],
rules: {
'radar/no-duplicate-string': 'off',
'sonarjs/no-duplicate-string': 'off',
'no-unused-expressions': 'off',
},
}
Expand All @@ -37,7 +37,7 @@ const CYPRESS_JS_OVERRIDE = {
ecmaVersion: 2020,
},
rules: {
'radar/no-duplicate-string': 'off',
'sonarjs/no-duplicate-string': 'off',
'no-unused-expressions': 'off',
quotes: 'off',
semi: 'off',
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
git config --global url."https://github.com/".insteadOf
ssh://[email protected]/
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16
- name: Install dependencies
run: |
npm ci
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
git config --global url."https://github.com/".insteadOf
ssh://[email protected]
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16
- name: Install dependencies
run: |
npm ci
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16
- name: Install dependencies
run: |
npm ci
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dist/
coverage/
cypress/videos/
cypress/screenshots/
cypress/support/
.vscode
.dccache
# is generated at build time, should not be commited
Expand Down
Loading

0 comments on commit a06fdd6

Please sign in to comment.