Skip to content
Draft
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ logs/
ecosystem.config.js

dist/

src/local/

storage/oredic/dumps/*.txt
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"printWidth": 110,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"semi": true,
"trailingComma": "all",
"quoteProps": "consistent",
"arrowParens": "always",
"checkIgnorePragma": true
}
63 changes: 63 additions & 0 deletions eslint.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import eslint from "@eslint/js";
import { defineConfig } from "eslint/config";
import nodePlugin from "eslint-plugin-n";
import simpleImportSort from "eslint-plugin-simple-import-sort";
import sonarJs from "eslint-plugin-sonarjs";
import unusedImports from "eslint-plugin-unused-imports";
import globals from "globals";
import tseslint from "typescript-eslint";

export default defineConfig(
{
ignores: ["dist/**", "config/**"],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
globals: {
...globals.node,
...globals.es2021,
},
parserOptions: {
project: "./tsconfig.eslint.json",
tsconfigRootDir: import.meta.dirname,
},
},
},
{
plugins: {
"unused-imports": unusedImports,
"n": nodePlugin,
"sonarjs": sonarJs,
"importsort": simpleImportSort,
},
rules: {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/return-await": "error",
"@typescript-eslint/strict-boolean-expressions": "warn",
"@typescript-eslint/switch-exhaustiveness-check": "error",
"@typescript-eslint/consistent-type-imports": "error",
"no-return-await": "off",
"unused-imports/no-unused-imports": "error",
"no-console": "error",
"eqeqeq": ["error", "always"],
"@typescript-eslint/no-explicit-any": "warn",
"no-duplicate-imports": "error",
"n/no-deprecated-api": "warn",
"n/prefer-global/process": "warn",
"sonarjs/no-duplicate-string": "warn",
"sonarjs/no-identical-functions": "warn",
"sonarjs/cognitive-complexity": ["warn", 15],
"no-param-reassign": "warn",
"no-implicit-coercion": "warn",
"no-warning-comments": ["warn", { terms: ["todo", "fixme"], location: "start" }],
"importsort/imports": "error",
"importsort/exports": "error",
},
},
);
Empty file added fsconfig.json
Empty file.
3 changes: 0 additions & 3 deletions main.mjs

This file was deleted.

Loading