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
24 changes: 22 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,34 @@ module.exports = {
env: {
node: true,
es2021: true,
jest: true, // Add jest environment for test files
},
extends: ['eslint:recommended'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/strict',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json',
},
rules: {
'no-console': 'warn',
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-unused-vars': 'off', // Turn off base rule as it can report incorrect errors
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/explicit-function-return-type': 'error',
},
ignorePatterns: [
'index.js',
'dist/**/*',
'coverage/**/*',
'test/**/*',
'**/*.test.ts',
'vitest.config.ts',
'vitest.visual.config.ts',
],
};
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 100,
"printWidth": 80,
"tabWidth": 2
}
4 changes: 3 additions & 1 deletion docs/developer-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
- `npm run lint` - Run ESLint
- `npm run format` - Format code with Prettier
- `npm run clean` - Clean up generated files
- `npm run build` - Compile TypeScript code
- `npm run deploy` - Deploy to Zapier
- `npm run prepare` - Install git hooks (runs automatically after npm install)

Visual tests are only run in CI environment:
Expand Down Expand Up @@ -166,7 +168,7 @@ The integration is automatically deployed to Zapier when a new version tag is pu
If you wish to deploy the integration privately, you can do so by following the steps below, given that you have completed the [initial setup steps above](#setting-up-zapier-deployment).

```bash
zapier push
npm run build && zapier push
```

## Version Management
Expand Down
287 changes: 287 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"zapier-platform-core": "16.3.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^8.28.0",
"@typescript-eslint/parser": "^8.28.0",
"@vitest/coverage-v8": "^3.0.8",
"eslint": "^8.57.1",
"husky": "^9.1.7",
Expand Down
Loading
Loading