Skip to content

Commit

Permalink
Adds linter and lint the files. (spruceid#78)
Browse files Browse the repository at this point in the history
* Add linter and apply format

* Removed useless try catch block

* Made promise function not async, renamed assert to fail changed let to const

* Fix linter issues with tests

* Type provider for checkContractWalletSignature
  • Loading branch information
w4ll3 committed Jul 18, 2022
1 parent 98ecb9b commit e7bdd2a
Show file tree
Hide file tree
Showing 13 changed files with 3,269 additions and 723 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ charset = utf-8
indent_style = tab

[lib/**.ts]
indent_style = tab
indent_style = space
indent_size = 4
max_line_length = 80
quote_type = single
Expand Down
2 changes: 2 additions & 0 deletions packages/siwe/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
11 changes: 11 additions & 0 deletions packages/siwe/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
]
}
10 changes: 10 additions & 0 deletions packages/siwe/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"semi": true,
"singleQuote": true,
"arrowParens": "avoid",
"bracketSameLine": true,
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"endOfLine": "lf"
}
6 changes: 3 additions & 3 deletions packages/siwe/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
modulePathIgnorePatterns: ["<rootDir>/dist/"]
preset: 'ts-jest',
testEnvironment: 'node',
modulePathIgnorePatterns: ['<rootDir>/dist/'],
};
Loading

0 comments on commit e7bdd2a

Please sign in to comment.