Skip to content

Commit

Permalink
Add eslint, minor code quality improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
tboydston committed Feb 14, 2023
1 parent fedf36b commit f47d694
Show file tree
Hide file tree
Showing 9 changed files with 2,914 additions and 801 deletions.
44 changes: 44 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"extends": ["airbnb-base", "prettier", "plugin:mocha/recommended"],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"prettier/prettier": "error",
"no-mocha-arrows": 0,
"no-console": 0,
"spellcheck/spell-checker": [
1,
{
"comments": true,
"strings": true,
"identifiers": false,
"templates": false,
"lang": "en_US",
"skipWords": [
"dict",
"aff",
"hunspellchecker",
"hunspell",
"utils",
"priv",
"xpub",
"txid",
"tx",
"bitcoind",
"bool"
],
"skipIfMatch": ["http://[^s]*", "^[-\\w]+/[-\\w\\.]+$"],
"skipWordIfMatch": ["^foobar.*$"],
"minLength": 4
}
]
},
"plugins": ["prettier", "mocha", "spellcheck"]
}
Loading

0 comments on commit f47d694

Please sign in to comment.