Skip to content

Commit 5817192

Browse files
committed
update configuration
Signed-off-by: Kirill Mokevnin <[email protected]>
1 parent 9451652 commit 5817192

File tree

93 files changed

+523
-1876
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+523
-1876
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.yml

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

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ compose-update:
1616
docker compose run --rm exercises npx ncu -u
1717

1818
code-lint:
19-
npx eslint .
19+
npx @biomejs/biome check
20+
21+
code-lint-fix:
22+
npx @biomejs/biome check --fix
2023

2124
# compile:
2225
# @(for i in $$(find . -type f -name Main.java); do javac $$(dirname $$i)/*.java ; done)

biome.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"includes": [
11+
"**",
12+
"!**/*.json",
13+
"!**/*.css",
14+
"!**/*.scss",
15+
"!test/**",
16+
"!public/**",
17+
"!app/assets/builds/**",
18+
"!app/javascript/routes.*",
19+
"!app/javascript/types/serializers/**"
20+
]
21+
},
22+
"formatter": {
23+
"enabled": true,
24+
"indentStyle": "space"
25+
},
26+
"linter": {
27+
"enabled": true,
28+
"rules": {
29+
"recommended": true,
30+
"complexity": {
31+
"noBannedTypes": "off"
32+
},
33+
"correctness": {
34+
"noUnusedImports": "off",
35+
"noUnusedFunctionParameters": "off",
36+
"noUnusedVariables": "off"
37+
},
38+
"suspicious": {
39+
"noExplicitAny": "off"
40+
},
41+
"style": {
42+
"noNonNullAssertion": "off"
43+
}
44+
}
45+
},
46+
"javascript": {
47+
"formatter": {
48+
"quoteStyle": "single"
49+
}
50+
},
51+
"assist": {
52+
"enabled": true,
53+
"actions": {
54+
"source": {
55+
"organizeImports": "on"
56+
}
57+
}
58+
}
59+
}

eslint.config.js

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { expect, test, vi } from 'vitest'
2-
import * as path from 'path';
1+
import path from 'node:path';
2+
import { expect, test, vi } from 'vitest';
33

44
test('hello world', async () => {
5-
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => { });
6-
await import(path.join(__dirname, 'index'));
5+
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
6+
await import(path.join(import.meta.dirname, 'index'));
77
const firstArg = consoleLogSpy.mock.calls[0]?.[0];
8-
expect(firstArg).toBe('Hello, World!')
8+
expect(firstArg).toBe('Hello, World!');
99
});

modules/10-basics/20-typescript-as-a-second-language/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { expect, test, expectTypeOf } from 'vitest';
1+
import { expect, expectTypeOf, test } from 'vitest';
22

33
import multiply from './index';
44

modules/10-basics/30-variables/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
function repeat(text: string, count: number) {
42
// BEGIN
53
let result = '';

modules/10-basics/30-variables/ru/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
В этом уроке мы узнаем, чем отличаются TypeScript и JavaScript в плане работы с переменными. Мы разберем, что такое вывод типов и зачем это нужно в программировании. Также узнаем, почему в TypeScript можно не указывать вручную тип переменных.
32

43
## Вывод типов

modules/10-basics/30-variables/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { expect, test, expectTypeOf } from 'vitest';
1+
import { expect, expectTypeOf, test } from 'vitest';
22

33
import repeat from './index';
44

0 commit comments

Comments
 (0)