Skip to content

Commit fe8f336

Browse files
fiskersindresorhus
andauthored
Add empty create function to deprecated rules (#584)
Co-authored-by: Sindre Sorhus <[email protected]>
1 parent d0a3030 commit fe8f336

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

rules/prefer-exponentiation-operator.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
'use strict';
22
const getDocumentationUrl = require('./utils/get-documentation-url');
33

4+
const create = () => ({});
5+
46
module.exports = {
7+
create,
58
meta: {
69
type: 'suggestion',
710
docs: {

rules/regex-shorthand.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
'use strict';
22
const getDocumentationUrl = require('./utils/get-documentation-url');
33

4+
const create = () => ({});
5+
46
module.exports = {
7+
create,
58
meta: {
69
type: 'suggestion',
710
docs: {

0 commit comments

Comments
 (0)