Skip to content

Commit

Permalink
pkg: update bslint.
Browse files Browse the repository at this point in the history
  • Loading branch information
nodech committed Jan 15, 2025
1 parent ebf0ec0 commit 80cf620
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 145 deletions.
142 changes: 0 additions & 142 deletions .eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
- name: Install dependencies
run: npm install --location=global bslint @hns-dev/bsdoc

- name: Install bslintrc
run: npm install bslintrc

- name: Lint
run: npm run lint

Expand Down
54 changes: 54 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
'use strict';

const rc = require('bslintrc');

module.exports = [
rc.configs.recommended,
rc.configs.bcoin,
{
languageOptions: {
globals: {
...rc.globals.node
},
ecmaVersion: 'latest'
}
},
{
files: [
'bin/cli',
'bin/hsd',
'bin/node',
'bin/hs-seeder',
'bin/node',
'bin/_seeder',
'bin/spvnode',
'bin/wallet',
'bin/hsd-cli',
'bin/hsw-cli',
'etc/genesis',
'**/*.cjs',
'**/*.mjs',
'**/*.js',
'*.js',
'*.mjs',
'*.cjs'
],
languageOptions: {
sourceType: 'commonjs'
}
},
{
files: ['test/{,**/}*.{js,cjs,mjs}'],
languageOptions: {
globals: {
...rc.globals.mocha,
register: 'readable'
}
},
rules: {
'max-len': 'off',
'prefer-arrow-callback': 'off',
'no-return-assign': 'off'
}
}
];
13 changes: 12 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"node": ">=14.0.0"
},
"dependencies": {
"@handshake-org/bfilter": "~2.3.0",
"bcfg": "~0.2.2",
"bcrypto": "~5.4.0",
"bcurl": "~0.2.1",
"bdb": "~1.6.1",
"bdns": "~0.1.5",
"bevent": "~0.1.6",
"bfile": "~0.2.3",
"@handshake-org/bfilter": "~2.3.0",
"bheep": "~0.1.6",
"binet": "~0.3.9",
"blgr": "~0.2.1",
Expand All @@ -49,7 +49,8 @@
"urkel": "~1.0.3"
},
"devDependencies": {
"bmocha": "^2.2.0"
"bmocha": "^2.2.0",
"bslintrc": "^0.0.3"
},
"main": "./lib/hsd.js",
"bin": {
Expand Down

0 comments on commit 80cf620

Please sign in to comment.