Skip to content

Commit ff5edcc

Browse files
committed
update structure
Signed-off-by: Kirill Mokevnin <[email protected]>
1 parent ea2c857 commit ff5edcc

File tree

13 files changed

+3245
-12212
lines changed

13 files changed

+3245
-12212
lines changed

.eslintignore

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

.eslintrc.js

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

__tests__/sum.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { expect, test } from 'vitest'
2+
import sum from '../src/sum'
3+
4+
test('adds 1 + 2 to equal 3', () => {
5+
expect(sum(1, 2)).toBe(3)
6+
})

eslint.config.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import globals from 'globals'
2+
import pluginJs from '@eslint/js'
3+
import tseslint from 'typescript-eslint'
4+
import stylistic from '@stylistic/eslint-plugin'
5+
// import { Linter } from 'eslint'
6+
7+
export default [
8+
stylistic.configs.recommended,
9+
pluginJs.configs.recommended,
10+
...tseslint.configs.recommendedTypeChecked,
11+
...tseslint.configs.stylisticTypeChecked,
12+
{
13+
files: [
14+
'**/*.{js,ts}',
15+
],
16+
},
17+
{
18+
languageOptions: {
19+
globals: globals.node,
20+
parserOptions: {
21+
projectService: true,
22+
tsconfigRootDir: import.meta.dirname,
23+
},
24+
},
25+
// rules: {
26+
// '@typescript-eslint/no-unused-vars': 'off',
27+
// },
28+
},
29+
] // satisfies Linter.Config[]

newFile.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import globals from 'globals';
2+
import pluginJs from '@eslint/js';
3+
import tseslint from 'typescript-eslint';
4+
import stylistic from '@stylistic/eslint-plugin';
5+
6+
// import { Linter } from 'eslint'
7+
export default [
8+
stylistic.configs.recommended,
9+
pluginJs.configs.recommended,
10+
...tseslint.configs.recommendedTypeChecked,
11+
...tseslint.configs.stylisticTypeChecked,
12+
{
13+
files: [
14+
'**/*.{js,ts,tsx}',
15+
],
16+
},
17+
{
18+
languageOptions: {
19+
globals: globals.node,
20+
parserOptions: {
21+
projectService: true,
22+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
23+
tsconfigRootDir: import.meta.dirname,
24+
},
25+
},
26+
rules: {
27+
'@typescript-eslint/no-unused-vars': 'off',
28+
},
29+
},
30+
]; // satisfies Linter.Config[]
31+
32+

nodemon.json

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

0 commit comments

Comments
 (0)