Skip to content

Commit 464f44c

Browse files
committed
feat: everything
1 parent f8c5a2a commit 464f44c

35 files changed

Lines changed: 1462 additions & 976 deletions

.gitignore

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,39 @@
1+
node_modules
2+
13
node_modules/
2-
build/
4+
5+
# Custom ESLint rules
6+
.eslint-plugin-local/*
7+
!.eslint-plugin-local/index.ts
8+
!.eslint-plugin-local/tsconfig.json
9+
10+
# Don't commit build outputs
11+
12+
v*.js
13+
v*.*map
14+
v*.d.ts
15+
v*.mjs
16+
17+
payloads/**/*.js
18+
payloads/**/*.map
19+
payloads/**/*.d.ts
20+
payloads/**/*.mjs
21+
22+
rest/**/*.js
23+
rest/**/*.map
24+
rest/**/*.d.ts
25+
rest/**/*.mjs
26+
27+
utils/**/*.js
28+
utils/**/*.map
29+
utils/**/*.d.ts
30+
utils/**/*.mjs
31+
32+
# Don't commit generated docs
33+
tsdoc-metadata.json
34+
docs/*
35+
36+
# macOS files
37+
.DS_Store
38+
39+
.npmrc

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
# CountBot API Types
22

3-
Install the interfaces and types used across CountBot with `npm i -D @countbot/countbot-api-types`.
4-
5-
# Generics
6-
7-
The generic interfaces should take a `string` or a mongoose `Types.ObjectId`.
3+
To be used by the CountBot API, CountBot (Discord), and CountBot Website.

eslint.config.mjs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ import eslint from '@eslint/js';
33
import importPlugin from 'eslint-plugin-import';
44
import ts from 'typescript-eslint';
55

6-
export default ts.config(eslint.configs.recommended, ts.configs.recommendedTypeChecked, {
7-
files: ['**/*.{ts,js}'],
6+
export default ts.config(eslint.configs.recommended, ts.configs.strict, {
7+
files: ['**/*.{ts}'],
88
languageOptions: {
99
parserOptions: {
1010
ecmaVersion: 'latest',
1111
sourceType: 'module',
1212
projectService: true,
13+
project: './tsconfig.eslint.json',
1314
},
1415
globals: {
1516
...globals.node,
@@ -19,10 +20,13 @@ export default ts.config(eslint.configs.recommended, ts.configs.recommendedTypeC
1920
import: importPlugin,
2021
},
2122
rules: {
23+
'@typescript-eslint/no-empty-object-type': 'off',
24+
'import/exports-last': 'warn',
25+
'import/first': 'warn',
2226
'import/order': [
2327
'warn',
2428
{
25-
groups: ['builtin', 'external', 'internal', 'index', 'sibling', 'parent'],
29+
groups: ['builtin', 'external', 'parent', 'sibling', 'index', 'type'],
2630
alphabetize: {
2731
order: 'asc',
2832
},

0 commit comments

Comments
 (0)