Skip to content

Commit c5f9b33

Browse files
committed
WIP
1 parent 459a69d commit c5f9b33

File tree

8 files changed

+2162
-3870
lines changed

8 files changed

+2162
-3870
lines changed

.eslintrc.json

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

.github/workflows/node.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v2
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
1616
with:
17-
node-version: '16'
17+
node-version: '20.11'
1818

1919
- run: npm ci
2020
- run: npm run lint

.mocharc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extension": ["ts"],
3+
"spec": "test/**/*.spec.ts",
4+
"require": "ts-node/register"
5+
}

eslint.config.mjs

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
import love from 'eslint-config-love'
2+
import tseslint from 'typescript-eslint'
3+
4+
export default [
5+
love,
6+
...tseslint.configs.strictTypeChecked,
7+
...tseslint.configs.stylisticTypeChecked,
8+
{
9+
plugins: {
10+
tseslint: tseslint
11+
},
12+
rules: {
13+
'@typescript-eslint/no-non-null-assertion': 'warn',
14+
'import/first': 'error',
15+
'import/newline-after-import': 'error',
16+
'import/no-duplicates': 'error',
17+
},
18+
languageOptions: {
19+
parser: tseslint.parser,
20+
parserOptions: {
21+
ecmaVersion: 'latest',
22+
sourceType: 'module'
23+
}
24+
}
25+
},
26+
{
27+
ignores: ['dist/**/*.*', '**/*.js', '**/*.mjs']
28+
},
29+
{
30+
files: ['src/**/*.ts'],
31+
languageOptions: {
32+
parserOptions: {
33+
project: ['tsconfig.json']
34+
}
35+
}
36+
},
37+
{
38+
files: ['test/**/*.ts'],
39+
languageOptions: {
40+
parserOptions: {
41+
project: ['tsconfig.test.json']
42+
}
43+
},
44+
rules: {
45+
'@typescript-eslint/unbound-method': 'off',
46+
}
47+
}
48+
]

0 commit comments

Comments
 (0)