mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
build: refactor linting
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/eslintrc.json",
|
||||
"extends": "../../.eslintrc.json"
|
||||
}
|
||||
@@ -7,8 +7,8 @@
|
||||
"build": "tsup",
|
||||
"build:docs": "tsc -p tsconfig.docs.json",
|
||||
"test": "vitest run && tsd",
|
||||
"lint": "prettier --check . && TIMING=1 eslint src --ext .mjs,.js,.ts --format=pretty",
|
||||
"format": "prettier --write . && TIMING=1 eslint src --ext .mjs,.js,.ts --fix --format=pretty",
|
||||
"lint": "prettier --check . && TIMING=1 eslint --format=pretty src",
|
||||
"format": "prettier --write . && TIMING=1 eslint --fix --format=pretty src",
|
||||
"fmt": "yarn format",
|
||||
"docs": "yarn build:docs && api-extractor run --local && api-extractor run --local --config ./api-extractor-docs.json",
|
||||
"prepack": "yarn lint && yarn test && yarn build",
|
||||
@@ -67,7 +67,7 @@
|
||||
"@vitest/coverage-v8": "^0.34.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.47.0",
|
||||
"eslint-config-neon": "^0.1.47",
|
||||
"eslint-config-neon": "^0.1.54",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"prettier": "^3.0.2",
|
||||
"tsd": "^0.28.1",
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
/* eslint-disable n/prefer-global/process */
|
||||
|
||||
export function shouldUseGlobalFetchAndWebSocket() {
|
||||
// Browser env and deno when ran directly
|
||||
if (typeof globalThis.process === 'undefined') {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
/* eslint-disable n/prefer-global/process */
|
||||
/* eslint-disable no-restricted-globals */
|
||||
|
||||
/**
|
||||
* Resolves the user agent appendix string for the current environment.
|
||||
|
||||
Reference in New Issue
Block a user