Add minimum project files

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2022-12-25 23:41:29 +01:00
parent 556ac9df83
commit 7993677abc
6 changed files with 2851 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
root = true
[*]
indent_style = "tab"
indent_size = 4
tab_width = 4
trim_trailing_whitespace = "true"
charset = "utf-8"
end_of_line = "lf"
[*.{js,ts}]
insert_final_newline = "true"
+3
View File
@@ -0,0 +1,3 @@
*.json
*.css
/generated
+93
View File
@@ -0,0 +1,93 @@
{
"root": true,
"env": {
"browser": true,
"worker": true,
"es2020": true
},
"globals": {
"config": "readonly"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"impliedStrict": true
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": "off",
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"semi-spacing": [
"warn",
{
"before": false,
"after": true
}
],
"semi-style": [
"warn",
"last"
],
"no-cond-assign": [
"error",
"except-parens"
],
"no-dupe-else-if": [
"error"
],
"no-multiple-empty-lines": [
"warn",
{
"max": 1,
"maxEOF": 1,
"maxBOF": 0
}
],
"new-parens": [
"error",
"always"
],
"max-len": "off",
"eol-last": [
"warn",
"always"
],
"brace-style": [
"warn",
"1tbs"
],
"dot-location": [
"warn",
"property"
],
"no-undef": "warn",
"no-empty": "warn",
"no-prototype-builtins": "warn",
"no-unreachable": "warn",
"valid-typeof": "warn",
"vars-on-top": "warn",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "warn",
"no-debugger": "warn"
}
}
+2696
View File
File diff suppressed because it is too large Load Diff
+22
View File
@@ -0,0 +1,22 @@
{
"name": "js-vmaf",
"version": "0.0.0",
"description": "A simple tool to quickly and correctly compare a reference file with a distorted file using VMAF.",
"main": "generated/index.js",
"scripts": {
"lint": "npx eslint ./source --ext .ts,.mts",
"fix": "npx eslint ./source --ext .ts,.mts --fix",
"compile": "npx tsc",
"build": "npm run fix && npm run compile",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Michael Fabian 'Xaymar' Dirks <info@xaymar.com>",
"license": "BSD 3-Clause \"New\" or \"Revised\" License",
"devDependencies": {
"@types/node": "^18.11.17",
"@typescript-eslint/eslint-plugin": "^5.47.0",
"@typescript-eslint/parser": "^5.47.0",
"eslint": "^8.30.0",
"typescript": "^4.9.4"
}
}
+25
View File
@@ -0,0 +1,25 @@
{
"include": [
"./source/**/*"
],
"compilerOptions": {
"declaration": true,
"declarationDir": "generated",
"declarationMap": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"incremental": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "generated",
"removeComments": true,
"rootDir": "source",
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"strictNullChecks": true,
"target": "ES2020",
"tsBuildInfoFile": "./generated/.tsbuildinfo",
"useDefineForClassFields": true,
}
}