Skip to content

Commit

Permalink
run tsc and eslint through project
Browse files Browse the repository at this point in the history
  • Loading branch information
ezeamin committed May 4, 2023
1 parent fa8ad86 commit 41c16c6
Show file tree
Hide file tree
Showing 19 changed files with 2,923 additions and 77 deletions.
34 changes: 34 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
],
overrides: [],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint'],
rules: {
'no-param-reassign': 'off',
'import/prefer-default-export': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-uses-react': 'off',
'react/function-component-definition': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': 'off',
},
settings: {
react: {
version: 'detect',
},
},
};
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
"@mui/icons-material": "^5.11.16",
"@mui/material": "^5.12.3",
"@reduxjs/toolkit": "^1.9.5",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"dayjs": "^1.11.7",
"eslint": "^8.39.0",
"eslint-plugin-react": "^7.32.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^8.0.5",
Expand All @@ -22,7 +27,11 @@
"devDependencies": {
"@types/react": "^18.2.4",
"@types/react-dom": "^18.2.3",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"@vitejs/plugin-react-swc": "^3.3.0",
"eslint": "^8.39.0",
"eslint-plugin-react": "^7.32.2",
"typescript": "^5.0.4",
"vite": "^4.3.4"
}
Expand Down
Loading

0 comments on commit 41c16c6

Please sign in to comment.