Skip to content

Commit

Permalink
Merge pull request #219 from jonataswalker/typescript
Browse files Browse the repository at this point in the history
Typescript full rewrite
  • Loading branch information
jonataswalker authored Sep 20, 2022
2 parents bda7c18 + b5b40a8 commit 68fe99e
Show file tree
Hide file tree
Showing 52 changed files with 24,034 additions and 11,942 deletions.
11 changes: 8 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
insert_final_newline = false

[*.yml]
indent_style = space
indent_size = 2
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/dist
/node_modules
/examples
39 changes: 39 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
module.exports = {
root: true,
parserOptions: {
parser: require.resolve('@typescript-eslint/parser'),
project: ['./tsconfig.eslint.json'],
},
env: {
browser: true,
node: true,
},
extends: ['jwalker', 'jwalker/ts', 'prettier'],
rules: {
'no-shadow': 'off',
'no-magic-numbers': 'off',
'no-unused-vars': 'off',
'no-this-before-super': 'off',
'no-use-before-define': 'off',
'class-methods-use-this': 'off',
'import/no-unused-modules': 'off',
'import/no-extraneous-dependencies': 'off',
'unicorn/prevent-abbreviations': 'off',
'unicorn/prefer-dom-node-append': 'off',
'security/detect-object-injection': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-magic-numbers': 'off',
'@typescript-eslint/prefer-readonly-parameter-types': 'off',
'@typescript-eslint/no-use-before-define': [
'error',
{ typedefs: false, ignoreTypeReferences: true },
],

'import/extensions': [
'error',
{
js: 'ignorePackages',
},
],
},
};
8 changes: 0 additions & 8 deletions .eslintrc.js

This file was deleted.

10 changes: 1 addition & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
# Logs
logs
*.log
npm-debug.log*

# Dependency directories
node_modules

# dist
dist

# Optional npm cache directory
.npm

# eslint
.eslintcache
coverage
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 100,
"singleQuote": true,
"semi": true
}
19 changes: 19 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": false,
"decorators": true
},
"target": "es2021",
"keepClassNames": true,
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true
}
},
"module": {
"type": "es6",
"noInterop": false
}
}
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

26 changes: 11 additions & 15 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
{
"eslint.validate": [
{
"language": "javascript",
"autoFix": true
},
],
"eslint.autoFixOnSave": true,
"editor.formatOnSave": false,
"[javascript]": {
"editor.formatOnPaste": true,
},
"search.showLineNumbers": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": ["source.fixAll.eslint"],
"eslint.validate": ["javascript", "javascriptreact", "typescript"],
"typescript.tsdk": "./node_modules/typescript/lib",
"svg.preview.background": "editor",
"[ignore]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
}
}
1 change: 0 additions & 1 deletion .vscode/snipsnap.code-snippets

This file was deleted.

Loading

0 comments on commit 68fe99e

Please sign in to comment.