mirror of
https://codeberg.org/timelimit/timelimit-server-ui.git
synced 2025-10-03 09:19:14 +02:00
Replace tslint by eslint
This commit is contained in:
parent
2f0ca96d7d
commit
c70c0d131a
6 changed files with 2134 additions and 357 deletions
17
.eslintrc.json
Normal file
17
.eslintrc.json
Normal file
|
@ -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
|
- executes the linter
|
||||||
- the linter is executed during ``npm run build`` too
|
- the linter is executed during ``npm run build`` too
|
||||||
|
|
||||||
### npm run lint:fix
|
|
||||||
|
|
||||||
- executes the linter and fixes some issues automatically
|
|
||||||
|
|
||||||
### npm run develop
|
### npm run develop
|
||||||
|
|
||||||
- launchs a webserver which serves the application
|
- launchs a webserver which serves the application
|
||||||
|
@ -44,7 +40,7 @@ This requires Node.JS and NPM.
|
||||||
## License
|
## License
|
||||||
|
|
||||||
> TimeLimit Server Admin UI
|
> 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
|
> This program is free software: you can redistribute it and/or modify
|
||||||
> it under the terms of the GNU General Public License as
|
> it under the terms of the GNU General Public License as
|
||||||
|
|
2442
package-lock.json
generated
2442
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
@ -1,15 +1,15 @@
|
||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"develop": "parcel src/index.html",
|
"develop": "parcel src/index.html",
|
||||||
"lint": "tslint --project .",
|
"lint": "eslint src",
|
||||||
"lint:fix": "tslint --project . --fix",
|
"build": "eslint src && rimraf dist && parcel build src/index.html --no-source-maps --no-optimize --no-cache --public-url . && node finish-build.mjs"
|
||||||
"build": "tslint --project . && rimraf dist && parcel build src/index.html --no-source-maps --no-optimize --no-cache --public-url . && node finish-build.mjs"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@typescript-eslint/eslint-plugin": "^5.31.0",
|
||||||
|
"@typescript-eslint/parser": "^5.31.0",
|
||||||
|
"eslint": "^8.20.0",
|
||||||
"parcel": "^2.6.2",
|
"parcel": "^2.6.2",
|
||||||
"rimraf": "^3.0.1",
|
"rimraf": "^3.0.1",
|
||||||
"tslint": "^6.0.0",
|
|
||||||
"tslint-config-standard": "^9.0.0",
|
|
||||||
"typescript": "^3.7.5"
|
"typescript": "^3.7.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* TimeLimit Server Admin UI
|
* 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
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as
|
* it under the terms of the GNU General Public License as
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
import { Api, ApiCreator, IllegalAccessDataError } from './api'
|
import { Api, ApiCreator, IllegalAccessDataError } from './api'
|
||||||
|
|
||||||
const delay = (time: number) => new Promise((resolve, _) => {
|
const delay = (time: number) => new Promise((resolve) => {
|
||||||
setTimeout(() => resolve(), time)
|
setTimeout(() => resolve(), time)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
12
tslint.json
12
tslint.json
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
"defaultSeverity": "error",
|
|
||||||
"extends": [
|
|
||||||
"tslint-config-standard"
|
|
||||||
],
|
|
||||||
"jsRules": {},
|
|
||||||
"rules": {
|
|
||||||
"await-promise": [true, "Bluebird"],
|
|
||||||
"ordered-imports": true
|
|
||||||
},
|
|
||||||
"rulesDirectory": []
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue