regenerate yarn.lock, solve new prettier problems
This commit is contained in:
@@ -3,7 +3,7 @@ module.exports = {
|
||||
browser: true,
|
||||
es6: true,
|
||||
},
|
||||
extends: ['airbnb', 'plugin:prettier/recommended'],
|
||||
extends: ['plugin:prettier/recommended'],
|
||||
parserOptions: {
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
@@ -11,7 +11,7 @@ module.exports = {
|
||||
ecmaVersion: 2020,
|
||||
sourceType: 'module',
|
||||
},
|
||||
plugins: ['react', 'prettier'],
|
||||
plugins: ['prettier'],
|
||||
rules: {
|
||||
'react/jsx-filename-extension': 'off',
|
||||
'react/forbid-prop-types': 'off',
|
||||
@@ -19,7 +19,6 @@ module.exports = {
|
||||
'import/prefer-default-export': 'off',
|
||||
'react/function-component-definition': 'off',
|
||||
'react/no-unstable-nested-components': 'off',
|
||||
'jsx-a11y/control-has-associated-label': 'off',
|
||||
'no-console': 'off',
|
||||
radix: 'off',
|
||||
'prettier/prettier': [
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
"axios": "^1.6.1",
|
||||
"daisyui": "2.31.0",
|
||||
"downloadjs": "^1.4.7",
|
||||
"emoji-name-map": "^2.0.3",
|
||||
"github-username-regex": "^1.0.0",
|
||||
"html-to-image": "^1.11.11",
|
||||
"moment": "^2.29.4",
|
||||
"prop-types": "^15.8.1",
|
||||
@@ -40,7 +42,6 @@
|
||||
"eslint-config-airbnb": "^19.0.4",
|
||||
"eslint-config-prettier": "^9.0.0",
|
||||
"eslint-plugin-import": "^2.29.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.8.0",
|
||||
"eslint-plugin-prettier": "^5.0.1",
|
||||
"eslint-plugin-react": "7.33.2",
|
||||
"eslint-plugin-react-hooks": "4.6.0",
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
/* eslint-disable jsx-a11y/interactive-supports-focus */
|
||||
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* eslint-disable jsx-a11y/interactive-supports-focus */
|
||||
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
||||
/* eslint-disable react/no-danger */
|
||||
|
||||
import React from 'react';
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* eslint-disable jsx-a11y/mouse-events-have-key-events */
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { classnames } from '../../utils';
|
||||
|
||||
@@ -18,8 +18,8 @@ const BarGraph = ({ data, labels, xTitle, type, getLabel, legendText }) => {
|
||||
return d.value === maxData
|
||||
? '#2BA02C'
|
||||
: d.value === minData
|
||||
? '#D62728'
|
||||
: '#468CBF';
|
||||
? '#D62728'
|
||||
: '#468CBF';
|
||||
};
|
||||
|
||||
if (!(Array.isArray(data) && data.length > 0)) {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* eslint-disable jsx-a11y/mouse-events-have-key-events */
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ export const REDIRECT_URI = PROD
|
||||
? `https://${HOST}/frontend/user`
|
||||
: 'https://www.githubtrends.io/user/wrapped'
|
||||
: MODE === 'trends'
|
||||
? `http://${HOST}/frontend/user`
|
||||
: 'http://localhost:3000/user/wrapped';
|
||||
? `http://${HOST}/frontend/user`
|
||||
: 'http://localhost:3000/user/wrapped';
|
||||
|
||||
export const GITHUB_PRIVATE_AUTH_URL = `https://github.com/login/oauth/authorize?scope=user,repo&client_id=${CLIENT_ID}&redirect_uri=${REDIRECT_URI}/private`;
|
||||
export const GITHUB_PUBLIC_AUTH_URL = `https://github.com/login/oauth/authorize?client_id=${CLIENT_ID}&redirect_uri=${REDIRECT_URI}/public`;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* eslint-disable jsx-a11y/anchor-is-valid */
|
||||
|
||||
import React, { useEffect } from 'react';
|
||||
import { useDispatch, useSelector } from 'react-redux';
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* eslint-disable jsx-a11y/anchor-is-valid */
|
||||
|
||||
import React, { useEffect } from 'react';
|
||||
import { useSelector, useDispatch } from 'react-redux';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import axios from 'axios';
|
||||
import { default as router } from "../../backend/.vercel/output/functions/api.func/router.js";
|
||||
import { default as router } from '../../backend/.vercel/output/functions/api.func/router.js';
|
||||
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { useDispatch, useSelector } from 'react-redux';
|
||||
@@ -133,7 +133,7 @@ const HomeScreen = () => {
|
||||
login(newUserId, userKey);
|
||||
try {
|
||||
console.log(router);
|
||||
/*
|
||||
/*
|
||||
const restResult = await axios.get(
|
||||
'https://api.github.com/search/commits?q=author:martin-mfg',
|
||||
);
|
||||
|
||||
@@ -4,7 +4,6 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import { Card } from '../../../components';
|
||||
// eslint-disable-next-line import/no-relative-packages
|
||||
import { themes } from '../../../backend/themes/index';
|
||||
|
||||
const ThemeStage = ({ theme, setTheme, fullSuffix }) => {
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
||||
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
||||
|
||||
import React, { useEffect, useRef, useState } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { useDispatch, useSelector } from 'react-redux';
|
||||
|
||||
+3024
-2779
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user