-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1ea8c9
commit 729420a
Showing
214 changed files
with
1,006 additions
and
950 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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"ignores": [ | ||
"media/**", | ||
"test/config/fixtures/config-errors/test.js", | ||
"test/config/fixtures/mjs-with-tests/**", | ||
"test-tap/fixture/ava-paths/target/test.js", | ||
"test-tap/fixture/{source-map-initial,syntax-error}.js", | ||
"test-tap/fixture/snapshots/test-sourcemaps/build/**", | ||
"test-tap/fixture/power-assert.js", | ||
"test-tap/fixture/report/edgecases/ast-syntax-error.js" | ||
], | ||
"rules": { | ||
"import/no-anonymous-default-export": "off", | ||
"import/no-mutable-exports": "off", | ||
"import/order": [ | ||
"error", | ||
{ | ||
"alphabetize": { | ||
"order": "asc" | ||
}, | ||
"newlines-between": "always" | ||
} | ||
], | ||
"import/newline-after-import": "error", | ||
"node/no-unsupported-features/es-syntax": "off", | ||
"no-use-extend-native/no-use-extend-native": "off" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": "index.d.ts", | ||
"rules": { | ||
"@typescript-eslint/member-ordering": "off", | ||
"@typescript-eslint/method-signature-style": "off", | ||
"@typescript-eslint/prefer-readonly-parameter-types": "off", | ||
"@typescript-eslint/prefer-function-type": "off", | ||
"@typescript-eslint/unified-signatures": "off" | ||
} | ||
}, | ||
{ | ||
"files": "test-{d,tap}/**/*.ts", | ||
"rules": { | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/no-unsafe-member-access": "off", | ||
"@typescript-eslint/no-unsafe-return": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/prefer-readonly-parameter-types": "off", | ||
"import/extensions": "off", | ||
"no-unused-vars": "off" | ||
} | ||
}, | ||
{ | ||
"files": "test-tap/**/*.js", | ||
"rules": { | ||
"promise/prefer-await-to-then": "off", | ||
"unicorn/error-message": "off", | ||
"unicorn/no-array-reduce": "off", | ||
"unicorn/prevent-abbreviations": "off" | ||
} | ||
}, | ||
{ | ||
"files": [ | ||
"test-tap/fixture/**", | ||
"test/**/fixtures/**" | ||
], | ||
"rules": { | ||
"ava/no-todo-test": "off", | ||
"import/no-extraneous-dependencies": "off", | ||
"import/no-unresolved": "off" | ||
} | ||
} | ||
] | ||
} |
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,3 +1,4 @@ | ||
#!/usr/bin/env node | ||
import * as cli from '../lib/cli.js'; // eslint-disable-line import/extensions | ||
cli.run(); | ||
import run from '../lib/cli.js'; | ||
|
||
run(); |
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,3 @@ | ||
import test from '../lib/worker/main.cjs'; | ||
|
||
export default 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
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,20 +1,14 @@ | ||
'use strict'; | ||
const chalk = require('chalk'); | ||
import chalk from 'chalk'; | ||
|
||
let ctx = null; | ||
exports.get = () => { | ||
if (!ctx) { | ||
throw new Error('Chalk has not yet been configured'); | ||
} | ||
|
||
return ctx; | ||
}; | ||
let instance = new chalk.Instance(); | ||
export default instance; | ||
|
||
exports.set = options => { | ||
if (ctx) { | ||
let configured = false; | ||
export function set(options) { | ||
if (configured) { | ||
throw new Error('Chalk has already been configured'); | ||
} | ||
|
||
ctx = new chalk.Instance(options); | ||
return ctx; | ||
}; | ||
configured = true; | ||
instance = new chalk.Instance(options); | ||
} |
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
Oops, something went wrong.