Skip to content

Commit

Permalink
feat!: code and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Holf committed Nov 1, 2023
1 parent 78cff1e commit 0e26430
Show file tree
Hide file tree
Showing 16 changed files with 1,989 additions and 115 deletions.
34 changes: 28 additions & 6 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,49 @@ module.exports = {
env: {
node: true,
es2021: true,
jest: true,
},
plugins: ["jest", "@typescript-eslint"],
plugins: ["@typescript-eslint"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:node/recommended",
"plugin:prettier/recommended",
"plugin:jest/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
rules: {
"node/no-missing-import": "off",
"import/order": [
"warn",
{
groups: ["builtin", "external", "parent", "sibling", "index"],
"newlines-between": "always",
alphabetize: {
order: "asc",
caseInsensitive: true,
},
},
],
},
overrides: [
{
files: ["*.ts"],
rules: {
"node/no-missing-import": "off",
},
},
],
settings: {
"import/parsers": {
"@typescript-eslint/parser": [".ts"],
},
"import/resolver": {
typescript: {
alwaysTryTypes: true,
},
},
},
};
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
cache: "npm"
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm test:coverage
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/node_modules
/coverage
/dist

# Prevent local npm `pack` experiments getting committed
Expand Down
4 changes: 0 additions & 4 deletions jest.config.js

This file was deleted.

0 comments on commit 0e26430

Please sign in to comment.