Skip to content

Commit

Permalink
Update lint tooling.
Browse files Browse the repository at this point in the history
- Update rc.
- Lint module.
- Lint node imports.
  • Loading branch information
davidlehn committed Mar 2, 2024
1 parent 47f90d1 commit 3efaa0d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
15 changes: 9 additions & 6 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@

module.exports = {
root: true,
parserOptions: {
// this is required for dynamic import()
ecmaVersion: 2020
},
env: {
node: true
},
extends: ['digitalbazaar', 'digitalbazaar/jsdoc'],
ignorePatterns: ['node_modules/']
extends: [
'digitalbazaar',
'digitalbazaar/jsdoc',
'digitalbazaar/module'
],
ignorePatterns: ['node_modules/'],
rules: {
'unicorn/prefer-node-protocol': 'error'
}
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"eslint": "^8.57.0",
"eslint-config-digitalbazaar": "^5.0.1",
"eslint-plugin-jsdoc": "^48.2.0",
"eslint-plugin-unicorn": "^51.0.1",
"jsdoc-to-markdown": "^8.0.1"
},
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*/

import * as bedrock from '@bedrock/core';
import {fileURLToPath} from 'url';
import path from 'path';
import {fileURLToPath} from 'node:url';
import path from 'node:path';
import '@bedrock/config-yaml';

const {config} = bedrock;
Expand Down

0 comments on commit 3efaa0d

Please sign in to comment.