Skip to content

Commit

Permalink
Tune lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Apr 2, 2024
1 parent 231dd45 commit 6b12b18
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"n/prefer-global/process": "error",
"n/prefer-promises/fs": "error",
"n/prefer-promises/dns": "error",
"n/no-process-exit": "off",
"no-process-exit": "off",
"no-constant-condition": ["warn", { "checkLoops": false }],
"no-empty": ["warn", { "allowEmptyCatch": true }],
Expand Down
2 changes: 1 addition & 1 deletion src/config/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const path = process.env.NODE_ENV == 'test'
: `${dir}/default.yml`;

export default function load() {
// eslint-disable-next-line node/no-sync
// eslint-disable-next-line n/no-sync
const config = yaml.load(fs.readFileSync(path, 'utf-8')) as Source;

const mixin = {} as Mixin;
Expand Down
2 changes: 1 addition & 1 deletion src/server/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable node/no-sync */
/* eslint-disable n/no-sync */
/**
* Core Server
*/
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable node/no-sync */
/* eslint-disable n/no-sync */
/**
* webpack configuration
*/
Expand Down

0 comments on commit 6b12b18

Please sign in to comment.