module.exports = {
  extends: ['plugin:jest/recommended', 'mcansh'],
  plugins: ['jest'],
  rules: {
    'jsx-a11y/href-no-hash': 'off',
    'jsx-a11y/anchor-is-valid': 'off',
    'jsx-a11y/click-events-have-key-events': 'off',
    'jsx-a11y/no-noninteractive-element-interactions': 'off',
    'no-return-assign': ['error', 'except-parens'],
    'import/no-extraneous-dependencies': [
      'error',
      { devDependencies: ['**/*.test.js', 'jest.setup.js', 'jest.config.js'] },
    ],
  }
};

module.exports = {
  extends: ['plugin:jest/recommended', 'mcansh'],
  plugins: ['jest'],
  rules: {
    'jsx-a11y/href-no-hash': 'off',
    'jsx-a11y/anchor-is-valid': 'off',
    'jsx-a11y/click-events-have-key-events': 'off',
    'jsx-a11y/no-noninteractive-element-interactions': 'off',
    'no-return-assign': ['error', 'except-parens'],
    'import/no-extraneous-dependencies': [
      'error',
      { devDependencies: ['__tests__/**/*.js', 'jest.setup.js', 'jest.config.js'] },
    ],
  }
};

allow extraneous devDeps anywhere in __tests__