Skip to content

Commit

Permalink
fixing the description
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekbh committed Jul 17, 2020
1 parent 9a2dc9a commit 35ad5db
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/eslint-plugin-next/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = {
'no-css-tags': require('./rules/no-css-tags'),
'no-sync-scripts': require('./rules/no-sync-scripts'),
'no-html-link-for-pages': require('./rules/no-html-link-for-pages'),
'no-unwanted-polyfillio': require('./rules/no-unwanted-polyfillio'),
},
configs: {
recommended: {
Expand All @@ -11,6 +12,7 @@ module.exports = {
'@next/next/no-css-tags': 1,
'@next/next/no-sync-scripts': 1,
'@next/next/no-html-link-for-pages': 1,
'@next/next/no-unwanted-polyfillio': 1,
},
},
},
Expand Down
14 changes: 10 additions & 4 deletions packages/eslint-plugin-next/lib/rules/no-unwanted-polyfillio.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,14 @@ const NEXT_POLYFILLED_FEATURES = [
'WeakSet',
'Promise',
'Promise.prototype.finally',
'es2015',
'es5',
'es6',
'es2015', // Should be covered by babel-preset-env instead.
'es2016', // Should be covered by babel-preset-env instead.
'es2017', // Should be covered by babel-preset-env instead.
'es2018', // Should be covered by babel-preset-env instead.
'es2019', // Should be covered by babel-preset-env instead.
'es5', // Should be covered by babel-preset-env instead.
'es6', // Should be covered by babel-preset-env instead.
'es7', // Should be covered by babel-preset-env instead.
]

//------------------------------------------------------------------------------
Expand All @@ -60,7 +65,8 @@ const NEXT_POLYFILLED_FEATURES = [
module.exports = {
meta: {
docs: {
description: 'Prohibit full page refresh for nextjs pages',
description:
'Prohibit unwanted features to be listed in Polyfill.io tag.',
category: 'HTML',
recommended: true,
},
Expand Down

0 comments on commit 35ad5db

Please sign in to comment.