Skip to content
Snippets Groups Projects
react.js 521 B
Newer Older
Brady James Garvin's avatar
Brady James Garvin committed
module.exports = {
  'extends': './base',
  'rules': {
    'no-magic-numbers': ['warn', {
      'ignore': [-1, -0.5, 0, 0.001, 0.5, 1, 2, 10, 100, 180, 360, 1000],
      'detectObjects': true,
Brady James Garvin's avatar
Brady James Garvin committed
    }],
    // `testing-library/no-node-access` is currently broken and gives false
    // positives on mock implementations that use `props.children`.
    'testing-library/no-node-access': 'off',
Brady James Garvin's avatar
Brady James Garvin committed
  },
  'overrides': [
    {
      'files': '*.test.js',
      'rules': {
        'no-magic-numbers': 'off',
      },
    },
  ],
Brady James Garvin's avatar
Brady James Garvin committed
}