Fix issues with eslint from liqe library

This commit is contained in:
Jackson Harper
2024-01-11 17:34:40 +08:00
parent ba79f7f0af
commit c8a21cbe46
4 changed files with 70 additions and 925 deletions

View File

@ -1,14 +1,20 @@
{
"extends": [
"canonical",
"canonical/node",
"canonical/typescript"
],
"extends": "../../.eslintrc",
"parserOptions": {
"project": "./tsconfig.json"
"project": "tsconfig.json"
},
"root": true,
"rules": {
"@typescript-eslint/no-parameter-properties": 0
"semi": 0,
"fp/no-class": 0,
"prettier/prettier": 0,
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/no-unsafe-argument": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/no-parameter-properties": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/restrict-template-expressions": 0
}
}
}

View File

@ -28,8 +28,6 @@
"benny": "^3.7.1",
"coveralls": "^3.1.1",
"del-cli": "^4.0.1",
"eslint": "^7.32.0",
"eslint-config-canonical": "^28.0.0",
"faker": "^5.5.3",
"husky": "^7.0.4",
"npm-watch": "^0.11.0",
@ -67,4 +65,4 @@
"volta": {
"extends": "../../package.json"
}
}
}

View File

@ -1,18 +1,14 @@
/* eslint-disable fp/no-class */
import {
ExtendableError,
} from 'ts-error';
import { ExtendableError } from 'ts-error'
export class LiqeError extends ExtendableError {}
export class SyntaxError extends LiqeError {
public constructor (
public constructor(
public message: string,
public offset: number,
public line: number,
public column: number,
public column: number
) {
super(message);
super(message)
}
}

955
yarn.lock

File diff suppressed because it is too large Load Diff