4422be3276
- Introduces a lint rule which points towards the unwanted polyfill.io features. - Aim here is to make the user aware that which of the requested features are actually required vs which are already covered under `next-polyfills` Next step: If the remaining required polyfills amounts to a only a few KBs then its better to include them in 1P javascript and remove the third party render blocking script tag.
19 lines
566 B
JavaScript
19 lines
566 B
JavaScript
module.exports = {
|
|
rules: {
|
|
'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: {
|
|
plugins: ['@next/next'],
|
|
rules: {
|
|
'@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,
|
|
},
|
|
},
|
|
},
|
|
}
|