Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
chore(deps): update dependency @netlify/eslint-config-node to v6 (#1063)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency @netlify/eslint-config-node to v6

* chore: fix lockfile

* chore: fix linting

* chore: fix linting

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: ehmicky <ehmicky@gmail.com>
  • Loading branch information
3 people committed Apr 1, 2022
1 parent ad9161d commit dc0fe1a
Show file tree
Hide file tree
Showing 9 changed files with 2,689 additions and 2,242 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ module.exports = {
extends: '@netlify/eslint-config-node',
rules: {
'import/extensions': ['error', 'ignorePackages'],
'node/no-missing-import': 'off',
'n/no-missing-import': 'off',
// This is disabled because TypeScript transpiles some features currently
// unsupported by Node 12, i.e. optional chaining
// TODO: re-enable after dropping support for Node 12
'n/no-unsupported-features/es-syntax': 'off',
// This rule enforces using Buffers with `JSON.parse()`. However, TypeScript
// does not recognize yet that `JSON.parse()` accepts Buffers as argument.
'unicorn/prefer-json-parse-buffer': 'off',
Expand Down
6 changes: 3 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ Explain the **motivation** for making this change. What existing problem does th

For us to review and ship your PR efficiently, please perform the following steps:

- [ ] Open a [bug/issue](https://github.com/netlify/zip-it-and-ship-it/issues/new/choose) before writing your code
🧑‍💻. This ensures we can discuss the changes and get feedback from everyone that should be involved. If you\`re
fixing a typo or something that\`s on fire 🔥 (e.g. incident related), you can skip this step.
- [ ] Open a [bug/issue](https://github.com/netlify/zip-it-and-ship-it/issues/new/choose) before writing your code 🧑‍💻.
This ensures we can discuss the changes and get feedback from everyone that should be involved. If you\`re fixing
a typo or something that\`s on fire 🔥 (e.g. incident related), you can skip this step.
- [ ] Read the [contribution guidelines](../CONTRIBUTING.md) 📖. This ensures your code follows our style guide and
passes our tests.
- [ ] Update or add tests (if any source code was changed or added) 🧪
Expand Down
4,899 changes: 2,671 additions & 2,228 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
},
"devDependencies": {
"@babel/types": "^7.15.6",
"@netlify/eslint-config-node": "^5.1.8",
"@netlify/eslint-config-node": "^6.0.0",
"@types/archiver": "^5.1.1",
"@types/end-of-stream": "^1.4.1",
"@types/resolve": "^1.20.1",
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/dynamic-import/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parserOptions": { "sourceType": "module" },
"rules": {
"node/no-unsupported-features/es-syntax": 0
"n/no-unsupported-features/es-syntax": 0
}
}
4 changes: 2 additions & 2 deletions tests/fixtures/in-source-config/functions/cron_esm.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// eslint-disable-next-line node/no-unsupported-features/es-syntax
// eslint-disable-next-line n/no-unsupported-features/es-syntax
import { schedule } from '@netlify/functions'

// eslint-disable-next-line node/no-unsupported-features/es-syntax
// eslint-disable-next-line n/no-unsupported-features/es-syntax
export const handler = schedule('@daily', () => {
// function handler
})
4 changes: 2 additions & 2 deletions tests/fixtures/in-source-config/functions/cron_esm_renamed.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// eslint-disable-next-line node/no-unsupported-features/es-syntax
// eslint-disable-next-line n/no-unsupported-features/es-syntax
import { schedule as somethingElse } from '@netlify/functions'

// eslint-disable-next-line node/no-unsupported-features/es-syntax
// eslint-disable-next-line n/no-unsupported-features/es-syntax
export const handler = somethingElse('@daily', () => {
// function handler
})
4 changes: 2 additions & 2 deletions tests/fixtures/in-source-config/functions/cron_ts.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// eslint-disable-next-line node/no-unsupported-features/es-syntax
// eslint-disable-next-line n/no-unsupported-features/es-syntax
import { schedule } from '@netlify/functions'

const str: string = 'hello'

// eslint-disable-next-line node/no-unsupported-features/es-syntax
// eslint-disable-next-line n/no-unsupported-features/es-syntax
export const handler = schedule('@daily', () => {
console.log(str)
})
4 changes: 2 additions & 2 deletions tests/fixtures/in-source-config/functions/cron_ts_renamed.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// eslint-disable-next-line node/no-unsupported-features/es-syntax
// eslint-disable-next-line n/no-unsupported-features/es-syntax
import { schedule as somethingElse } from '@netlify/functions'

const str: string = 'hello'

// eslint-disable-next-line node/no-unsupported-features/es-syntax
// eslint-disable-next-line n/no-unsupported-features/es-syntax
export const handler = somethingElse('@daily', () => {
console.log(str)
})

1 comment on commit dc0fe1a

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⏱ Benchmark results

largeDepsEsbuild: 6.8s

largeDepsNft: 30s

largeDepsZisi: 53.3s

Please sign in to comment.