Skip to content

Commit

Permalink
Eslint fixes
Browse files Browse the repository at this point in the history
exceptions for icons: no-anonymous-default-export
  • Loading branch information
Waldleufer committed May 21, 2021
1 parent 0bf7524 commit 522dd14
Show file tree
Hide file tree
Showing 27 changed files with 27 additions and 5 deletions.
1 change: 1 addition & 0 deletions frontend/src/assets/icons/checkbox-off.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="10" cy="10" r="9" stroke="#C5C7CD" strokeWidth="2" />
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/checkbox-on.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="10" cy="10" r="10" fill="#3751FF" />
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-agents.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path opacity={props.opacity || ''} d="M8 8C10.2094 8 12 6.20937 12 4C12 1.79063 10.2094 0 8 0C5.79063 0 4 1.79063 4 4C4 6.20937 5.79063 8 8 8ZM10.9937 9.01875L9.5 15L8.5 10.75L9.5 9H6.5L7.5 10.75L6.5 15L5.00625 9.01875C2.77812 9.125 1 10.9469 1 13.2V14.5C1 15.3281 1.67188 16 2.5 16H13.5C14.3281 16 15 15.3281 15 14.5V13.2C15 10.9469 13.2219 9.125 10.9937 9.01875Z"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-arrow-down.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg
id={props.id}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-arrow-up.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg
id={props.id}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-arrow.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg width="20" height="20" fill='none' xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 1024 1024">
<path opacity={props.opacity || ''} d="M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 0 0 0-48.4z"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-articles.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path opacity={props.opacity || ''} d="M15 11.25V0.75C15 0.334375 14.6656 0 14.25 0H4C2.34375 0 1 1.34375 1 3V13C1 14.6562 2.34375 16 4 16H14.25C14.6656 16 15 15.6656 15 15.25V14.75C15 14.5156 14.8906 14.3031 14.7219 14.1656C14.5906 13.6844 14.5906 12.3125 14.7219 11.8313C14.8906 11.6969 15 11.4844 15 11.25ZM5 4.1875C5 4.08437 5.08437 4 5.1875 4H11.8125C11.9156 4 12 4.08437 12 4.1875V4.8125C12 4.91563 11.9156 5 11.8125 5H5.1875C5.08437 5 5 4.91563 5 4.8125V4.1875ZM5 6.1875C5 6.08437 5.08437 6 5.1875 6H11.8125C11.9156 6 12 6.08437 12 6.1875V6.8125C12 6.91563 11.9156 7 11.8125 7H5.1875C5.08437 7 5 6.91563 5 6.8125V6.1875ZM12.9187 14H4C3.44688 14 3 13.5531 3 13C3 12.45 3.45 12 4 12H12.9187C12.8594 12.5344 12.8594 13.4656 12.9187 14Z"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-bell-new.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg width="18" height="19" viewBox="0 0 18 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.99999 19C9.10374 19 9.99905 18.1047 9.99905 17H6.00093C6.00093 18.1047 6.89624 19 7.99999 19ZM14.7309 14.3216C14.1272 13.6728 12.9975 12.6969 12.9975 9.5C12.9975 7.07188 11.295 5.12812 8.99937 4.65125V4C8.99937 3.44781 8.55187 3 7.99999 3C7.44812 3 7.00062 3.44781 7.00062 4V4.65125C4.70499 5.12812 3.00249 7.07188 3.00249 9.5C3.00249 12.6969 1.8728 13.6728 1.26905 14.3216C1.08155 14.5231 0.998429 14.7641 0.999991 15C1.00343 15.5125 1.40562 16 2.00312 16H13.9969C14.5944 16 14.9969 15.5125 15 15C15.0016 14.7641 14.9184 14.5228 14.7309 14.3216Z" fill="#C5C7CD" />
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-browse.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg widht='20' height='20' fill="none" xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 1024 1024">
<path opacity={props.opacity || ''} d="M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 0 0-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zm-180 0H238c-13 0-24.8 7.9-29.7 20L136 643.2V256h188.5l119.6 114.4H748V444z"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/assets/icons/icon-building.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg width="18" height="18" fill ='none' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" >
<path opacity={props.opacity || ''} d="M4 4a2 2 0 012-2h8a2 2 0 012 2v12a1 1 0 110 2h-3a1 1 0 01-1-1v-2a1 1 0 00-1-1H9a1 1 0 00-1 1v2a1 1 0 01-1 1H4a1 1 0 110-2V4zm3 1h2v2H7V5zm2 4H7v2h2V9zm2-4h2v2h-2V5zm2 4h-2v2h2V9z" fillRule="evenodd"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-burger.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg height="32px" version="1.1" viewBox="0 0 32 32" width="32px"
xmlSpace="preserve" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/assets/icons/icon-circle.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg width="25" height="50" fill ='grey'>
<circle opacity={props.opacity || ''} cx="15" cy="25" r="4" fill = {props.fill || "#9FA2B4"}/>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-contacts.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/src/assets/icons/icon-home.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";


/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg width="20" height="20" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink">
<path opacity={props.opacity || ''} d="M3 10v11h6v-7h6v7h6v-11L12,3z"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-ideas.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clipPath="url(#clip0)">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/assets/icons/icon-inbox.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";


/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg width="16" height="16" viewBox="0 0 40 26" fill="none" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink">
<path opacity={props.opacity || ''} d="M 22.8196 15.7456C 22.0005 16.5862 20.9038 17.0508 19.7317 17.0542C 18.5632 17.0444 17.46 16.5994 16.6362 15.7646L 1.09009 0L 38.1626 0L 22.8196 15.7456ZM 0 1.06567L 11.2952 12.5818L 0 24.1392L 0 1.06567ZM 27.9519 12.623L 39.2878 24.1233L 39.2878 1.06567L 27.9519 12.623ZM 23.7844 16.9265L 27.0105 13.6885L 38.1833 25.082L 1.10547 25.082L 12.4006 13.6885L 15.6772 16.9512C 16.7539 18.0415 18.1877 18.6418 19.7185 18.6418L 19.7363 18.6418C 21.2734 18.6375 22.7109 18.0281 23.7844 16.9265Z"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-login.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg width="30" height="30" fill ='none' xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 1024 1024">
<path opacity={props.opacity || ''} d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-logo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default () => (
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="16" cy="16" r="16" fill="#3751FF" />
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-logout.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg width="20" height="20" viewBox="0 0 290 290" fill="none" xmlns="http://www.w3.org/2000/svg">
<path opacity={props.opacity || ''} d="M155,6.5c-30.147,0-58.95,9.335-83.294,26.995c-2.789,2.023-3.547,5.853-1.739,8.787L92.83,79.374
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-overview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg width="20" height="20" viewBox="0 0 16 16" fill="none"
xmlns="http://www.w3.org/2000/svg">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/assets/icons/icon-power.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (

<svg width="18" height="18" fill='grey' xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 1024 1024">
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-search.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="6.5" cy="6.5" r="5.75" stroke="#C5C7CD" strokeWidth="1.5" />
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-settings.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-subscription.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-tickets.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path opacity={props.opacity || ''} d="M3.55556 5.33334H12.4444V10.6667H3.55556V5.33334ZM14.6667 8C14.6667 8.73639 15.2636 9.33334 16 9.33334V12C16 12.7364 15.4031 13.3333 14.6667 13.3333H1.33333C0.596944 13.3333 0 12.7364 0 12V9.33334C0.736389 9.33334 1.33333 8.73639 1.33333 8C1.33333 7.26362 0.736389 6.66667 0 6.66667V4.00001C0 3.26362 0.596944 2.66667 1.33333 2.66667H14.6667C15.4031 2.66667 16 3.26362 16 4.00001V6.66667C15.2636 6.66667 14.6667 7.26362 14.6667 8ZM13.3333 5.11112C13.3333 4.74292 13.0349 4.44445 12.6667 4.44445H3.33333C2.96514 4.44445 2.66667 4.74292 2.66667 5.11112V10.8889C2.66667 11.2571 2.96514 11.5556 3.33333 11.5556H12.6667C13.0349 11.5556 13.3333 11.2571 13.3333 10.8889V5.11112Z"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-transmission.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (

<svg width="18" height="18" version="1.1" id="Power_plug" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/icons/icon-user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

import React from 'react';

/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */
export default (props) => (
<svg widht='30' height='30' xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill='none'>
<path opacity={props.opacity || ''} fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z" clip-rule="evenodd"
Expand Down

0 comments on commit 522dd14

Please sign in to comment.