chore(eslint): a couple more config changes
This commit is contained in:
parent
c6822aa15a
commit
9897b3157d
2 changed files with 10 additions and 1 deletions
|
@ -5,6 +5,7 @@ const nodeFiles = [
|
||||||
`**/build.dflt.${jsSuffixes}`,
|
`**/build.dflt.${jsSuffixes}`,
|
||||||
`**/build.${jsSuffixes}`,
|
`**/build.${jsSuffixes}`,
|
||||||
`**/config/**/*.${jsSuffixes}`,
|
`**/config/**/*.${jsSuffixes}`,
|
||||||
|
`**/*.config.${jsSuffixes}`,
|
||||||
`**/prebuild.${jsSuffixes}`,
|
`**/prebuild.${jsSuffixes}`,
|
||||||
`**/prebuild/**/*.${jsSuffixes}`,
|
`**/prebuild/**/*.${jsSuffixes}`,
|
||||||
`**/scripts/**/*.${jsSuffixes}`,
|
`**/scripts/**/*.${jsSuffixes}`,
|
||||||
|
@ -83,7 +84,11 @@ module.exports = {
|
||||||
},
|
},
|
||||||
// Additional globals for JavaScript files that happen to contain Mocha tests
|
// Additional globals for JavaScript files that happen to contain Mocha tests
|
||||||
{
|
{
|
||||||
files: [`**/tests/**/*.${jsSuffixes}`, `**/*.test.${jsSuffixes}`],
|
files: [
|
||||||
|
`**/tests/**/*.${jsSuffixes}`,
|
||||||
|
`**/*.test.${jsSuffixes}`,
|
||||||
|
'scripts/test-failure-collector.js',
|
||||||
|
],
|
||||||
env: {
|
env: {
|
||||||
mocha: true,
|
mocha: true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
import { name, version } from '../data.mjs'
|
import { name, version } from '../data.mjs'
|
||||||
|
|
||||||
|
/* eslint-disable no-undef */
|
||||||
|
|
||||||
const now = () => {
|
const now = () => {
|
||||||
if (typeof window !== 'undefined') return window.performance.now() // Browser
|
if (typeof window !== 'undefined') return window.performance.now() // Browser
|
||||||
if (typeof process !== 'undefined') return process.hrtime.bigint() // NodeJS
|
if (typeof process !== 'undefined') return process.hrtime.bigint() // NodeJS
|
||||||
|
@ -12,6 +14,8 @@ const delta = (start) => {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* eslint-enable no-undef */
|
||||||
|
|
||||||
export const plugin = {
|
export const plugin = {
|
||||||
name,
|
name,
|
||||||
version,
|
version,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue