Skip to content

Commit f69c01e

Browse files
committed
feature: @putout/plugin-remove-unused-private-fields: report
1 parent 07c7093 commit f69c01e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/plugin-remove-unused-private-fields/lib/remove-unused-private-fields.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const {operator} = require('putout');
44
const {remove} = operator;
55

6-
module.exports.report = ({name}) => `Private field "#${name}" declared by not used`;
6+
module.exports.report = ({name}) => `Avoid unused private field "#${name}"`;
77

88
module.exports.fix = ({path}) => {
99
remove(path);

packages/plugin-remove-unused-private-fields/test/remove-unused-private-fields.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const test = createTest(__dirname, {
1010
});
1111

1212
test('plugin-remove-unused-private-fields: report: class', (t) => {
13-
t.report('class', 'Private field "#world" declared by not used');
13+
t.report('class', 'Avoid unused private field "#world"');
1414
t.end();
1515
});
1616

0 commit comments

Comments
 (0)