converted CRLF line break to LF

This commit is contained in:
Asnxthaony 2020-04-07 12:54:48 +08:00
parent 7479217d03
commit 800370ca47
No known key found for this signature in database
GPG Key ID: 1D36B94AA9417589
2 changed files with 495 additions and 495 deletions

View File

@ -1,245 +1,245 @@
<?php <?php
return [ return [
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Application Version | Application Version
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| Version of Blessing Skin Server. | Version of Blessing Skin Server.
| |
*/ */
'version' => '5.0.0-beta.7', 'version' => '5.0.0-beta.7',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Update Source | Update Source
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| Where to get information of new versions. | Where to get information of new versions.
| |
*/ */
'update_source' => env( 'update_source' => env(
'UPDATE_SOURCE', 'UPDATE_SOURCE',
'https://dev.azure.com/blessing-skin/51010f6d-9f99-40f1-a262-0a67f788df32/_apis/git/'. 'https://dev.azure.com/blessing-skin/51010f6d-9f99-40f1-a262-0a67f788df32/_apis/git/'.
'repositories/a9ff8df7-6dc3-4ff8-bb22-4871d3a43936/Items?path=%2Fupdate_preview.json' 'repositories/a9ff8df7-6dc3-4ff8-bb22-4871d3a43936/Items?path=%2Fupdate_preview.json'
), ),
'name' => env('APP_NAME', 'blessing_skin'), 'name' => env('APP_NAME', 'blessing_skin'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Application Environment | Application Environment
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| This value determines the "environment" your application is currently | This value determines the "environment" your application is currently
| running in. This may determine how you prefer to configure various | running in. This may determine how you prefer to configure various
| services the application utilizes. Set this in your ".env" file. | services the application utilizes. Set this in your ".env" file.
| |
*/ */
'env' => env('APP_ENV', 'production'), 'env' => env('APP_ENV', 'production'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Application Debug Mode | Application Debug Mode
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| When your application is in debug mode, detailed error messages with | When your application is in debug mode, detailed error messages with
| stack traces will be shown on every error that occurs within your | stack traces will be shown on every error that occurs within your
| application. If disabled, a simple generic error page is shown. | application. If disabled, a simple generic error page is shown.
| |
*/ */
'debug' => (bool) env('APP_DEBUG', false), 'debug' => (bool) env('APP_DEBUG', false),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Application URL | Application URL
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| This URL is used by the console to properly generate URLs when using | This URL is used by the console to properly generate URLs when using
| the Artisan command line tool. You should set this to the root of | the Artisan command line tool. You should set this to the root of
| your application so that it is used when running Artisan tasks. | your application so that it is used when running Artisan tasks.
| |
*/ */
'url' => env('APP_URL', 'http://localhost'), 'url' => env('APP_URL', 'http://localhost'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Assets | Assets
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| This is related to front-end assets. The asset URL is only available for | This is related to front-end assets. The asset URL is only available for
| development, not for production. | development, not for production.
*/ */
'asset' => [ 'asset' => [
'env' => env('ASSET_ENV', 'production'), 'env' => env('ASSET_ENV', 'production'),
'url' => env('ASSET_URL', 'http://localhost'), 'url' => env('ASSET_URL', 'http://localhost'),
], ],
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Application Timezone | Application Timezone
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| Here you may specify the default timezone for your application, which | Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. We have gone | will be used by the PHP date and date-time functions. We have gone
| ahead and set this to a sensible default for you out of the box. | ahead and set this to a sensible default for you out of the box.
| |
*/ */
'timezone' => 'Asia/Shanghai', 'timezone' => 'Asia/Shanghai',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Application Locale Configuration | Application Locale Configuration
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| The application locale determines the default locale that will be used | The application locale determines the default locale that will be used
| by the translation service provider. You are free to set this value | by the translation service provider. You are free to set this value
| to any of the locales which will be supported by the application. | to any of the locales which will be supported by the application.
| |
*/ */
'locale' => 'zh_CN', 'locale' => 'zh_CN',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Application Fallback Locale | Application Fallback Locale
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| The fallback locale determines the locale to use when the current one | The fallback locale determines the locale to use when the current one
| is not available. You may change the value to correspond to any of | is not available. You may change the value to correspond to any of
| the language folders that are provided through your application. | the language folders that are provided through your application.
| |
*/ */
'fallback_locale' => 'en', 'fallback_locale' => 'en',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Faker Locale | Faker Locale
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| This locale will be used by the Faker PHP library when generating fake | This locale will be used by the Faker PHP library when generating fake
| data for your database seeds. For example, this will be used to get | data for your database seeds. For example, this will be used to get
| localized telephone numbers, street address information and more. | localized telephone numbers, street address information and more.
| |
*/ */
'faker_locale' => 'en_US', 'faker_locale' => 'en_US',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Encryption Key | Encryption Key
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| This key is used by the Illuminate encrypter service and should be set | This key is used by the Illuminate encrypter service and should be set
| to a random, 32 character string, otherwise these encrypted strings | to a random, 32 character string, otherwise these encrypted strings
| will not be safe. Please do this before deploying an application! | will not be safe. Please do this before deploying an application!
| |
*/ */
'key' => env('APP_KEY'), 'key' => env('APP_KEY'),
'cipher' => 'AES-256-CBC', 'cipher' => 'AES-256-CBC',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Autoloaded Service Providers | Autoloaded Service Providers
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| The service providers listed here will be automatically loaded on the | The service providers listed here will be automatically loaded on the
| request to your application. Feel free to add your own services to | request to your application. Feel free to add your own services to
| this array to grant expanded functionality to your applications. | this array to grant expanded functionality to your applications.
| |
*/ */
'providers' => [ 'providers' => [
/* /*
* Laravel Framework Service Providers... * Laravel Framework Service Providers...
*/ */
Illuminate\Auth\AuthServiceProvider::class, Illuminate\Auth\AuthServiceProvider::class,
Illuminate\Bus\BusServiceProvider::class, Illuminate\Bus\BusServiceProvider::class,
Illuminate\Cache\CacheServiceProvider::class, Illuminate\Cache\CacheServiceProvider::class,
Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
Illuminate\Cookie\CookieServiceProvider::class, Illuminate\Cookie\CookieServiceProvider::class,
Illuminate\Database\DatabaseServiceProvider::class, Illuminate\Database\DatabaseServiceProvider::class,
Illuminate\Encryption\EncryptionServiceProvider::class, Illuminate\Encryption\EncryptionServiceProvider::class,
Illuminate\Filesystem\FilesystemServiceProvider::class, Illuminate\Filesystem\FilesystemServiceProvider::class,
Illuminate\Foundation\Providers\FoundationServiceProvider::class, Illuminate\Foundation\Providers\FoundationServiceProvider::class,
Illuminate\Hashing\HashServiceProvider::class, Illuminate\Hashing\HashServiceProvider::class,
Illuminate\Mail\MailServiceProvider::class, Illuminate\Mail\MailServiceProvider::class,
Illuminate\Notifications\NotificationServiceProvider::class, Illuminate\Notifications\NotificationServiceProvider::class,
Illuminate\Pagination\PaginationServiceProvider::class, Illuminate\Pagination\PaginationServiceProvider::class,
Illuminate\Queue\QueueServiceProvider::class, Illuminate\Queue\QueueServiceProvider::class,
Illuminate\Redis\RedisServiceProvider::class, Illuminate\Redis\RedisServiceProvider::class,
Illuminate\Session\SessionServiceProvider::class, Illuminate\Session\SessionServiceProvider::class,
Illuminate\Validation\ValidationServiceProvider::class, Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class, Illuminate\View\ViewServiceProvider::class,
/* /*
* Application Service Providers... * Application Service Providers...
*/ */
App\Providers\AppServiceProvider::class, App\Providers\AppServiceProvider::class,
App\Providers\EventServiceProvider::class, App\Providers\EventServiceProvider::class,
App\Providers\PluginServiceProvider::class, App\Providers\PluginServiceProvider::class,
App\Providers\RouteServiceProvider::class, App\Providers\RouteServiceProvider::class,
App\Providers\ViewServiceProvider::class, App\Providers\ViewServiceProvider::class,
], ],
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Class Aliases | Class Aliases
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| This array of class aliases will be registered when this application | This array of class aliases will be registered when this application
| is started. However, feel free to register as many as you wish as | is started. However, feel free to register as many as you wish as
| the aliases are "lazy" loaded so they don't hinder performance. | the aliases are "lazy" loaded so they don't hinder performance.
| |
*/ */
'aliases' => [ 'aliases' => [
'App' => Illuminate\Support\Facades\App::class, 'App' => Illuminate\Support\Facades\App::class,
'Artisan' => Illuminate\Support\Facades\Artisan::class, 'Artisan' => Illuminate\Support\Facades\Artisan::class,
'Auth' => Illuminate\Support\Facades\Auth::class, 'Auth' => Illuminate\Support\Facades\Auth::class,
'Blade' => Illuminate\Support\Facades\Blade::class, 'Blade' => Illuminate\Support\Facades\Blade::class,
'Cache' => Illuminate\Support\Facades\Cache::class, 'Cache' => Illuminate\Support\Facades\Cache::class,
'Config' => Illuminate\Support\Facades\Config::class, 'Config' => Illuminate\Support\Facades\Config::class,
'Cookie' => Illuminate\Support\Facades\Cookie::class, 'Cookie' => Illuminate\Support\Facades\Cookie::class,
'Crypt' => Illuminate\Support\Facades\Crypt::class, 'Crypt' => Illuminate\Support\Facades\Crypt::class,
'DB' => Illuminate\Support\Facades\DB::class, 'DB' => Illuminate\Support\Facades\DB::class,
'Eloquent' => Illuminate\Database\Eloquent\Model::class, 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
'Event' => Illuminate\Support\Facades\Event::class, 'Event' => Illuminate\Support\Facades\Event::class,
'File' => Illuminate\Support\Facades\File::class, 'File' => Illuminate\Support\Facades\File::class,
'Gate' => Illuminate\Support\Facades\Gate::class, 'Gate' => Illuminate\Support\Facades\Gate::class,
'Hash' => Illuminate\Support\Facades\Hash::class, 'Hash' => Illuminate\Support\Facades\Hash::class,
'Http' => Illuminate\Support\Facades\Http::class, 'Http' => Illuminate\Support\Facades\Http::class,
'Lang' => Illuminate\Support\Facades\Lang::class, 'Lang' => Illuminate\Support\Facades\Lang::class,
'Log' => Illuminate\Support\Facades\Log::class, 'Log' => Illuminate\Support\Facades\Log::class,
'Mail' => Illuminate\Support\Facades\Mail::class, 'Mail' => Illuminate\Support\Facades\Mail::class,
'Notification' => Illuminate\Support\Facades\Notification::class, 'Notification' => Illuminate\Support\Facades\Notification::class,
'Password' => Illuminate\Support\Facades\Password::class, 'Password' => Illuminate\Support\Facades\Password::class,
'Queue' => Illuminate\Support\Facades\Queue::class, 'Queue' => Illuminate\Support\Facades\Queue::class,
'Redirect' => Illuminate\Support\Facades\Redirect::class, 'Redirect' => Illuminate\Support\Facades\Redirect::class,
'Request' => Illuminate\Support\Facades\Request::class, 'Request' => Illuminate\Support\Facades\Request::class,
'Response' => Illuminate\Support\Facades\Response::class, 'Response' => Illuminate\Support\Facades\Response::class,
'Route' => Illuminate\Support\Facades\Route::class, 'Route' => Illuminate\Support\Facades\Route::class,
'Schema' => Illuminate\Support\Facades\Schema::class, 'Schema' => Illuminate\Support\Facades\Schema::class,
'Session' => Illuminate\Support\Facades\Session::class, 'Session' => Illuminate\Support\Facades\Session::class,
'Storage' => Illuminate\Support\Facades\Storage::class, 'Storage' => Illuminate\Support\Facades\Storage::class,
'URL' => Illuminate\Support\Facades\URL::class, 'URL' => Illuminate\Support\Facades\URL::class,
'Validator' => Illuminate\Support\Facades\Validator::class, 'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class, 'View' => Illuminate\Support\Facades\View::class,
/* /*
* Blessing Skin * Blessing Skin
*/ */
'Option' => App\Services\Facades\Option::class, 'Option' => App\Services\Facades\Option::class,
], ],
]; ];

View File

@ -1,250 +1,250 @@
{ {
"name": "blessing-skin-server", "name": "blessing-skin-server",
"version": "5.0.0-beta.7", "version": "5.0.0-beta.7",
"description": "A web application brings your custom skins back in offline Minecraft servers.", "description": "A web application brings your custom skins back in offline Minecraft servers.",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/bs-community/blessing-skin-server" "url": "https://github.com/bs-community/blessing-skin-server"
}, },
"author": "printempw", "author": "printempw",
"license": "MIT", "license": "MIT",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "webpack-dev-server", "dev": "webpack-dev-server",
"build": "webpack --mode=production -p --progress", "build": "webpack --mode=production -p --progress",
"lint": "eslint --ext=js,vue,ts -f=beauty .", "lint": "eslint --ext=js,vue,ts -f=beauty .",
"test": "jest" "test": "jest"
}, },
"dependencies": { "dependencies": {
"@babel/runtime": "^7.8.0", "@babel/runtime": "^7.8.0",
"@fortawesome/fontawesome-free": "^5.12.0", "@fortawesome/fontawesome-free": "^5.12.0",
"@hot-loader/react-dom": "^16.11.0", "@hot-loader/react-dom": "^16.11.0",
"@tweenjs/tween.js": "^18.4.2", "@tweenjs/tween.js": "^18.4.2",
"admin-lte": "^3.0.1", "admin-lte": "^3.0.1",
"blessing-skin-shell": "^0.3.1", "blessing-skin-shell": "^0.3.1",
"cli-spinners": "^2.2.0", "cli-spinners": "^2.2.0",
"commander": "^5.0.0", "commander": "^5.0.0",
"echarts": "^4.6.0", "echarts": "^4.6.0",
"enquirer": "^2.3.4", "enquirer": "^2.3.4",
"immer": "^6.0.2", "immer": "^6.0.2",
"jquery": "^3.4.1", "jquery": "^3.4.1",
"lodash.debounce": "^4.0.8", "lodash.debounce": "^4.0.8",
"nanoid": "^2.1.11", "nanoid": "^2.1.11",
"react": "^16.12.0", "react": "^16.12.0",
"react-dom": "^16.12.0", "react-dom": "^16.12.0",
"react-draggable": "^4.2.0", "react-draggable": "^4.2.0",
"react-hot-loader": "^4.12.18", "react-hot-loader": "^4.12.18",
"reaptcha": "^1.7.2", "reaptcha": "^1.7.2",
"rxjs": "^6.5.3", "rxjs": "^6.5.3",
"skinview-utils": "^0.2.1", "skinview-utils": "^0.2.1",
"skinview3d": "^1.2.1", "skinview3d": "^1.2.1",
"spectre.css": "^0.5.8", "spectre.css": "^0.5.8",
"use-immer": "^0.3.5", "use-immer": "^0.3.5",
"vue": "^2.6.11", "vue": "^2.6.11",
"vue-good-table": "^2.18.1", "vue-good-table": "^2.18.1",
"xterm": "^4.4.0", "xterm": "^4.4.0",
"xterm-addon-fit": "^0.3.0" "xterm-addon-fit": "^0.3.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.8.7", "@babel/core": "^7.8.7",
"@babel/plugin-transform-runtime": "^7.8.3", "@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.7", "@babel/preset-env": "^7.8.7",
"@gplane/tsconfig": "^1.0.0", "@gplane/tsconfig": "^1.0.0",
"@testing-library/jest-dom": "^5.3.0", "@testing-library/jest-dom": "^5.3.0",
"@testing-library/react": "^10.0.1", "@testing-library/react": "^10.0.1",
"@types/bootstrap": "^4.3.1", "@types/bootstrap": "^4.3.1",
"@types/echarts": "^4.4.2", "@types/echarts": "^4.4.2",
"@types/jest": "^25.1.4", "@types/jest": "^25.1.4",
"@types/jquery": "^3.3.29", "@types/jquery": "^3.3.29",
"@types/js-yaml": "^3.12.2", "@types/js-yaml": "^3.12.2",
"@types/lodash.debounce": "^4.0.6", "@types/lodash.debounce": "^4.0.6",
"@types/nanoid": "^2.1.0", "@types/nanoid": "^2.1.0",
"@types/react": "^16.9.17", "@types/react": "^16.9.17",
"@types/react-dom": "^16.9.4", "@types/react-dom": "^16.9.4",
"@types/tween.js": "^17.2.0", "@types/tween.js": "^17.2.0",
"@types/webpack": "^4.41.2", "@types/webpack": "^4.41.2",
"@typescript-eslint/eslint-plugin": "^2.8.0", "@typescript-eslint/eslint-plugin": "^2.8.0",
"@typescript-eslint/parser": "^2.8.0", "@typescript-eslint/parser": "^2.8.0",
"@vue/test-utils": "^1.0.0-beta.29", "@vue/test-utils": "^1.0.0-beta.29",
"autoprefixer": "^9.7.3", "autoprefixer": "^9.7.3",
"babel-jest": "^25.2.3", "babel-jest": "^25.2.3",
"babel-loader": "^8.0.6", "babel-loader": "^8.0.6",
"babel-plugin-dynamic-import-node": "^2.3.0", "babel-plugin-dynamic-import-node": "^2.3.0",
"cache-loader": "^4.1.0", "cache-loader": "^4.1.0",
"css-loader": "^3.4.2", "css-loader": "^3.4.2",
"eslint": "^6.7.1", "eslint": "^6.7.1",
"eslint-config-gplane": "^6.2.1", "eslint-config-gplane": "^6.2.1",
"eslint-formatter-beauty": "^3.0.0", "eslint-formatter-beauty": "^3.0.0",
"eslint-plugin-vue": "^6.1.2", "eslint-plugin-vue": "^6.1.2",
"file-loader": "^5.0.2", "file-loader": "^5.0.2",
"jest": "^25.2.3", "jest": "^25.2.3",
"jest-extended": "^0.11.5", "jest-extended": "^0.11.5",
"js-yaml": "^3.13.1", "js-yaml": "^3.13.1",
"mini-css-extract-plugin": "^0.9.0", "mini-css-extract-plugin": "^0.9.0",
"optimize-css-assets-webpack-plugin": "^5.0.3", "optimize-css-assets-webpack-plugin": "^5.0.3",
"postcss-loader": "^3.0.0", "postcss-loader": "^3.0.0",
"prettier": "^2.0.1", "prettier": "^2.0.1",
"sass": "^1.25.0", "sass": "^1.25.0",
"sass-loader": "^8.0.2", "sass-loader": "^8.0.2",
"style-loader": "^1.1.2", "style-loader": "^1.1.2",
"stylus": "^0.54.7", "stylus": "^0.54.7",
"stylus-loader": "^3.0.2", "stylus-loader": "^3.0.2",
"ts-jest": "^25.2.1", "ts-jest": "^25.2.1",
"ts-loader": "^6.2.1", "ts-loader": "^6.2.1",
"typescript": "^3.8.3", "typescript": "^3.8.3",
"url-loader": "^3.0.0", "url-loader": "^3.0.0",
"vue-jest": "^4.0.0-beta.2", "vue-jest": "^4.0.0-beta.2",
"vue-loader": "^15.8.3", "vue-loader": "^15.8.3",
"vue-template-compiler": "^2.6.11", "vue-template-compiler": "^2.6.11",
"webpack": "^4.41.2", "webpack": "^4.41.2",
"webpack-cli": "^3.3.10", "webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.10.1", "webpack-dev-server": "^3.10.1",
"webpack-manifest-plugin": "^2.2.0" "webpack-manifest-plugin": "^2.2.0"
}, },
"resolutions": { "resolutions": {
"caniuse-lite": "*", "caniuse-lite": "*",
"@types/testing-library__dom": "^7.0.0" "@types/testing-library__dom": "^7.0.0"
}, },
"browserslist": [ "browserslist": [
"> 1%", "> 1%",
"not dead", "not dead",
"not ie 11", "not ie 11",
"Chrome > 52" "Chrome > 52"
], ],
"prettier": { "prettier": {
"printWidth": 80, "printWidth": 80,
"semi": false, "semi": false,
"singleQuote": true, "singleQuote": true,
"trailingComma": "all", "trailingComma": "all",
"tabWidth": 2 "tabWidth": 2
}, },
"eslintConfig": { "eslintConfig": {
"root": true, "root": true,
"extends": [ "extends": [
"gplane", "gplane",
"gplane/vue" "gplane/vue"
], ],
"parser": "vue-eslint-parser", "parser": "vue-eslint-parser",
"env": { "env": {
"node": true, "node": true,
"es6": true, "es6": true,
"jquery": true "jquery": true
}, },
"globals": { "globals": {
"blessing": "readonly" "blessing": "readonly"
}, },
"rules": { "rules": {
"camelcase": [ "camelcase": [
2, 2,
{ {
"properties": "never", "properties": "never",
"ignoreDestructuring": true "ignoreDestructuring": true
} }
], ],
"max-len": [ "max-len": [
2, 2,
120 120
], ],
"prefer-destructuring": 0 "prefer-destructuring": 0
}, },
"overrides": [ "overrides": [
{ {
"files": [ "files": [
"*.ts" "*.ts"
], ],
"extends": [ "extends": [
"gplane", "gplane",
"gplane/typescript", "gplane/typescript",
"gplane/vue" "gplane/vue"
], ],
"parserOptions": { "parserOptions": {
"parser": "@typescript-eslint/parser" "parser": "@typescript-eslint/parser"
}, },
"plugins": [ "plugins": [
"@typescript-eslint" "@typescript-eslint"
], ],
"rules": { "rules": {
"@typescript-eslint/camelcase": [ "@typescript-eslint/camelcase": [
2, 2,
{ {
"properties": "never", "properties": "never",
"ignoreDestructuring": true "ignoreDestructuring": true
} }
], ],
"@typescript-eslint/no-invalid-this": 0, "@typescript-eslint/no-invalid-this": 0,
"@typescript-eslint/no-unnecessary-condition": 0, "@typescript-eslint/no-unnecessary-condition": 0,
"no-invalid-this": 0 "no-invalid-this": 0
} }
}, },
{ {
"files": [ "files": [
"resources/assets/tests/**/*.ts", "resources/assets/tests/**/*.ts",
"*.d.ts" "*.d.ts"
], ],
"rules": { "rules": {
"@typescript-eslint/no-empty-function": 0, "@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/unbound-method": 0, "@typescript-eslint/unbound-method": 0,
"@typescript-eslint/no-extra-parens": 0, "@typescript-eslint/no-extra-parens": 0,
"max-len": [ "max-len": [
2, 2,
120 120
] ]
} }
}, },
{ {
"files": [ "files": [
"resources/assets/src/components/mixins/*.ts" "resources/assets/src/components/mixins/*.ts"
], ],
"rules": { "rules": {
"@typescript-eslint/no-extra-parens": 0 "@typescript-eslint/no-extra-parens": 0
} }
} }
] ]
}, },
"jest": { "jest": {
"preset": "ts-jest", "preset": "ts-jest",
"resetMocks": true, "resetMocks": true,
"timers": "fake", "timers": "fake",
"transform": { "transform": {
".*\\.js$": "babel-jest", ".*\\.js$": "babel-jest",
".*\\.tsx?$": "ts-jest", ".*\\.tsx?$": "ts-jest",
".*\\.vue$": "vue-jest" ".*\\.vue$": "vue-jest"
}, },
"moduleFileExtensions": [ "moduleFileExtensions": [
"js", "js",
"ts", "ts",
"tsx", "tsx",
"vue", "vue",
"json", "json",
"node" "node"
], ],
"moduleNameMapper": { "moduleNameMapper": {
"^@/(.*)$": "<rootDir>/resources/assets/src/$1", "^@/(.*)$": "<rootDir>/resources/assets/src/$1",
"\\.(s?css|styl)$": "<rootDir>/resources/assets/tests/__mocks__/style.ts", "\\.(s?css|styl)$": "<rootDir>/resources/assets/tests/__mocks__/style.ts",
"\\.(png|jpg)$": "<rootDir>/resources/assets/tests/__mocks__/file.ts" "\\.(png|jpg)$": "<rootDir>/resources/assets/tests/__mocks__/file.ts"
}, },
"setupFilesAfterEnv": [ "setupFilesAfterEnv": [
"<rootDir>/resources/assets/tests/setup.ts" "<rootDir>/resources/assets/tests/setup.ts"
], ],
"coveragePathIgnorePatterns": [ "coveragePathIgnorePatterns": [
"/node_modules/", "/node_modules/",
"<rootDir>/resources/assets/tests/setup", "<rootDir>/resources/assets/tests/setup",
"<rootDir>/resources/assets/tests/utils", "<rootDir>/resources/assets/tests/utils",
"<rootDir>/resources/assets/tests/scripts/cli/stdio" "<rootDir>/resources/assets/tests/scripts/cli/stdio"
], ],
"testMatch": [ "testMatch": [
"<rootDir>/resources/assets/tests/**/*.test.ts", "<rootDir>/resources/assets/tests/**/*.test.ts",
"<rootDir>/resources/assets/tests/**/*.test.tsx" "<rootDir>/resources/assets/tests/**/*.test.tsx"
], ],
"testPathIgnorePatterns": [ "testPathIgnorePatterns": [
"/node_modules/", "/node_modules/",
"<rootDir>/resources/assets/tests/(views|components)/.*\\.ts$" "<rootDir>/resources/assets/tests/(views|components)/.*\\.ts$"
], ],
"globals": { "globals": {
"ts-jest": { "ts-jest": {
"tsConfig": "<rootDir>/resources/assets/tests/tsconfig.json", "tsConfig": "<rootDir>/resources/assets/tests/tsconfig.json",
"isolatedModules": true "isolatedModules": true
} }
} }
} }
} }