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 20, 2024
1 parent cc3bbb2 commit eb87ecd
Show file tree
Hide file tree
Showing 105 changed files with 19,670 additions and 10,502 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.
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>
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 eb87ecd

Please sign in to comment.