Skip to content

Commit 97dfbb8

Browse files
authored
Merge pull request #24 from cosmos/improvements
Improvements
2 parents 958c63a + 00e5ea3 commit 97dfbb8

28 files changed

+639
-30951
lines changed

.editorconfig

Lines changed: 0 additions & 12 deletions
This file was deleted.

.eslintignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/main.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Main'
1+
name: "Main"
22
on:
33
- push
44

@@ -27,10 +27,10 @@ jobs:
2727
- name: Install dependencies
2828
run: yarn install
2929
- name: Run linter
30-
run: yarn linter
30+
run: yarn lint
3131
- name: Run formatter
3232
run: yarn format
3333
- name: Build
3434
run: yarn build
3535
- name: Unit tests
36-
run: yarn test:unit
36+
run: yarn test

.prettierignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 9 deletions
This file was deleted.

.prettierrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"printWidth": 110,
3+
"trailingComma": "all"
4+
}

eslint.config.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
module.exports = {
2+
languageOptions: {
3+
ecmaVersion: "latest",
4+
sourceType: "module",
5+
globals: {
6+
window: "readonly",
7+
document: "readonly",
8+
process: "readonly",
9+
require: "readonly",
10+
},
11+
parserOptions: {
12+
project: "tsconfig.json",
13+
},
14+
},
15+
ignores: ["dist/*", "node_modules/*"],
16+
plugins: {
17+
"unused-imports": require("eslint-plugin-unused-imports"),
18+
"@typescript-eslint": require("@typescript-eslint/eslint-plugin"),
19+
"eslint-plugin-tsdoc": require("eslint-plugin-tsdoc"),
20+
},
21+
rules: {
22+
curly: "warn",
23+
"prefer-const": "warn",
24+
"no-else-return": "warn",
25+
complexity: ["warn", 1000],
26+
"no-unneeded-ternary": "warn",
27+
"no-alert": "warn",
28+
"no-empty": "warn",
29+
"no-useless-catch": "error",
30+
"require-await": "warn",
31+
"no-continue": "warn",
32+
"no-console": "warn",
33+
"unused-imports/no-unused-imports": "warn",
34+
"no-magic-numbers": "off",
35+
},
36+
};

jest.config.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
module.exports = {
2-
preset: 'ts-jest',
3-
testEnvironment: 'node',
4-
transformIgnorePatterns: ['^.+\\.js$'],
5-
modulePaths: ['<rootDir>/src', '<rootDir>/tests'],
6-
runner: 'jest-serial-runner',
7-
}
2+
preset: "ts-jest",
3+
testEnvironment: "node",
4+
};

0 commit comments

Comments
 (0)