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
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

47 changes: 0 additions & 47 deletions .eslintrc.js

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/pull-reqeust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install dependencies and build
run: npm install
run: npm ci

- name: Check CommonJS and ESM package imports
run: npm run test:package

- name: Run lint checks
run: npm run lint:ci
Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
lib
docs
docs
**/dist
48 changes: 48 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
const js = require('@eslint/js');
const tsPlugin = require('@typescript-eslint/eslint-plugin');
const tsParser = require('@typescript-eslint/parser');
const prettier = require('eslint-config-prettier');
const importPlugin = require('eslint-plugin-import');
const globals = require('globals');

module.exports = [
{ ignores: ['node_modules/**', 'lib/**', 'examples/**', 'docs/**'] },
{
files: ['**/*.{js,ts}'],
linterOptions: { reportUnusedDisableDirectives: 'off' },
languageOptions: {
parser: tsParser,
ecmaVersion: 2021,
sourceType: 'module',
globals: { ...globals.es2021, ...globals.node, ...globals.jest },
},
plugins: { '@typescript-eslint': tsPlugin, import: importPlugin },
rules: {
...js.configs.recommended.rules,
...tsPlugin.configs['eslint-recommended'].overrides[0].rules,
...tsPlugin.configs.recommended.rules,
...prettier.rules,
'no-console': ['error', { allow: ['warn', 'error', 'time'] }],
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-explicit-any': 'off',
camelcase: ['error', { properties: 'never', ignoreDestructuring: true }],
// TypeScript handles undefined variable checks; core no-undef flags TS globals.
'no-undef': 'off',
'import/extensions': ['error', 'ignorePackages'],
},
settings: { 'import/extensions': ['.js'] },
},
{
files: ['**/*.spec.ts', '**/*.test.ts', 'tests/**/*.ts'],
rules: { 'import/extensions': 'off' },
},
];
4 changes: 2 additions & 2 deletions examples/aws-lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ Before getting started, you'll need:

1. **Nylas Account**: [Sign up for free](https://dashboard.nylas.com/register)
2. **AWS Account**: [Sign up for free](https://aws.amazon.com/free/)
3. **Node.js**: Version 16 or higher
3. **Node.js**: Version 20.19 or higher for the local setup tools
4. **Nylas Application**: Created in your Nylas Dashboard
5. **Connected Email Account**: At least one email account connected to your Nylas application
6. **AWS CLI**: [Install AWS CLI](https://aws.amazon.com/cli/) (optional, but recommended)
7. **Serverless Framework**: Will be installed via npm
7. **Serverless Framework**: Version 4 will be installed via npm. It loads `.env` and bundles TypeScript using its built-in esbuild support.

## 🛠️ Quick Start

Expand Down
Loading
Loading