Skip to content

Commit

Permalink
Add empty create function to deprecated rules (#584)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
fisker and sindresorhus committed Mar 8, 2020
1 parent d0a3030 commit fe8f336
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rules/prefer-exponentiation-operator.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
'use strict';
const getDocumentationUrl = require('./utils/get-documentation-url');

const create = () => ({});

module.exports = {
create,
meta: {
type: 'suggestion',
docs: {
Expand Down
3 changes: 3 additions & 0 deletions rules/regex-shorthand.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
'use strict';
const getDocumentationUrl = require('./utils/get-documentation-url');

const create = () => ({});

module.exports = {
create,
meta: {
type: 'suggestion',
docs: {
Expand Down

0 comments on commit fe8f336

Please sign in to comment.