Skip to content

Commit 558f1db

Browse files
Chore: enable test-case-shorthand-strings on this codebase
1 parent 48b7e34 commit 558f1db

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

Diff for: .eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ module.exports = {
2424
rules: {
2525
'require-jsdoc': 'error',
2626
'eslint-plugin/report-message-format': ['error', '^[^a-z].*\\.$'],
27-
'eslint-plugin/test-case-shorthand-strings': 'off',
27+
'eslint-plugin/test-case-shorthand-strings': 'error',
2828
},
2929
};

Diff for: tests/lib/rules/require-meta-fixable.js

+6-8
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,12 @@ ruleTester.run('require-meta-fixable', rule, {
110110
`,
111111
errors: [MISSING_ERROR],
112112
},
113-
{
114-
code: `
115-
module.exports = {
116-
meta: {},
117-
create(context) { context.report(node, message, data, fix); }
118-
};
119-
`,
120-
},
113+
`
114+
module.exports = {
115+
meta: {},
116+
create(context) { context.report(node, message, data, fix); }
117+
};
118+
`,
121119
],
122120

123121
invalid: [

0 commit comments

Comments
 (0)