Skip to content

Commit

Permalink
Update JS dependencies, use Node 16
Browse files Browse the repository at this point in the history
- Update all JS dependencies to latest version
- Use Node 16 on CI
- Add new lint rules
- Add some gitignore entries for debug files
  • Loading branch information
silverwind committed May 13, 2021
1 parent 52f8dcd commit 403e134
Show file tree
Hide file tree
Showing 5 changed files with 1,229 additions and 731 deletions.
10 changes: 5 additions & 5 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ trigger:
steps:
- name: deps-frontend
pull: always
image: node:14
image: node:16
commands:
- make node_modules

- name: lint-frontend
image: node:14
image: node:16
commands:
- make lint-frontend
depends_on: [deps-frontend]
Expand Down Expand Up @@ -58,7 +58,7 @@ steps:
TAGS: bindata gogit sqlite sqlite_unlock_notify

- name: checks-frontend
image: node:14
image: node:16
commands:
- make checks-frontend
depends_on: [deps-frontend]
Expand All @@ -71,13 +71,13 @@ steps:
depends_on: [lint-backend]

- name: test-frontend
image: node:14
image: node:16
commands:
- make test-frontend
depends_on: [lint-frontend]

- name: build-frontend
image: node:14
image: node:16
commands:
- make frontend
depends_on: [test-frontend]
Expand Down
4 changes: 4 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ rules:
unicorn/no-array-instanceof: [0]
unicorn/no-array-push-push: [2]
unicorn/no-console-spaces: [0]
unicorn/no-document-cookie: [2]
unicorn/no-fn-reference-in-iterator: [0]
unicorn/no-for-loop: [0]
unicorn/no-hex-escape: [0]
Expand All @@ -389,6 +390,7 @@ rules:
unicorn/numeric-separators-style: [0]
unicorn/prefer-add-event-listener: [2]
unicorn/prefer-array-find: [2]
unicorn/prefer-array-flat-map: [2]
unicorn/prefer-array-flat: [2]
unicorn/prefer-array-index-of: [2]
unicorn/prefer-array-some: [2]
Expand All @@ -399,8 +401,10 @@ rules:
unicorn/prefer-includes: [2]
unicorn/prefer-math-trunc: [2]
unicorn/prefer-modern-dom-apis: [0]
unicorn/prefer-module: [2]
unicorn/prefer-negative-index: [2]
unicorn/prefer-node-append: [0]
unicorn/prefer-node-protocol: [0]
unicorn/prefer-node-remove: [0]
unicorn/prefer-number-properties: [0]
unicorn/prefer-optional-catch-binding: [2]
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ cpu.out
/integrations/mssql.ini
/node_modules
/yarn.lock
/yarn-error.log
/npm-debug.log*
/public/js
/public/serviceworker.js
/public/css
Expand Down
Loading

0 comments on commit 403e134

Please sign in to comment.