mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
build: refactor linting
This commit is contained in:
@@ -1 +0,0 @@
|
||||
dist
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/eslintrc.json",
|
||||
"extends": "../../.eslintrc.json",
|
||||
"ignorePatterns": ["**/template/Deno/*"]
|
||||
}
|
||||
@@ -5,8 +5,8 @@
|
||||
"description": "A simple way to create a startup Discord bot.",
|
||||
"scripts": {
|
||||
"build": "tsup",
|
||||
"lint": "prettier --check . && cross-env TIMING=1 eslint src --ext .mjs,.js,.ts --format=pretty",
|
||||
"format": "prettier --write . && cross-env TIMING=1 eslint src --ext .mjs,.js,.ts --fix --format=pretty",
|
||||
"lint": "prettier --check . && cross-env TIMING=1 eslint --format=pretty src",
|
||||
"format": "prettier --write . && cross-env TIMING=1 eslint --fix --format=pretty src",
|
||||
"prepack": "yarn build && yarn lint",
|
||||
"changelog": "git cliff --prepend ./CHANGELOG.md -u -c ./cliff.toml -r ../../ --include-path 'packages/create-discord-bot/*'",
|
||||
"release": "cliff-jumper"
|
||||
@@ -62,7 +62,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",
|
||||
"terser": "^5.19.2",
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"lint": "prettier --check . && eslint ./src --ext .[REPLACE_IMPORT_EXT] --format=pretty",
|
||||
"lint": "prettier --check . && eslint --ext .[REPLACE_IMPORT_EXT] --format=pretty src",
|
||||
"deploy": "bun run src/util/deploy.[REPLACE_IMPORT_EXT]",
|
||||
"format": "prettier --write . && eslint ./src --ext .[REPLACE_IMPORT_EXT] --fix --format=pretty",
|
||||
"format": "prettier --write . && eslint --ext .[REPLACE_IMPORT_EXT] --fix --format=pretty src",
|
||||
"start": "bun run src/index.[REPLACE_IMPORT_EXT]"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"lint": "tsc && prettier --check . && eslint ./src --ext .[REPLACE_IMPORT_EXT] --format=pretty",
|
||||
"lint": "tsc && prettier --check . && eslint --ext .[REPLACE_IMPORT_EXT] --format=pretty src",
|
||||
"deploy": "bun run src/util/deploy.[REPLACE_IMPORT_EXT]",
|
||||
"format": "prettier --write . && eslint ./src --ext .[REPLACE_IMPORT_EXT] --fix --format=pretty",
|
||||
"format": "prettier --write . && eslint --ext .[REPLACE_IMPORT_EXT] --fix --format=pretty src",
|
||||
"start": "bun run src/index.[REPLACE_IMPORT_EXT]"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"lint": "prettier --check . && eslint src --ext .js,.cjs --format=pretty",
|
||||
"format": "prettier --write . && eslint src --ext .js,.cjs --fix --format=pretty",
|
||||
"lint": "prettier --check . && eslint --ext .js,.mjs,.cjs --format=pretty src",
|
||||
"format": "prettier --write . && eslint --ext .js,.mjs,.cjs --fix --format=pretty src",
|
||||
"start": "node --require dotenv/config src/index.js",
|
||||
"deploy": "node --require dotenv/config src/util/deploy.js"
|
||||
},
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
"parserOptions": {
|
||||
"project": ["./tsconfig.eslint.json"]
|
||||
},
|
||||
"ignorePatterns": ["dist/*"]
|
||||
"ignorePatterns": ["**/dist/*"]
|
||||
}
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"lint": "prettier --check . && eslint ./src --ext .ts --format=pretty",
|
||||
"lint": "prettier --check . && eslint --ext .ts --format=pretty src",
|
||||
"deploy": "node --require dotenv/config dist/util/deploy.js",
|
||||
"format": "prettier --write . && eslint ./src --ext .ts --fix --format=pretty",
|
||||
"format": "prettier --write . && eslint --ext .ts --fix --format=pretty src",
|
||||
"start": "node --require dotenv/config dist/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
Reference in New Issue
Block a user