Configured eslint and prettier to work on package.json

This commit is contained in:
Jason Zhu 2023-03-18 22:52:01 +11:00
parent 59ce0e2051
commit 5ccfe5a986
6 changed files with 114 additions and 110 deletions

6
.idea/jsLinters/eslint.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EslintConfiguration">
<option name="fix-on-save" value="true" />
</component>
</project>

View File

@ -15,7 +15,10 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"prettier": "prettier \"src/**/*.{js,jsx,ts,tsx,css,scss,md}\" --write",
"format:check": "npm run prettier -- --check",
"format:write": "npm run prettier -- --write"
},
"eslintConfig": {
"extends": [

View File

@ -1,34 +1,34 @@
:root {
--grass: #5FBD58;
--bug: #92BC2C;
--grass: #5fbd58;
--bug: #92bc2c;
--dark: #595761;
--dragon: #0C69C8;
--electric: #F2D94E;
--fairy: #EE90E6;
--fighting: #D3425F;
--dragon: #0c69c8;
--electric: #f2d94e;
--fairy: #ee90e6;
--fighting: #d3425f;
--fire: #dc872f;
--flying: #A1BBEC;
--ghost: #5F6DBC;
--ground: #DA7C4D;
--ice: #75D0C1;
--normal: #A0A29F;
--poison: #B763CF;
--flying: #a1bbec;
--ghost: #5f6dbc;
--ground: #da7c4d;
--ice: #75d0c1;
--normal: #a0a29f;
--poison: #b763cf;
--psychic: #ff2ca8;
--rock: #a38c21;
--steel: #5695A3;
--water: #539DDF;
--steel: #5695a3;
--water: #539ddf;
}
html {
--pokename: #000;
--cardborder: #fff;
--pokenumber: hsl(228, 28%, 20%);
--info: #fff
--info: #fff;
}
@font-face {
font-family: 'Press Start 2P';
src: url("assets/PressStart2P-Regular.ttf") format("truetype");
src: url('assets/PressStart2P-Regular.ttf') format('truetype');
}
.thumbnail__container {
@ -44,15 +44,10 @@ html {
height: 285px;
text-align: center;
/* box-shadow: 0 5px 25px 1px rgb(0 0 0 / 50%); */
box-shadow:
0 1.6px 1.6px rgba(0, 0, 0, 0.023),
0 3.8px 3.8px rgba(0, 0, 0, 0.034),
0 6.9px 6.9px rgba(0, 0, 0, 0.041),
0 11.4px 11.4px rgba(0, 0, 0, 0.049),
0 18.8px 18.8px rgba(0, 0, 0, 0.056),
0 32.8px 32.8px rgba(0, 0, 0, 0.067),
0 71px 71px rgba(0, 0, 0, 0.09)
;
box-shadow: 0 1.6px 1.6px rgba(0, 0, 0, 0.023),
0 3.8px 3.8px rgba(0, 0, 0, 0.034), 0 6.9px 6.9px rgba(0, 0, 0, 0.041),
0 11.4px 11.4px rgba(0, 0, 0, 0.049), 0 18.8px 18.8px rgba(0, 0, 0, 0.056),
0 32.8px 32.8px rgba(0, 0, 0, 0.067), 0 71px 71px rgba(0, 0, 0, 0.09);
transition: all 0.2s ease-in-out;
}

View File

@ -1,6 +1,6 @@
.app_container {
display: flex;
flex-direction: column;;
flex-direction: column;
align-items: center;
justify-items: center;
min-height: 100vh;
@ -13,7 +13,7 @@ body {
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-image: url("./assets/bg.png");
background-image: url('./assets/bg.png');
background-size: initial;
background-repeat: repeat;
}

View File

@ -5,12 +5,12 @@ import App from './App';
import reportWebVitals from './reportWebVitals';
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
document.getElementById('root') as HTMLElement,
);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
</React.StrictMode>,
);
// If you want to start measuring performance in your app, pass a function