Skip to content

Commit

Permalink
feat[coral]: Add eslint
Browse files Browse the repository at this point in the history
ESLint was set up using npm init script.

Resolves: #110
  • Loading branch information
SmuliS committed Oct 19, 2022
1 parent f75ff0e commit 5edb660
Show file tree
Hide file tree
Showing 3 changed files with 1,419 additions and 80 deletions.
30 changes: 30 additions & 0 deletions coral/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/jsx-runtime"
],
"overrides": [
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
}
}
6 changes: 5 additions & 1 deletion coral/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"lint": "prettier --check src",
"lint": "prettier --check src && eslint .",
"reformat": "prettier --write src"
},
"dependencies": {
Expand All @@ -23,7 +23,11 @@
"devDependencies": {
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@typescript-eslint/eslint-plugin": "^5.40.1",
"@typescript-eslint/parser": "^5.40.1",
"@vitejs/plugin-react": "^2.1.0",
"eslint": "^8.25.0",
"eslint-plugin-react": "^7.31.10",
"prettier": "^2.7.1",
"typescript": "^4.6.4",
"vite": "^3.1.0"
Expand Down
Loading

0 comments on commit 5edb660

Please sign in to comment.