Skip to content

Commit a939ebb

Browse files
authored
Merge pull request #390 from w3bdesign/develop
Add Eslint complexity rule
2 parents 697e63d + 7914451 commit a939ebb

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

components/Cart/AddToCartButton.component.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/*eslint complexity: ["error", 6]*/
2+
13
import { useState, useContext } from 'react';
24
import { v4 as uuidv4 } from 'uuid';
35
import { useQuery, useMutation } from '@apollo/client';

components/Cart/CartPage/CartItem.component.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/*eslint complexity: ["error", 6]*/
2+
13
import { useState } from 'react';
24
import { v4 as uuidv4 } from 'uuid';
35

components/Cart/CartPage/MobileCartItem.component.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/*eslint complexity: ["error", 6]*/
2+
13
import { useState } from 'react';
24
import { v4 as uuidv4 } from 'uuid';
35

0 commit comments

Comments
 (0)