diff --git a/.eslintrc.json b/.eslintrc.json index 744ee8b..be13c0d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,14 +1,16 @@ { "env": { + "browser": true, "commonjs": true, - "es2020": true, - "node": true + "es2021": true, + "jest": true }, "extends": [ - "airbnb-base" + "airbnb-base", + "prettier" ], "parserOptions": { - "ecmaVersion": 11 + "ecmaVersion": 12 }, "rules": { } diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..3a3cce5 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "npm" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6994cac --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,10 @@ +name: ci +on: + pull_request: + push: + branches: + - main + - 'releases/*' +jobs: + basic-validation-call: + uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@main diff --git a/action.yml b/action.yml index 13b1d9f..ace312c 100644 --- a/action.yml +++ b/action.yml @@ -20,5 +20,5 @@ outputs: stats: description: 'json object describing results.' runs: - using: 'node12' - main: 'index.js' \ No newline at end of file + using: 'node16' + main: 'dist/index.js' \ No newline at end of file