From 24813cd24033fe5c98cccf28467f0dedc6b9c906 Mon Sep 17 00:00:00 2001 From: kurone-kito Date: Wed, 27 Mar 2024 00:21:44 +0900 Subject: [PATCH] chore: improved the ESLint configuration --- .eslintignore | 120 +++++++++++++++++++++++++++++++++++--------------- package.json | 2 +- 2 files changed, 86 insertions(+), 36 deletions(-) diff --git a/.eslintignore b/.eslintignore index 5981215b..58c5d2e0 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,5 +1,5 @@ -# Created by https://www.toptal.com/developers/gitignore/api/linux,macos,node,sublimetext,vim,visualstudiocode,windows,yarn -# Edit at https://www.toptal.com/developers/gitignore?templates=linux,macos,node,sublimetext,vim,visualstudiocode,windows,yarn +# Created by https://www.toptal.com/developers/gitignore/api/linux,macos,node,unity,vim,visualstudiocode,windows,yarn +# Edit at https://www.toptal.com/developers/gitignore?templates=linux,macos,node,unity,vim,visualstudiocode,windows,yarn ### Linux ### *~ @@ -189,38 +189,78 @@ public # SvelteKit build / generate output .svelte-kit -### SublimeText ### -# Cache files for Sublime Text -*.tmlanguage.cache -*.tmPreferences.cache -*.stTheme.cache - -# Workspace files are user-specific -*.sublime-workspace - -# Project files should be checked into the repository, unless a significant -# proportion of contributors will probably not be using Sublime Text -*.sublime-project - -# SFTP configuration file -sftp-config.json -sftp-config-alt*.json - -# Package control specific files -Package Control.last-run -Package Control.ca-list -Package Control.ca-bundle -Package Control.system-ca-bundle -Package Control.cache/ -Package Control.ca-certs/ -Package Control.merged-ca-bundle -Package Control.user-ca-bundle -oscrypto-ca-bundle.crt -bh_unicode_properties.cache - -# Sublime-github package stores a github token in this file -# https://packagecontrol.io/packages/sublime-github -GitHub.sublime-settings +### Unity ### +# This .gitignore file should be placed at the root of your Unity project directory +# +# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore +/[Ll]ibrary/ +/[Tt]emp/ +/[Oo]bj/ +/[Bb]uild/ +/[Bb]uilds/ +/[Ll]ogs/ +/[Uu]ser[Ss]ettings/ + +# MemoryCaptures can get excessive in size. +# They also could contain extremely sensitive data +/[Mm]emoryCaptures/ + +# Recordings can get excessive in size +/[Rr]ecordings/ + +# Uncomment this line if you wish to ignore the asset store tools plugin +/[Aa]ssets/AssetStoreTools* + +# Autogenerated Jetbrains Rider plugin +/[Aa]ssets/Plugins/Editor/JetBrains* + +# Visual Studio cache directory +.vs/ + +# Gradle cache directory +.gradle/ + +# Autogenerated VS/MD/Consulo solution and project files +ExportedObj/ +.consulo/ +*.csproj +*.unityproj +*.sln +*.suo +*.tmp +*.user +*.userprefs +*.pidb +*.booproj +*.svd +*.pdb +*.mdb +*.opendb +*.VC.db + +# Unity3D generated meta files +*.pidb.meta +*.pdb.meta +*.mdb.meta + +# Unity3D generated file on crash reports +sysinfo.txt + +# Builds +*.apk +*.aab +*.unitypackage +*.app + +# Crashlytics generated file +crashlytics-build.properties + +# Packed Addressables +/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin* + +# Temporary auto-generated Android Assets +/[Aa]ssets/[Ss]treamingAssets/aa.meta +/[Aa]ssets/[Ss]treamingAssets/aa/* ### Vim ### # Swap @@ -304,10 +344,17 @@ $RECYCLE.BIN/ # and uncomment the following lines .pnp.* -# End of https://www.toptal.com/developers/gitignore/api/linux,macos,node,sublimetext,vim,visualstudiocode,windows,yarn +# End of https://www.toptal.com/developers/gitignore/api/linux,macos,node,unity,vim,visualstudiocode,windows,yarn ### THE PROJECT SPECIFIES ################################################# +### Unity ### +# Ignore all files +[Aa]ssets +[Pp]ackages +[Pp]roject[Ss]ettings +debug.log* + ### Node ### # JSON *.json @@ -318,3 +365,6 @@ yarn.lock ### Text ### LICENSE + +### Others ### +Website diff --git a/package.json b/package.json index 50107446..70804027 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "postinstall": "husky", "lint": "conc -m 1 \"yarn:lint:*:check\"", "lint:cspell:check": "cspell lint --no-progress --show-suggestions -u \"./**/*\"", - "lint:eslint:check": "eslint --cache --cache-strategy=content -f codeframe \"./**/*\"", + "lint:eslint:check": "eslint --cache --cache-location node_modules/.cache/eslint/ --cache-strategy=content -f codeframe \"./**/*\"", "lint:eslint:fix": "yarn run lint:eslint:check --fix", "lint:fix": "conc -m 1 \"yarn:lint:*:fix\"", "lint:prettier:check": "yarn run prettier -cu",