add eslint

This commit is contained in:
Stepan Usatiuk
2023-12-15 19:55:58 +01:00
parent 1e2c667bf4
commit fc396f9ac6
4 changed files with 2604 additions and 1 deletions

21
client/.eslintrc.json Normal file
View File

@@ -0,0 +1,21 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/jsx-runtime",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"react"
]
}

2577
client/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -18,6 +18,11 @@
"@parcel/validator-typescript": "^2.10.3",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.17",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.33.2",
"parcel": "^2.10.3",
"prettier": "^3.1.1",
"process": "^0.11.10",

View File

@@ -1,3 +1,3 @@
export function App() {
return <h1>Hello worlffffd!</h1>;
}
}