Skip to content

Commit 7ac4560

Browse files
committed
feature: putout: add support of Dockerfile
1 parent a7f4019 commit 7ac4560

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

packages/putout/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
"@putout/plugin-apply-starts-with": "^2.0.0",
102102
"@putout/plugin-apply-template-literals": "^5.0.0",
103103
"@putout/plugin-arguments": "^2.0.0",
104+
"@putout/plugin-docker": "^1.0.0",
104105
"@putout/plugin-assignment": "^2.0.0",
105106
"@putout/plugin-browserlist": "^2.0.0",
106107
"@putout/plugin-conditions": "^9.0.0",
@@ -177,6 +178,7 @@
177178
"@putout/plugin-variables": "^2.0.0",
178179
"@putout/plugin-webpack": "^4.0.0",
179180
"@putout/processor-css": "^12.0.0",
181+
"@putout/processor-docker": "^1.0.0",
180182
"@putout/processor-filesystem": "^8.0.0",
181183
"@putout/processor-ignore": "^7.0.0",
182184
"@putout/processor-javascript": "^5.0.0",

packages/putout/putout.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"yaml",
1313
"toml",
1414
"css",
15+
"docker",
1516
"filesystem"
1617
],
1718
"match": {
@@ -163,6 +164,9 @@
163164
},
164165
"*.d.ts": {
165166
"declare": "off"
167+
},
168+
"Dockerfile*": {
169+
"docker": "on"
166170
}
167171
},
168172
"ignore": [
@@ -200,6 +204,7 @@
200204
"nodejs/remove-useless-strict-mode": "off",
201205
"browserlist": "off",
202206
"filesystem": "off",
207+
"docker": "off",
203208
"remove-duplicate-elements": "off"
204209
},
205210
"plugins": [
@@ -216,6 +221,7 @@
216221
"arguments",
217222
"assignment",
218223
"destructuring",
224+
"docker",
219225
"extract-sequence-expressions",
220226
"madrun",
221227
"maybe",

packages/putout/test/config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,3 +280,15 @@ test('putout: config: spec', (t) => {
280280
t.deepEqual(result, expected);
281281
t.end();
282282
});
283+
284+
test('putout: config: Dockerfile', (t) => {
285+
const {match} = putoutConfig;
286+
const result = match['Dockerfile*'];
287+
288+
const expected = {
289+
docker: 'on',
290+
};
291+
292+
t.deepEqual(result, expected);
293+
t.end();
294+
});

0 commit comments

Comments
 (0)