Skip to content

Commit

Permalink
feat: add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Aug 21, 2023
1 parent a7a643b commit 551ef9f
Show file tree
Hide file tree
Showing 10 changed files with 309 additions and 119 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* eslint-env node */
module.exports = {
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
root: true,
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
}
};
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,11 @@
"build-electron": "cross-env PUBLIC_URL=./ craco build",
"electron": "electron .",
"electron-dev": "cross-env ELECTRON_START_URL=http://localhost:3000 electron .",
"electron-dist": "electron-builder"
"electron-dist": "electron-builder",
"lint": "eslint ./src"
},
"homepage": "https://explore.veramo.dev",
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},

"prettier": {
"jsxBracketSameLine": false,
"trailingComma": "all",
Expand Down Expand Up @@ -135,6 +131,8 @@
"@types/react-router-dom": "^5.3.3",
"@types/url-parse": "^1.4.8",
"@types/uuid": "^9.0.1",
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.4.0",
"@veramo-community/react-components": "^1.4.0",
"@veramo-community/veramo-react": "^1.0.82",
"@veramo/core": "5.4.2-next.10",
Expand Down Expand Up @@ -172,6 +170,7 @@
"did-resolver": "^4.1.0",
"electron": "^26.0.0",
"electron-builder": "^24.6.3",
"eslint": "^8.47.0",
"ethr-did-resolver": "^8.0.0",
"https-browserify": "^1.0.0",
"husky": "^8.0.3",
Expand Down
Loading

0 comments on commit 551ef9f

Please sign in to comment.