Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintrc

This file was deleted.

11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,22 @@ jobs:
run: ls -R
- name: Release
id: release-plugin
uses: JS-DevTools/npm-publish@v2.2.0
uses: JS-DevTools/npm-publish@v3
with:
token: "${{ secrets.NPM_TOKEN }}"
access: public
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@v1.3.1
- uses: actions/checkout@v4
if: ${{ steps.release-plugin.conclusion == 'success' }}
with:
ref: 'prod-qa-pipeline'
- uses: EndBug/add-and-commit@v9
if: ${{ steps.release-plugin.conclusion == 'success' }}
with:
message: "Released version ${{ steps.package-version.outputs.current-version }}"
push: true
- name: github-release
id: github-release
env:
Expand Down
7 changes: 7 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
npm run prepack && npm run lint-staged

echo "\n\n Running Talisman secret scan..."
talisman --githook pre-commit

echo "\n\n Running Snyk vulnerability scan..."
snyk test --all-projects --fail-on=all
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run test
28 changes: 28 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// @ts-check

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommended,
{
files: ['src/**/*.{js,ts}'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@/semi': ['error'],
'@typescript-eslint/array-type': ['error'],
'@/no-throw-literal': ['error'],
quotes: 'off',
'@/quotes': ['error', 'single'],
'max-len': ['error', { code: 120 }],
'@typescript-eslint/no-namespace': 'off',
"indent": [
"error",
2
]
},
},
);
Loading