Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .eslintrc.cjs

This file was deleted.

10 changes: 2 additions & 8 deletions build/main.cjs
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var fs = require('fs');
var constants = require('constants');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);

async function open(fileName, openFlags, cacheSize, pageSize) {
cacheSize = cacheSize || 4096*64;
if (typeof openFlags !== "number" && ["w+", "wx+", "r", "ax+", "a+"].indexOf(openFlags) <0)
throw new Error("Invalid open option");
const fd =await fs__default["default"].promises.open(fileName, openFlags);
const fd =await fs.promises.open(fileName, openFlags);

const stats = await fd.stat();

Expand Down Expand Up @@ -363,7 +357,7 @@ class FastFile {
async discard() {
const self = this;
await self.close();
await fs__default["default"].promises.unlink(this.fileName);
await fs.promises.unlink(this.fileName);
}

async writeULE32(v, pos) {
Expand Down
40 changes: 40 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import js from "@eslint/js";

Check warning on line 1 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/*)

Expected linebreaks to be 'LF' but found 'CRLF'

Check warning on line 1 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/-1)

Expected linebreaks to be 'LF' but found 'CRLF'
import globals from "globals";

Check warning on line 2 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/*)

Expected linebreaks to be 'LF' but found 'CRLF'

Check warning on line 2 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/-1)

Expected linebreaks to be 'LF' but found 'CRLF'

Check warning on line 3 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/*)

Expected linebreaks to be 'LF' but found 'CRLF'

Check warning on line 3 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/-1)

Expected linebreaks to be 'LF' but found 'CRLF'

Check warning on line 4 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/*)

Expected linebreaks to be 'LF' but found 'CRLF'

Check warning on line 4 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/-1)

Expected linebreaks to be 'LF' but found 'CRLF'
export default [

Check warning on line 5 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/*)

Expected linebreaks to be 'LF' but found 'CRLF'

Check warning on line 5 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/-1)

Expected linebreaks to be 'LF' but found 'CRLF'
{

Check warning on line 6 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/*)

Expected linebreaks to be 'LF' but found 'CRLF'

Check warning on line 6 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/-1)

Expected linebreaks to be 'LF' but found 'CRLF'
ignores: ["build/**", "node_modules/**"]

Check warning on line 7 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/*)

Expected linebreaks to be 'LF' but found 'CRLF'

Check warning on line 7 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/-1)

Expected linebreaks to be 'LF' but found 'CRLF'
},

Check warning on line 8 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/*)

Expected linebreaks to be 'LF' but found 'CRLF'

Check warning on line 8 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/-1)

Expected linebreaks to be 'LF' but found 'CRLF'
js.configs.recommended,

Check warning on line 9 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/*)

Expected linebreaks to be 'LF' but found 'CRLF'

Check warning on line 9 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/-1)

Expected linebreaks to be 'LF' but found 'CRLF'
{

Check warning on line 10 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/*)

Expected linebreaks to be 'LF' but found 'CRLF'

Check warning on line 10 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Test (windows-latest, lts/-1)

Expected linebreaks to be 'LF' but found 'CRLF'
languageOptions: {
globals: {
...globals.es2015,
...globals.node,
...globals.mocha
},
ecmaVersion: 2020,
sourceType: "module"
},
rules: {
"indent": [
"error",
4
],
"linebreak-style": [
"warn",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"no-unused-vars": ["error", { "caughtErrors": "none" }]
}
}
];
Loading