gymnastjs/gymnast

View on GitHub

Showing 22 of 22 total issues

Function exports has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

module.exports = ({ config }) => {
if (config.module && config.module.rules) {
config.module.rules.push({
test: /\.(ts|tsx)$/,
loader: require.resolve('babel-loader'),
Severity: Minor
Found in storybook/webpack.config.js - About 25 mins to fix

Function matchMedia has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

global.matchMedia = function matchMedia(media: string) {
allListeners[media] = allListeners[media] || []
 
return {
media,
Severity: Minor
Found in test/env.tsx - About 25 mins to fix
Severity
Category
Status
Source
Language