generated from Autapomorph/phaser3-project-template
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dffd8c7
commit d687432
Showing
6 changed files
with
4,676 additions
and
3,453 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,5 +1,18 @@ | ||
const { CLIEngine } = require('eslint'); | ||
|
||
module.exports = { | ||
'src/**/*.js': ['prettier --write', 'eslint --max-warnings=0', 'git add'], | ||
'src/**/*.css': ['prettier --write', 'stylelint --fix', 'git add'], | ||
'*.{json,md}': ['prettier --write', 'git add'], | ||
'*.{js,jsx,ts,tsx}': filenames => { | ||
const filenamesString = filenames.join(' '); | ||
const eslintMatch = filenames.filter(file => !new CLIEngine({}).isPathIgnored(file)).join(' '); | ||
|
||
return [ | ||
`prettier --write ${filenamesString}`, | ||
`stylelint ${filenamesString}`, | ||
`eslint --max-warnings=0 ${eslintMatch}`, | ||
]; | ||
}, | ||
|
||
'*.{css,scss,sass,less}': ['prettier --write', 'stylelint --fix'], | ||
|
||
'*.{json,md}': [`prettier --write`], | ||
}; |
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
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 @@ | ||
/dist/ |
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.
d687432
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: