Remove premium-specific ES config, move free-specific rules to its config
[MAILPOET-5015]
This commit is contained in:
@ -41,26 +41,10 @@ module.exports = [
|
||||
'react-hooks/exhaustive-deps': 'warn',
|
||||
// Exceptions
|
||||
'no-only-tests/no-only-tests': 2,
|
||||
'no-script-url': 0,
|
||||
'class-methods-use-this': 0,
|
||||
'react/jsx-props-no-spreading': 0,
|
||||
'import/extensions': 0, // we wouldn't be able to import jQuery without this line
|
||||
'import/prefer-default-export': 0, // we want to stop using default exports and start using named exports
|
||||
'react/destructuring-assignment': 0, // that would be too many changes to fix this one
|
||||
'prefer-destructuring': 0, // that would be too many changes to fix this one
|
||||
'jsx-a11y/label-has-for': [
|
||||
2,
|
||||
{
|
||||
required: { some: ['nesting', 'id'] }, // some of our labels are hidden and we cannot nest those
|
||||
},
|
||||
],
|
||||
'jsx-a11y/anchor-is-valid': 0, // cannot fix this one, it would break wprdpress themes
|
||||
'jsx-a11y/label-has-associated-control': [
|
||||
2,
|
||||
{
|
||||
either: 'either', // control has to be either nested or associated via htmlFor
|
||||
},
|
||||
],
|
||||
'import/no-default-export': 1, // no default exports
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user