1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- module.exports = {
- root: true,
- extends: ['sentry-app/strict'],
- globals: {
- require: false,
- expect: false,
- MockApiClient: true,
- tick: true,
- jest: true,
- },
- rules: {
- 'react-hooks/exhaustive-deps': [
- 'error',
- {additionalHooks: '(useEffectAfterFirstRender|useMemoWithPrevious)'},
- ],
-
- 'space-infix-ops': 'off',
- 'object-shorthand': 'off',
- 'object-curly-spacing': 'off',
- 'import/no-amd': 'off',
- 'no-danger-with-children': 'off',
- 'no-fallthrough': 'off',
- 'no-obj-calls': 'off',
- 'array-bracket-spacing': 'off',
- 'computed-property-spacing': 'off',
- 'react/no-danger-with-children': 'off',
- },
-
-
- ignorePatterns: ['*.json'],
- overrides: [
- {
- files: ['static/**/*.spec.{ts,js}', 'tests/js/**/*.{ts,js}'],
- extends: ['plugin:testing-library/react', 'sentry-app/strict'],
- rules: {
-
- 'space-infix-ops': 'off',
- 'object-shorthand': 'off',
- 'object-curly-spacing': 'off',
- 'import/no-amd': 'off',
- 'no-danger-with-children': 'off',
- 'no-fallthrough': 'off',
- 'no-obj-calls': 'off',
- 'array-bracket-spacing': 'off',
- 'computed-property-spacing': 'off',
- 'react/no-danger-with-children': 'off',
- },
- },
- {
-
-
-
- files: ['**/js-sdk-loader.ts'],
- rules: {
- 'no-console': 'off',
- },
- },
- ],
- };
|