This repository has been archived by the owner on May 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: exclude fixtures from eslint (#682)
* chore: ignore fixtures for eslint * chore: run prettier over fixtures Co-authored-by: Netlify Team Account 1 <netlify-team-account-1@users.noreply.github.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
df6c093
commit 3c4f32a
Showing
73 changed files
with
58 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,5 @@ module.exports = { | |
}, | ||
}, | ||
], | ||
ignorePatterns: ['tests/fixtures/**/*'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
// eslint-disable-next-line import/no-unassigned-import | ||
require('test') | ||
|
||
module.exports = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
// eslint-disable-next-line node/no-unsupported-features/es-syntax | ||
export default function getZero() { | ||
return 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
// eslint-disable-next-line node/no-unsupported-features/es-syntax, import/extensions | ||
import getZero from './file.js' | ||
|
||
// eslint-disable-next-line node/no-unsupported-features/es-syntax | ||
export const ZERO = getZero() |
1 change: 0 additions & 1 deletion
1
tests/fixtures/local-require-esm/function_export_only/function_export_only.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
// eslint-disable-next-line node/no-unsupported-features/es-syntax | ||
export const howdy = 'Yee haw!' |
1 change: 0 additions & 1 deletion
1
tests/fixtures/local-require-esm/function_import_only/function_import_only.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
// eslint-disable-next-line node/no-unsupported-features/es-syntax | ||
import getZero from '../function/file' | ||
|
||
getZero() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
// eslint-disable-next-line node/global-require | ||
module.exports = [require('execa'), require('del')].every(Boolean) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
// eslint-disable-next-line node/no-extraneous-require | ||
module.exports = require('test') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
// eslint-disable-next-line import/no-unassigned-import | ||
require('test') | ||
|
||
module.exports = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
const id = (arg) => arg | ||
|
||
// eslint-disable-next-line import/no-dynamic-require, node/global-require, prefer-template | ||
module.exports = (lang) => [require('./lang/' + lang + '.json'), require('./lang/' + id(lang) + '.json')] | ||
module.exports = (lang) => [require(`./lang/${lang}.json`), require(`./lang/${id(lang)}.json`)] |
4 changes: 1 addition & 3 deletions
4
tests/fixtures/node-module-dynamic-import-3/function1/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
const id = (arg) => arg | ||
|
||
// eslint-disable-next-line import/no-dynamic-require, node/global-require, prefer-template | ||
module.exports = (lang) => [require('./lang/' + lang + '.json'), require('./lang/' + id(lang) + '.json')] | ||
module.exports = (lang) => [require(`./lang/${lang}.json`), require(`./lang/${id(lang)}.json`)] |
4 changes: 1 addition & 3 deletions
4
tests/fixtures/node-module-dynamic-import-3/function10/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
const id = (arg) => arg | ||
|
||
// eslint-disable-next-line import/no-dynamic-require, node/global-require, prefer-template | ||
module.exports = (lang) => [require('./lang/' + lang + '.json'), require('./lang/' + id(lang) + '.json')] | ||
module.exports = (lang) => [require(`./lang/${lang}.json`), require(`./lang/${id(lang)}.json`)] |
4 changes: 1 addition & 3 deletions
4
tests/fixtures/node-module-dynamic-import-3/function11/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
const id = (arg) => arg | ||
|
||
// eslint-disable-next-line import/no-dynamic-require, node/global-require, prefer-template | ||
module.exports = (lang) => [require('./lang/' + lang + '.json'), require('./lang/' + id(lang) + '.json')] | ||
module.exports = (lang) => [require(`./lang/${lang}.json`), require(`./lang/${id(lang)}.json`)] |
Oops, something went wrong.
3c4f32a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⏱ Benchmark results
largeDepsEsbuild: 12.8s
largeDepsZisi: 1m 10.3s