Skip to content

Commit

Permalink
Convert ts and vue files to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Jan 6, 2023
1 parent d0a1215 commit 6faee42
Show file tree
Hide file tree
Showing 120 changed files with 20,190 additions and 23,477 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ indent_size=4
indent_style=space
indent_size=2

[*.js]
[*.{js, ts}]
indent_style=space
indent_size=4

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/jslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ jobs:
working-directory: app/bibleview-js
run: npm run lint:ci

- name: Run type-check
working-directory: app/bibleview-js
run: npm run type-check

- name: Run js unit tests
working-directory: app/bibleview-js
run: npm run test:ci
Expand Down
26 changes: 26 additions & 0 deletions app/bibleview-js/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript'
],
parserOptions: {
ecmaVersion: 'latest'
},
env: {
node: true
},
overrides: [
{
files: ["src/components/OSIS/*.vue", "src/components/MyBible/*.vue"],
rules: {
"vue/multi-word-component-names": "off"
}
}

]
}
2 changes: 1 addition & 1 deletion app/bibleview-js/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.DS_Store
node_modules
dist

build

# local env files
.env.local
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title><%= htmlWebpackPlugin.options.title %></title>
<title>BibleView</title>
</head>
<body>
<script>
console.log("index.html loaded");
</script>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
<strong>We're sorry but BibleView doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<script type="module" src="src/main.ts"></script>
</body>
</html>
26 changes: 0 additions & 26 deletions app/bibleview-js/jest.config.js

This file was deleted.

Loading

0 comments on commit 6faee42

Please sign in to comment.