Skip to content

Commit f285706

Browse files
committed
tweak/tidy
1 parent d86cd24 commit f285706

File tree

3 files changed

+17
-18
lines changed

3 files changed

+17
-18
lines changed

src/mapping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export class DocumentMapper {
135135
/**
136136
* Get the offset of the line and character position
137137
* @param position Line and character position
138-
* @param text The text for which the offset should be retrived
138+
* @param text The text for which the offset should be retrieved
139139
*/
140140
function offset_at(position, text) {
141141
const line_offsets = get_line_offsets(text);

src/preprocess.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { new_block, get_translation } from './block.js';
22
import { processor_options } from './processor_options.js';
33
import { state } from './state.js';
4-
import { DocumentMapper } from './mapping';
4+
import { DocumentMapper } from './mapping.js';
55

66
let default_compiler;
77

test/samples/typescript-block-filenames/.eslintrc.js

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,25 @@ module.exports = {
33
extends: ['plugin:@typescript-eslint/recommended'],
44
plugins: ['@typescript-eslint'],
55
overrides: [
6-
{
7-
files: ['**/*.svelte/*_template.ts'],
8-
rules: {
9-
curly: 'off',
6+
{
7+
files: ['**/*.svelte/*_template.ts'],
8+
rules: {
9+
curly: 'off',
10+
},
1011
},
11-
},
12-
{
13-
files: ['**/*.svelte/*_module.ts'],
14-
rules: {
15-
'no-undef': 'off',
12+
{
13+
files: ['**/*.svelte/*_module.ts'],
14+
rules: {
15+
'no-undef': 'off',
16+
},
1617
},
17-
},
1818
],
1919
settings: {
20-
'svelte3/typescript': require('typescript'),
21-
'svelte3/named-blocks': true,
20+
'svelte3/typescript': require('typescript'),
21+
'svelte3/named-blocks': true,
2222
},
2323
rules: {
24-
curly: 'error',
25-
'no-undef': 'error',
24+
curly: 'error',
25+
'no-undef': 'error',
2626
},
27-
};
28-
27+
};

0 commit comments

Comments
 (0)