Skip to content

Commit a1463c7

Browse files
committed
fix: putout: Dockerfile: remove-useless-escape: off
1 parent af708ce commit a1463c7

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

packages/putout/putout.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"*.svelte": {
9090
"variables/remove-unused": "off"
9191
},
92-
"{*rc,*.{json,yml}}": {
92+
"{Dockerfile*,*rc,*.{json,yml}}": {
9393
"convert-quotes-to-backticks": "off",
9494
"remove-useless-escape": "off",
9595
"math/apply-numeric-separators": "off"

packages/putout/test/config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,3 +292,17 @@ test('putout: config: Dockerfile', (t) => {
292292
t.deepEqual(result, expected);
293293
t.end();
294294
});
295+
296+
test('putout: config: {Dockerfile*,*rc,*.{json,yml}}', (t) => {
297+
const {match} = putoutConfig;
298+
const result = match['{Dockerfile*,*rc,*.{json,yml}}'];
299+
300+
const expected = {
301+
'convert-quotes-to-backticks': 'off',
302+
'remove-useless-escape': 'off',
303+
'math/apply-numeric-separators': 'off',
304+
};
305+
306+
t.deepEqual(result, expected);
307+
t.end();
308+
});

0 commit comments

Comments
 (0)