Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions .github/workflows/cicd.yml

This file was deleted.

39 changes: 38 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,39 @@
node_modules

node_modules/
build/

# Custom ESLint rules
.eslint-plugin-local/*
!.eslint-plugin-local/index.ts
!.eslint-plugin-local/tsconfig.json

# Don't commit build outputs

v*.js
v*.*map
v*.d.ts
v*.mjs

payloads/**/*.js
payloads/**/*.map
payloads/**/*.d.ts
payloads/**/*.mjs

rest/**/*.js
rest/**/*.map
rest/**/*.d.ts
rest/**/*.mjs

utils/**/*.js
utils/**/*.map
utils/**/*.d.ts
utils/**/*.mjs

# Don't commit generated docs
tsdoc-metadata.json
docs/*

# macOS files
.DS_Store

.npmrc
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# CountBot API Types

Install the interfaces and types used across CountBot with `npm i -D @countbot/countbot-api-types`.

# Generics

The generic interfaces should take a `string` or a mongoose `Types.ObjectId`.
To be used by the CountBot API, CountBot (Discord), and CountBot Website.
10 changes: 7 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ import eslint from '@eslint/js';
import importPlugin from 'eslint-plugin-import';
import ts from 'typescript-eslint';

export default ts.config(eslint.configs.recommended, ts.configs.recommendedTypeChecked, {
files: ['**/*.{ts,js}'],
export default ts.config(eslint.configs.recommended, ts.configs.strict, {
files: ['**/*.{ts}'],
languageOptions: {
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
projectService: true,
project: './tsconfig.eslint.json',
},
globals: {
...globals.node,
Expand All @@ -19,10 +20,13 @@ export default ts.config(eslint.configs.recommended, ts.configs.recommendedTypeC
import: importPlugin,
},
rules: {
'@typescript-eslint/no-empty-object-type': 'off',
'import/exports-last': 'warn',
'import/first': 'warn',
'import/order': [
'warn',
{
groups: ['builtin', 'external', 'internal', 'index', 'sibling', 'parent'],
groups: ['builtin', 'external', 'parent', 'sibling', 'index', 'type'],
alphabetize: {
order: 'asc',
},
Expand Down
Loading