mirror of
https://codeberg.org/timelimit/timelimit-server-ui.git
synced 2026-06-05 17:36:50 +02:00
Replace tslint by eslint
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended"
|
||||
],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"plugins": ["@typescript-eslint"],
|
||||
"root": true,
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts"],
|
||||
"rules": {
|
||||
"@typescript-eslint/no-inferrable-types": "off"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -32,10 +32,6 @@ This requires Node.JS and NPM.
|
||||
- executes the linter
|
||||
- the linter is executed during ``npm run build`` too
|
||||
|
||||
### npm run lint:fix
|
||||
|
||||
- executes the linter and fixes some issues automatically
|
||||
|
||||
### npm run develop
|
||||
|
||||
- launchs a webserver which serves the application
|
||||
@@ -44,7 +40,7 @@ This requires Node.JS and NPM.
|
||||
## License
|
||||
|
||||
> TimeLimit Server Admin UI
|
||||
> Copyright (C) 2020 Jonas Lochmann
|
||||
> Copyright (C) 2020 - 2022 Jonas Lochmann
|
||||
>
|
||||
> This program is free software: you can redistribute it and/or modify
|
||||
> it under the terms of the GNU General Public License as
|
||||
|
||||
Generated
+2109
-333
File diff suppressed because it is too large
Load Diff
+5
-5
@@ -1,15 +1,15 @@
|
||||
{
|
||||
"scripts": {
|
||||
"develop": "parcel src/index.html",
|
||||
"lint": "tslint --project .",
|
||||
"lint:fix": "tslint --project . --fix",
|
||||
"build": "tslint --project . && rimraf dist && parcel build src/index.html --no-source-maps --no-optimize --no-cache --public-url . && node finish-build.mjs"
|
||||
"lint": "eslint src",
|
||||
"build": "eslint src && rimraf dist && parcel build src/index.html --no-source-maps --no-optimize --no-cache --public-url . && node finish-build.mjs"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^5.31.0",
|
||||
"@typescript-eslint/parser": "^5.31.0",
|
||||
"eslint": "^8.20.0",
|
||||
"parcel": "^2.6.2",
|
||||
"rimraf": "^3.0.1",
|
||||
"tslint": "^6.0.0",
|
||||
"tslint-config-standard": "^9.0.0",
|
||||
"typescript": "^3.7.5"
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* TimeLimit Server Admin UI
|
||||
* Copyright (C) 2020 Jonas Lochmann
|
||||
* Copyright (C) 2020 - 2022 Jonas Lochmann
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
import { Api, ApiCreator, IllegalAccessDataError } from './api'
|
||||
|
||||
const delay = (time: number) => new Promise((resolve, _) => {
|
||||
const delay = (time: number) => new Promise((resolve) => {
|
||||
setTimeout(() => resolve(), time)
|
||||
})
|
||||
|
||||
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"defaultSeverity": "error",
|
||||
"extends": [
|
||||
"tslint-config-standard"
|
||||
],
|
||||
"jsRules": {},
|
||||
"rules": {
|
||||
"await-promise": [true, "Bluebird"],
|
||||
"ordered-imports": true
|
||||
},
|
||||
"rulesDirectory": []
|
||||
}
|
||||
Reference in New Issue
Block a user