Skip to content

Commit

Permalink
refactor: use TypeScript + Node 20 + vite
Browse files Browse the repository at this point in the history
  • Loading branch information
timkurvers committed Jan 21, 2024
1 parent cc3bbb2 commit 84cd8a5
Show file tree
Hide file tree
Showing 109 changed files with 19,682 additions and 10,556 deletions.
20 changes: 0 additions & 20 deletions .eslintrc

This file was deleted.

25 changes: 25 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// TODO: Expand @wowserhq/eslint-config with TypeScript variant
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
root: true,
env: { browser: true, node: true },
rules: {
'camelcase': 'off',
'no-console': 'off',
'no-unused-vars': ['error', {
'argsIgnorePattern': '^_',
'varsIgnorePattern': '^_'
}],
'quotes': ['error', 'single', {
'avoidEscape': true
}],
'semi': ['warn'],
},
};
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions src/index.html → index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Wowser</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
html, body {
margin: 0;
Expand Down Expand Up @@ -41,5 +43,6 @@
<div class="container">
<canvas></canvas>
</div>
<script type="module" src="/src/index.ts"></script>
</body>
</html>
12 changes: 12 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
collectCoverageFrom: [
'src/**/*.js',
'src/**/*.ts',
],
coverageDirectory: './coverage/',
moduleFileExtensions: ['js', 'ts'],
testMatch: [
'**/spec/**/*.spec.js',
],
verbose: true,
};
14 changes: 0 additions & 14 deletions jest.config.js

This file was deleted.

3 changes: 3 additions & 0 deletions lint-staged.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
'*.{js,ts}': ['eslint'],
};
3 changes: 0 additions & 3 deletions lint-staged.config.js

This file was deleted.

Loading

0 comments on commit 84cd8a5

Please sign in to comment.