Skip to content

Commit

Permalink
feat: add guards and use spacecat-shared-utils (#6)
Browse files Browse the repository at this point in the history
* feat: add guards and use spacecat-shared-utils

* chore: add jsdoc

* chore: update readme

* chore: update readme

* fix: TS support for eslint, type defs for utils

* fix: linting
  • Loading branch information
solaris007 authored Nov 29, 2023
1 parent 0625cbf commit 27143cf
Show file tree
Hide file tree
Showing 20 changed files with 602 additions and 57 deletions.
25 changes: 23 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,27 @@

module.exports = {
root: true,
extends: '@adobe/helix',
plugins: ['import'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
extends: [
'@adobe/helix',
'plugin:@typescript-eslint/recommended',
],
plugins: [
'import',
'@typescript-eslint',
],
overrides: [
{
files: ['*.ts'],
rules: {},
},
{
files: ['*.js', '*.cjs'],
rules: {},
},
],
};
243 changes: 240 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
"@semantic-release/changelog": "6.0.3",
"@semantic-release/git": "10.0.1",
"@semantic-release/npm": "9.0.2",
"@typescript-eslint/eslint-plugin": "6.13.1",
"@typescript-eslint/parser": "6.13.1",
"ajv": "8.12.0",
"c8": "8.0.1",
"eslint": "8.54.0",
Expand All @@ -41,7 +43,8 @@
"mocha-multi-reporters": "1.5.1",
"nock": "13.3.8",
"semantic-release": "19.0.5",
"semantic-release-monorepo": "7.0.5"
"semantic-release-monorepo": "7.0.5",
"typescript": "5.3.2"
},
"lint-staged": {
"*.js": "eslint"
Expand Down
Loading

0 comments on commit 27143cf

Please sign in to comment.