Skip to content

Commit 4dc0e47

Browse files
committed
chore: modernize
1 parent f5a273e commit 4dc0e47

33 files changed

+28358
-15050
lines changed

.envrc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
set -euo pipefail
1+
source_url "https://raw.githubusercontent.com/cachix/devenv/95f329d49a8a5289d31e0982652f7058a189bfca/direnvrc" "sha256-d+8cBpDfDBj41inrADaJt+bDWhOktwslgoP5YiGJ1v0="
22

3-
source .direnvrc
4-
5-
eval "$(lorri direnv)"
3+
use devenv

.eslintignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
dist/
21
lib/
3-
node_modules/
2+
dist/
3+
node_modules/
4+
coverage/
5+
.devenv/

.eslintrc.json

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

.github/dependabot.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,26 @@
11
version: 2
22
updates:
3-
- package-ecosystem: 'npm'
4-
# Look for `package.json` and `lock` files in the `root` directory
5-
directory: '/'
3+
- package-ecosystem: github-actions
4+
directory: /
65
schedule:
7-
interval: 'monthly'
6+
interval: weekly
7+
groups:
8+
actions-minor:
9+
update-types:
10+
- minor
11+
- patch
12+
13+
- package-ecosystem: npm
14+
directory: /
15+
schedule:
16+
interval: weekly
17+
groups:
18+
npm-development:
19+
dependency-type: development
20+
update-types:
21+
- minor
22+
- patch
23+
npm-production:
24+
dependency-type: production
25+
update-types:
26+
- patch

.github/linters/.eslintrc.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
env:
2+
node: true
3+
es6: true
4+
jest: true
5+
6+
globals:
7+
Atomics: readonly
8+
SharedArrayBuffer: readonly
9+
10+
ignorePatterns:
11+
- '!.*'
12+
- '**/node_modules/.*'
13+
- '**/dist/.*'
14+
- '**/coverage/.*'
15+
- '*.json'
16+
17+
parser: '@typescript-eslint/parser'
18+
19+
parserOptions:
20+
ecmaVersion: 2023
21+
sourceType: module
22+
project:
23+
- './.github/linters/tsconfig.json'
24+
- './tsconfig.json'
25+
26+
plugins:
27+
- jest
28+
- '@typescript-eslint'
29+
30+
extends:
31+
- eslint:recommended
32+
- plugin:@typescript-eslint/eslint-recommended
33+
- plugin:@typescript-eslint/recommended
34+
- plugin:jest/recommended
35+
36+
rules:
37+
{
38+
'camelcase': 'off',
39+
'eslint-comments/no-use': 'off',
40+
'eslint-comments/no-unused-disable': 'off',
41+
'i18n-text/no-en': 'off',
42+
'import/no-namespace': 'off',
43+
'no-console': 'off',
44+
'no-unused-vars': 'off',
45+
'semi': 'off',
46+
'@typescript-eslint/array-type': 'error',
47+
'@typescript-eslint/await-thenable': 'error',
48+
'@typescript-eslint/ban-ts-comment': 'error',
49+
'@typescript-eslint/consistent-type-assertions': 'error',
50+
'@typescript-eslint/explicit-member-accessibility':
51+
['error', { 'accessibility': 'no-public' }],
52+
'@typescript-eslint/explicit-function-return-type':
53+
['error', { 'allowExpressions': true }],
54+
'@typescript-eslint/no-array-constructor': 'error',
55+
'@typescript-eslint/no-empty-interface': 'error',
56+
'@typescript-eslint/no-explicit-any': 'error',
57+
'@typescript-eslint/no-extraneous-class': 'error',
58+
'@typescript-eslint/no-for-in-array': 'error',
59+
'@typescript-eslint/no-inferrable-types': 'error',
60+
'@typescript-eslint/no-misused-new': 'error',
61+
'@typescript-eslint/no-namespace': 'error',
62+
'@typescript-eslint/no-non-null-assertion': 'warn',
63+
'@typescript-eslint/no-require-imports': 'error',
64+
'@typescript-eslint/no-unnecessary-qualifier': 'error',
65+
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
66+
'@typescript-eslint/no-unused-vars': 'error',
67+
'@typescript-eslint/no-useless-constructor': 'error',
68+
'@typescript-eslint/no-var-requires': 'error',
69+
'@typescript-eslint/prefer-for-of': 'warn',
70+
'@typescript-eslint/prefer-function-type': 'warn',
71+
'@typescript-eslint/prefer-includes': 'error',
72+
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
73+
'@typescript-eslint/promise-function-async': 'error',
74+
'@typescript-eslint/require-array-sort-compare': 'error',
75+
'@typescript-eslint/restrict-plus-operands': 'error',
76+
'@typescript-eslint/space-before-function-paren': 'off',
77+
'@typescript-eslint/unbound-method': 'error'
78+
}

.github/linters/.markdown-lint.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Unordered list style
2+
MD004:
3+
style: dash
4+
5+
# Ordered list item prefix
6+
MD029:
7+
style: one
8+
9+
# Spaces after list markers
10+
MD030:
11+
ul_single: 1
12+
ol_single: 1
13+
ul_multi: 1
14+
ol_multi: 1
15+
16+
# Code block style
17+
MD046:
18+
style: fenced

.github/linters/.yaml-lint.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
rules:
2+
document-end: disable
3+
document-start:
4+
level: warning
5+
present: false
6+
line-length:
7+
level: warning
8+
max: 80
9+
allow-non-breakable-words: true
10+
allow-non-breakable-inline-mappings: true

.github/linters/tsconfig.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"extends": "../../tsconfig.json",
4+
"compilerOptions": {
5+
"noEmit": true
6+
},
7+
"include": ["../../__tests__/**/*", "../../src/**/*"],
8+
"exclude": ["../../dist", "../../node_modules", "../../coverage", "*.json"]
9+
}

.gitignore

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,17 @@ Thumbs.db
9696

9797
# Ignore built ts files
9898
__tests__/runner/*
99-
lib/**/*
99+
100+
# IDE files
101+
.idea
102+
.vscode
103+
*.code-workspace
104+
# Devenv
105+
.devenv*
106+
devenv.local.nix
107+
108+
# direnv
109+
.direnv
110+
111+
# pre-commit
112+
.pre-commit-config.yaml

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
21.7.2

0 commit comments

Comments
 (0)