Skip to content

Commit f3bed00

Browse files
Rewrite tests to actually test selection of a document and then execute commands instead of executing string functions.
1 parent 5c91b1b commit f3bed00

File tree

5 files changed

+669
-224
lines changed

5 files changed

+669
-224
lines changed

content.txt

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
moz-transform
2+
-moz-transform
3+
foo Bar
4+
foo bar
5+
ääkkönen
6+
foo Bar
7+
some_class_name
8+
MozTransform
9+
Foo Bar
10+
capitalize dash-CamelCase_underscore trim
11+
Abc
12+
Un éléphant à l'orée du bois
13+
HELLOworld
14+
This-is_snake case
15+
screaming-snake case
16+
my name is tristan
17+
this is a test
18+
The quick brown fox jumps over the lazy dog.
19+
Underscored-is-like snake-case
20+
aabbccdd
21+
aabbccdd
22+
aabbccddaabbccdd
23+
aabbccdd
24+
a1 b2 c3 4d 5e 6f 12x y23 34z45
25+
a1 b2 c3 4d 5e
26+
6f 12x y23 34z45
27+
a-4 b-3 c-2 -1d 0e
28+
6f 12x y23 34z45
29+
a1 b2 c3 4d 5e 6f 12x y23 34z45
30+
a1 b2 c3 4d
31+
5e 6f 12x y23 34z45
32+
a-3 b-2 c-1 0d
33+
1e 6f 12x y23 34z45
34+
a1 b2 c3 4d 5e 6f 12x y23 34z45
35+
36+
a1 b2 c3 4d 5e 6f 12x y23 34z45
37+
38+
a1 b2 c3 4d 5e 6f 12x y23 34z45
39+
a14 b2 c3
40+
4d 5e 6f 7x y8 9z12
41+
\u0061\u0062\u0063\u4e2d\u6587\ud83d\udc96
42+
abc中文💖
43+
Hello, World!
44+
12345!@#$%
45+
Test123!

eslint.config.mjs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ import typescriptEslint from "@typescript-eslint/eslint-plugin";
22
import tsParser from "@typescript-eslint/parser";
33

44
export default [{
5-
files: ["**/*.ts"],
5+
files: ["**/*.ts"],
66
}, {
7-
plugins: {
8-
"@typescript-eslint": typescriptEslint,
9-
},
7+
plugins: {
8+
"@typescript-eslint": typescriptEslint,
9+
},
1010

11-
languageOptions: {
12-
parser: tsParser,
13-
ecmaVersion: 2022,
14-
sourceType: "module",
15-
},
11+
languageOptions: {
12+
parser: tsParser,
13+
ecmaVersion: 2022,
14+
sourceType: "module",
15+
},
1616

17-
rules: {
18-
"@typescript-eslint/naming-convention": ["warn", {
19-
selector: "import",
20-
format: ["camelCase", "PascalCase"],
21-
}],
17+
rules: {
18+
"@typescript-eslint/naming-convention": ["warn", {
19+
selector: "import",
20+
format: ["camelCase", "PascalCase"],
21+
}],
2222

23-
curly: "warn",
24-
eqeqeq: "warn",
25-
"no-throw-literal": "warn",
26-
semi: "warn",
27-
},
28-
}];
23+
curly: "warn",
24+
eqeqeq: "warn",
25+
"no-throw-literal": "warn",
26+
semi: "warn",
27+
},
28+
}];

0 commit comments

Comments
 (0)