mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
feat: use native node typescript (#11259)
* feat: use native node typescript * fix: use basename * Update packages/create-discord-bot/template/Bun/TypeScript/tsconfig.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Change module and moduleResolution to ESNext and Bundler --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import common from 'eslint-config-neon/common';
|
||||
import node from 'eslint-config-neon/node';
|
||||
import prettier from 'eslint-config-neon/prettier';
|
||||
|
||||
const config = [
|
||||
{
|
||||
ignores: [],
|
||||
},
|
||||
...common,
|
||||
...node,
|
||||
...prettier,
|
||||
{
|
||||
rules: {
|
||||
'jsdoc/check-tag-names': 0,
|
||||
'jsdoc/no-undefined-types': 0,
|
||||
'jsdoc/valid-types': 0,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
export default config;
|
||||
@@ -1,14 +1,14 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/package.json",
|
||||
"name": "[REPLACE_ME]",
|
||||
"name": "@discordjs/template-bun-javascript",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"lint": "prettier --check . && eslint --ext .[REPLACE_IMPORT_EXT] --format=pretty src",
|
||||
"deploy": "bun run src/util/deploy.[REPLACE_IMPORT_EXT]",
|
||||
"format": "prettier --write . && eslint --ext .[REPLACE_IMPORT_EXT] --fix --format=pretty src",
|
||||
"start": "bun run src/index.[REPLACE_IMPORT_EXT]"
|
||||
"lint": "prettier --check . && eslint --ext .js --format=pretty src",
|
||||
"deploy": "bun run src/util/deploy.js",
|
||||
"format": "prettier --write . && eslint --ext .js --fix --format=pretty src",
|
||||
"start": "bun run src/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@discordjs/core": "^2.4.0",
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
console.log();
|
||||
Reference in New Issue
Block a user