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
12 changes: 6 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[*]
end_of_line = lf

[*{yaml}]
indent_style = tab
indent_size = 2

[*{js,ts,json,ts,md}]
indent_size = 4

[*{js,ts,svelte,json}]
charset = utf-8
indent_style = tab

[*{yml,yaml}]
indent_style = space
indent_size = 2
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
/node_modules
/dist
.DS_Store
/.idea
/.npm
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/node_modules
/dist
*/dist
*.yml
1 change: 1 addition & 0 deletions chuchi-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"check": "tsc --noEmit",
"check-fmt": "prettier -c .",
"fmt": "prettier -w .",
"lint": "eslint ./src",
"check-jsr": "jsr publish --dry-run",
"build": "tsc",
Expand Down
1 change: 0 additions & 1 deletion chuchi-core/src/api/Stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,6 @@ export class ReceiverManager {

// this loops is only used until we are connected or nobody is interested
// in an open channel
// eslint-disable-next-line no-constant-condition
while (true) {
if (this.listeners === 0) {
// all listeners are gone
Expand Down
9 changes: 1 addition & 8 deletions chuchi-core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"noImplicitAny": true,
"outDir": "./dist"
}
}
1 change: 1 addition & 0 deletions chuchi-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"check": "tsc --noEmit",
"check-fmt": "prettier -c .",
"fmt": "prettier -w .",
"lint": "eslint ./src",
"check-jsr": "jsr publish --dry-run",
"build": "tsc",
Expand Down
9 changes: 1 addition & 8 deletions chuchi-legacy/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"noImplicitAny": true,
"outDir": "./dist"
}
}
1 change: 1 addition & 0 deletions chuchi-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"check": "tsc --noEmit",
"check-fmt": "prettier -c .",
"fmt": "prettier -w .",
"lint": "eslint ./src",
"check-jsr": "jsr publish --dry-run",
"build": "tsc",
Expand Down
9 changes: 1 addition & 8 deletions chuchi-utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"noImplicitAny": true,
"outDir": "./dist"
}
}
1 change: 1 addition & 0 deletions chuchi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"check": "tsc --noEmit",
"check-fmt": "prettier -c .",
"fmt": "prettier -w .",
"lint": "eslint ./src",
"check-jsr": "jsr publish --dry-run",
"build": "tsc",
Expand Down
9 changes: 1 addition & 8 deletions chuchi/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"noImplicitAny": true,
"outDir": "./dist"
}
}
27 changes: 20 additions & 7 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
// @ts-check
import prettier from 'eslint-config-prettier';
import js from '@eslint/js';
import { includeIgnoreFile } from '@eslint/compat';
import globals from 'globals';
import { fileURLToPath } from 'node:url';
import ts from 'typescript-eslint';
const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url));

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
export default ts.config(
includeIgnoreFile(gitignorePath),
js.configs.recommended,
...ts.configs.recommended,
prettier,
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
},
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
Expand Down
Loading
Loading