CLOSER-Cohorts/archivist

View on GitHub
react/src/pages/InstrumentBuildResponseDomains.js

Summary

Maintainability
A
1 hr
Test Coverage

Function InstrumentBuildResponseDomains has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const InstrumentBuildResponseDomains = (props) => {
  const dispatch = useDispatch()
  const instrumentId = get(props, "match.params.instrument_id", "")
  const responseDomainId = get(props, "match.params.responseDomainId", null)
  const responseDomainType = get(props, "match.params.responseDomainType", null)
Severity: Minor
Found in react/src/pages/InstrumentBuildResponseDomains.js - About 1 hr to fix

Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
Open

import React from 'react';

For more information visit Source: http://eslint.org/docs/rules/

There are no issues that match your filters.

Category
Status