Skip to content

Commit

Permalink
chore: sync with plugin template
Browse files Browse the repository at this point in the history
  • Loading branch information
fedeericodl committed Feb 11, 2025
1 parent 16985ec commit ecd0ddf
Show file tree
Hide file tree
Showing 8 changed files with 2,293 additions and 3,908 deletions.
10 changes: 6 additions & 4 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ rules:
node/no-unpublished-require: off
node/shebang: off
no-process-exit: off
no-undefined: off
no-undef: off
no-unused-vars: off
"@typescript-eslint/no-unused-vars": error

overrides:
- files: "**/*.ts"
- files: "**/*.{ts,tsx}"
extends: eslint-config-dmitmel/presets/typescript-addon
rules:
node/no-missing-import: off
Expand All @@ -43,13 +45,13 @@ overrides:
no-void: off
consistent-return: off

- files: "**/src/**/*.ts"
- files: "**/src/**/*.{ts,tsx}"
extends: eslint-config-dmitmel/rules/typescript/with-type-checking

- files: "**/*.d.ts"
rules:
no-var: off

- files: "src/**/*.ts"
- files: "src/**/*.{ts,tsx}"
parserOptions:
project: tsconfig.json
10 changes: 5 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
with:
version: latest
version: 10

- name: Install Node.js dependencies
run: pnpm install
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
with:
version: latest
version: 10

- name: Install Node.js dependencies
run: pnpm install
Expand Down
24 changes: 12 additions & 12 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": false,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "all",
"bracketSpacing": true,
"bracketSameLine": true,
"arrowParens": "always",
"proseWrap": "always"
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": false,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "all",
"bracketSpacing": true,
"bracketSameLine": true,
"arrowParens": "always",
"proseWrap": "always"
}
29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "plugin-template",
"version": "1.0.0",
"version": "1.1.1",
"description": "A plugin template",
"engines": {
"node": ">=18.0.0"
"node": ">=22.0.0",
"pnpm": ">=10.0.0"
},
"scripts": {
"build": "replugged build plugin",
Expand All @@ -15,23 +16,23 @@
"prettier:fix": "prettier ./src --write",
"eslint:fix": "eslint ./src --fix",
"lint": "pnpm run prettier:check && pnpm run eslint:check && pnpm run check",
"lint:fix": "pnpm run prettier:fix && pnpm run eslint:fix"
"lint:fix": "pnpm run prettier:fix && pnpm run eslint:fix",
"release": "replugged release"
},
"keywords": [],
"author": "",
"license": "ISC",
"license": "MIT",
"devDependencies": {
"@fal-works/esbuild-plugin-global-externals": "^2.1.2",
"@types/node": "^18.17.1",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"discord-types": "^1.3.26",
"eslint": "^8.46.0",
"@types/node": "^22.13.1",
"@types/react": "^18.3.18",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"discord-types": "^1.3.3",
"eslint": "^8.57.1",
"eslint-config-dmitmel": "github:dmitmel/eslint-config-dmitmel",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-react": "^7.33.1",
"prettier": "^2.8.8",
"replugged": "^4.5.1",
"typescript": "^5.1.6"
"prettier": "^3.5.0",
"replugged": "^4.8.4",
"typescript": "~5.4.5"
}
}
Loading

0 comments on commit ecd0ddf

Please sign in to comment.