Skip to content

Commit 4b96057

Browse files
authored
Update abbreviations to support next functions (#1804)
1 parent c1cb41a commit 4b96057

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rules/shared/abbreviations.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ module.exports.defaultAllowList = {
240240
// Next.js function
241241
// https://nextjs.org/learn/basics/fetching-data-for-pages
242242
getInitialProps: true,
243+
getServerSideProps: true,
244+
getStaticProps: true,
243245
// React PropTypes
244246
// https://reactjs.org/docs/typechecking-with-proptypes.html
245247
propTypes: true,

0 commit comments

Comments
 (0)