Skip to content

Commit

Permalink
chore: upgrade things
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle committed Oct 16, 2022
1 parent 43bb110 commit 179e487
Show file tree
Hide file tree
Showing 13 changed files with 377 additions and 339 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# https://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/*
6 changes: 4 additions & 2 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends:
- chartjs
- plugin:es/no-new-in-es2019
- plugin:es/restrict-to-es2018

env:
es6: true
Expand All @@ -18,7 +18,7 @@ globals:
waitForResize: true

parserOptions:
ecmaVersion: 2018
ecmaVersion: 2022
sourceType: module
ecmaFeatures:
impliedStrict: true
Expand All @@ -33,6 +33,8 @@ rules:
max-statements: ["warn", 30]
no-empty-function: "off"
no-use-before-define: ["error", { "functions": false }]
no-var: "error"
prefer-const: "error"
# disable everything, except Rest/Spread Properties in ES2018
es/no-async-iteration: "error"
es/no-malformed-template-literals: "error"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
- name: Setup and build
run: |
npm ci
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Setup and build
run: |
Expand Down
Loading

0 comments on commit 179e487

Please sign in to comment.