Skip to content

Commit

Permalink
Merge pull request #24 from cosmos/improvements
Browse files Browse the repository at this point in the history
Improvements
jleni authored Jun 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 958c63a + 00e5ea3 commit 97dfbb8
Showing 28 changed files with 639 additions and 30,951 deletions.
12 changes: 0 additions & 12 deletions .editorconfig

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

27 changes: 0 additions & 27 deletions .eslintrc.js

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Main'
name: "Main"
on:
- push

@@ -27,10 +27,10 @@ jobs:
- name: Install dependencies
run: yarn install
- name: Run linter
run: yarn linter
run: yarn lint
- name: Run formatter
run: yarn format
- name: Build
run: yarn build
- name: Unit tests
run: yarn test:unit
run: yarn test
5 changes: 0 additions & 5 deletions .prettierignore

This file was deleted.

9 changes: 0 additions & 9 deletions .prettierrc

This file was deleted.

4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"printWidth": 110,
"trailingComma": "all"
}
36 changes: 36 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
module.exports = {
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: {
window: "readonly",
document: "readonly",
process: "readonly",
require: "readonly",
},
parserOptions: {
project: "tsconfig.json",
},
},
ignores: ["dist/*", "node_modules/*"],
plugins: {
"unused-imports": require("eslint-plugin-unused-imports"),
"@typescript-eslint": require("@typescript-eslint/eslint-plugin"),
"eslint-plugin-tsdoc": require("eslint-plugin-tsdoc"),
},
rules: {
curly: "warn",
"prefer-const": "warn",
"no-else-return": "warn",
complexity: ["warn", 1000],
"no-unneeded-ternary": "warn",
"no-alert": "warn",
"no-empty": "warn",
"no-useless-catch": "error",
"require-await": "warn",
"no-continue": "warn",
"no-console": "warn",
"unused-imports/no-unused-imports": "warn",
"no-magic-numbers": "off",
},
};
9 changes: 3 additions & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
transformIgnorePatterns: ['^.+\\.js$'],
modulePaths: ['<rootDir>/src', '<rootDir>/tests'],
runner: 'jest-serial-runner',
}
preset: "ts-jest",
testEnvironment: "node",
};
Loading

0 comments on commit 97dfbb8

Please sign in to comment.