Skip to content

Commit

Permalink
chore: improved the ESLint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kurone-kito committed Apr 24, 2024
1 parent 4ee15d8 commit 24813cd
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 36 deletions.
120 changes: 85 additions & 35 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -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 ###
*~
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -318,3 +365,6 @@ yarn.lock

### Text ###
LICENSE

### Others ###
Website
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 24813cd

Please sign in to comment.