forked from juliencrn/usehooks-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: fix eslint by creating a package
- create eslint-config-custom package - enable npm workspace feature - use eslint config in website and root - duplicate prettier config as well in website - update npm scripts to match - remove unused packages
- Loading branch information
Showing
19 changed files
with
72,329 additions
and
75,128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,6 @@ | ||
node_modules | ||
package-lock.json | ||
|
||
# Cache | ||
.npm | ||
.cache | ||
.eslintcache | ||
|
||
# ignore built packages | ||
node_modules | ||
templates | ||
website | ||
dist | ||
esm | ||
public | ||
generated | ||
*.min.js | ||
|
||
# Coverage | ||
coverage | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Mac files | ||
.DS_Store | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
||
*.hbs | ||
packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"extends": ["custom"], | ||
"overrides": [ | ||
// Track tree-shaking potential error in the lib | ||
{ | ||
"files": ["./src/**/!(*.test|*.spec).ts"], | ||
"plugins": ["tree-shaking"], | ||
"rules": { | ||
"tree-shaking/no-side-effects-in-initialization": 2 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,6 @@ | ||
node_modules | ||
package-lock.json | ||
|
||
# Cache | ||
.npm | ||
.cache | ||
.eslintcache | ||
|
||
# ignore built packages | ||
node_modules | ||
templates | ||
website | ||
dist | ||
esm | ||
public | ||
generated | ||
*.min.js | ||
|
||
# Coverage | ||
coverage | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Mac files | ||
.DS_Store | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
||
*.hbs | ||
packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.