We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3073ae commit 32dc40aCopy full SHA for 32dc40a
packages/putout/lib/lint/json.spec.mjs
@@ -22,7 +22,34 @@ test('putout: lint: json', (t) => {
22
{
23
"formatter": "json",
24
"rules": {
25
- "remove-unused-variables": "off"
+ "variables/remove-unused": "off"
26
+ }
27
+ }\n
28
+ `;
29
+
30
+ t.equal(code, expected);
31
+ t.end();
32
+});
33
34
+test('putout: lint: json: same', (t) => {
35
+ const rawSource = stringify({
36
+ rules: {
37
+ 'remove-debugger': 'off',
38
+ },
39
+ formatter: 'json',
40
+ });
41
42
+ const code = lintJSON(rawSource, {
43
+ plugins: [
44
+ 'putout-config',
45
+ ],
46
47
48
+ const expected = montag`
49
+ {
50
+ "formatter": "json",
51
+ "rules": {
52
+ "remove-debugger": "off"
53
}
54
}\n
55
`;
0 commit comments