setup: eslint config

This commit is contained in:
danisharora099 2022-12-09 16:59:27 +05:30
parent a274982457
commit bb7791ba7c
No known key found for this signature in database
GPG Key ID: FBD2BF500037F135
3 changed files with 1401 additions and 371 deletions

16
.eslintrc.json Normal file
View File

@ -0,0 +1,16 @@
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true,
"node": true
},
"extends": "plugin:react/recommended",
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {}
}

View File

@ -3,9 +3,14 @@
"gh-pages": "^4.0.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.46.0",
"@typescript-eslint/parser": "^5.46.0",
"eslint": "^8.29.0",
"eslint-plugin-react": "^7.31.11",
"husky": "^8.0.0",
"prettier": "^2.8.1",
"pretty-quick": "^3.1.3"
"pretty-quick": "^3.1.3",
"typescript": "^4.9.4"
},
"scripts": {
"prepare": "husky install"

File diff suppressed because it is too large Load Diff