1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Tools: Build TypeScript in pre-commit to check for any error

This commit is contained in:
Laurent Cozic 2020-06-04 18:22:21 +01:00
parent 386d11f51a
commit 4113252f18
4 changed files with 7 additions and 8 deletions

View File

@ -68,7 +68,6 @@ ElectronClient/gui/NoteEditor/NoteBody/AceEditor/styles/index.js
ElectronClient/gui/NoteEditor/NoteBody/AceEditor/Toolbar.js
ElectronClient/gui/NoteEditor/NoteBody/AceEditor/utils/index.js
ElectronClient/gui/NoteEditor/NoteBody/AceEditor/utils/types.js
ElectronClient/gui/NoteEditor/NoteBody/AceEditor/utils/useFocus.js
ElectronClient/gui/NoteEditor/NoteBody/AceEditor/utils/useListIdent.js
ElectronClient/gui/NoteEditor/NoteBody/TinyMCE/TinyMCE.js
ElectronClient/gui/NoteEditor/NoteBody/TinyMCE/utils/useScroll.js

1
.gitignore vendored
View File

@ -58,7 +58,6 @@ ElectronClient/gui/NoteEditor/NoteBody/AceEditor/styles/index.js
ElectronClient/gui/NoteEditor/NoteBody/AceEditor/Toolbar.js
ElectronClient/gui/NoteEditor/NoteBody/AceEditor/utils/index.js
ElectronClient/gui/NoteEditor/NoteBody/AceEditor/utils/types.js
ElectronClient/gui/NoteEditor/NoteBody/AceEditor/utils/useFocus.js
ElectronClient/gui/NoteEditor/NoteBody/AceEditor/utils/useListIdent.js
ElectronClient/gui/NoteEditor/NoteBody/TinyMCE/TinyMCE.js
ElectronClient/gui/NoteEditor/NoteBody/TinyMCE/utils/useScroll.js

7
lint-staged.config.js Normal file
View File

@ -0,0 +1,7 @@
module.exports = {
'**/*.ts?(x)': () => 'npm run build',
'*.{js,jsx,ts,tsx}': [
'npm run linter',
'git add',
],
};

View File

@ -14,12 +14,6 @@
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"npm run linter",
"git add"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/laurent22/joplin.git"