Skip to content

Commit d209fdc

Browse files
committed
update configuration
Signed-off-by: Kirill Mokevnin <mokevnin@gmail.com>
1 parent 2b40da5 commit d209fdc

File tree

68 files changed

+987
-2106
lines changed

Some content is hidden

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

68 files changed

+987
-2106
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ compose-install:
1515
docker-compose run --rm exercises npm ci
1616

1717
code-lint:
18-
npx eslint modules
18+
npx tsc --build
19+
npx @biomejs/biome check
20+
21+
code-lint-fix:
22+
npx @biomejs/biome check --fix
1923

2024
compose-bash:
2125
docker-compose run --rm exercises bash

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,12 +1,12 @@
11
// @ts-check
22

3-
import { expect, test, vi } from 'vitest'
3+
import { expect, test, vi } from 'vitest';
44

55
test('hello world', async () => {
6-
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => { });
7-
await import('./index.js')
6+
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
7+
await import('./index.js');
88

99
const firstArg = consoleLogSpy.mock.calls.join('\n');
1010

11-
expect(firstArg).toBe('Hello, World!')
12-
})
11+
expect(firstArg).toBe('Hello, World!');
12+
});
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// @ts-check
22

3-
import { expect, test, vi } from 'vitest'
3+
import { expect, test, vi } from 'vitest';
44

55
test('hello world', async () => {
6-
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => { });
7-
await import('./index.js')
6+
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
7+
await import('./index.js');
88

99
const firstArg = consoleLogSpy.mock.calls.join('\n');
1010

11-
expect(firstArg).toBe('Robert\nStannis\nRenly')
12-
})
11+
expect(firstArg).toBe('Robert\nStannis\nRenly');
12+
});
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// @ts-check
22

3-
import { expect, test, vi } from 'vitest'
3+
import { expect, test, vi } from 'vitest';
44

55
test('hello world', async () => {
6-
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => { });
7-
await import('./index.js')
6+
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
7+
await import('./index.js');
88

99
const firstArg = consoleLogSpy.mock.calls.join('\n');
1010

11-
expect(firstArg).toBe('9780262531962')
12-
})
11+
expect(firstArg).toBe('9780262531962');
12+
});
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// @ts-check
22

3-
import { expect, test, vi } from 'vitest'
3+
import { expect, test, vi } from 'vitest';
44

55
test('hello world', async () => {
6-
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => { });
7-
await import('./index.js')
6+
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
7+
await import('./index.js');
88

99
const firstArg = consoleLogSpy.mock.calls.join('\n');
1010

11-
expect(firstArg).toBe('What Is Dead May Never Die')
12-
})
11+
expect(firstArg).toBe('What Is Dead May Never Die');
12+
});
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// @ts-check
22

3-
import { expect, test, vi } from 'vitest'
3+
import { expect, test, vi } from 'vitest';
44

55
test('hello world', async () => {
6-
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => { });
7-
await import('./index.js')
6+
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
7+
await import('./index.js');
88

99
const firstArg = consoleLogSpy.mock.calls.join('\n');
1010

11-
expect(firstArg).toBe('9')
12-
})
11+
expect(firstArg).toBe('9');
12+
});
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// @ts-check
22

3-
import { expect, test, vi } from 'vitest'
3+
import { expect, test, vi } from 'vitest';
44

55
test('hello world', async () => {
6-
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => { });
7-
await import('./index.js')
6+
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
7+
await import('./index.js');
88

99
const firstArg = consoleLogSpy.mock.calls.join('\n');
1010

11-
expect(firstArg).toBe('87')
12-
})
11+
expect(firstArg).toBe('87');
12+
});
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// @ts-check
22

3-
import { expect, test, vi } from 'vitest'
3+
import { expect, test, vi } from 'vitest';
44

55
test('hello world', async () => {
6-
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => { });
7-
await import('./index.js')
6+
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
7+
await import('./index.js');
88

99
const firstArg = consoleLogSpy.mock.calls.join('\n');
1010

11-
expect(firstArg).toBe('243\n2')
12-
})
11+
expect(firstArg).toBe('243\n2');
12+
});

0 commit comments

Comments
 (0)