Skip to content

Commit bdd0758

Browse files
authored
Merge pull request #2 from Count-Bot/v2
Version 2.0 Update
2 parents 57de407 + 7a36812 commit bdd0758

34 files changed

+1590
-1899
lines changed

.eslintrc.json

Lines changed: 0 additions & 245 deletions
This file was deleted.

.github/workflows/cicd.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,8 @@ jobs:
3232
- name: Install Dependencies
3333
run: npm ci
3434

35-
- name: Compile Source Code
36-
run: npm run build:ci
37-
38-
- name: Test Source Code
39-
run: npm run test:spec
40-
4135
- name: Lint Source Code
4236
run: npm run lint
37+
38+
- name: Compile Source Code
39+
run: npm run build:ci

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
# djs-commander
22

33
Command handler for discord.js
4+
5+
# Domain
6+
7+
## Command
8+
9+
- Register command to the Discord API
10+
- Command type (global/guild)
11+
- Command options/arguments/sub-commands
12+
- Listen for commands

eslint.config.mjs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import eslint from '@eslint/js';
2+
import importPlugin from 'eslint-plugin-import';
3+
import tseslint from 'typescript-eslint';
4+
import globals from 'globals';
5+
6+
export default tseslint.config(eslint.configs.recommended, tseslint.configs.recommended, {
7+
files: ['**/*.{ts,js,mjs}'],
8+
languageOptions: {
9+
parserOptions: {
10+
ecmaVersion: 'latest',
11+
sourceType: 'module',
12+
},
13+
globals: {
14+
...globals.node,
15+
},
16+
},
17+
plugins: {
18+
import: importPlugin,
19+
},
20+
rules: {
21+
'import/order': [
22+
'warn',
23+
{
24+
groups: ['builtin', 'external', 'internal', 'index', 'sibling', 'parent'],
25+
alphabetize: {
26+
order: 'asc',
27+
},
28+
},
29+
],
30+
},
31+
});

0 commit comments

Comments
 (0)