Skip to content

Commit 48f363d

Browse files
committed
feat: lint script
1 parent cc88dbe commit 48f363d

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/*.test.*
2+
**/*.spec.*

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@
2020
},
2121
"scripts": {
2222
"start": "react-scripts start",
23-
"dev": "npm i --force && react-scripts start",
2423
"build": "react-scripts build",
25-
"type": "tsc",
24+
"dev": "npm i --force && react-scripts start",
2625
"format": "prettier ./src --write",
2726
"format:all": "prettier . --write",
27+
"lint": "eslint ./src --ext .js,.ts,.tsx",
28+
"type": "tsc",
2829
"test": "react-scripts test"
2930
},
3031
"dependencies": {

src/theme/createEmotionCache.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/theme/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
import { Theme } from '@mui/material/styles';
12
import AppThemeProvider from './AppThemeProvider';
23
import DARK_THEME from './dark';
34
import LIGHT_THEME from './light';
45

6+
declare module '@mui/styles/defaultTheme' {
7+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
8+
interface DefaultTheme extends Theme {
9+
// TODO: If you will extend Theme with own properties, also add custom variables here. See https://mui.com/material-ui/customization/theming/#custom-variables
10+
}
11+
}
12+
513
export {
614
LIGHT_THEME as default, // Change to DARK_THEME if you want to use dark theme as default
715
DARK_THEME,

0 commit comments

Comments
 (0)