Skip to content

Commit

Permalink
Merge pull request #4 from HASEL-UZH/ts-conversion
Browse files Browse the repository at this point in the history
Ts conversion
  • Loading branch information
isicu authored Feb 17, 2024
2 parents de1f457 + 188d929 commit 640f6e7
Show file tree
Hide file tree
Showing 17 changed files with 31,744 additions and 30,300 deletions.
34 changes: 34 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["plugin:react/recommended"],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"ecmaFeatures": { "jsx": true },
"sourceType": "module"
},
"parser": "@babel/eslint-parser",
"plugins": ["react"],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"eqeqeq": "error",
"no-unreachable": "error",
"no-duplicate-imports": "error",
"no-multiple-empty-lines": "warn",
"indent": ["warn", 4],
"quotes": ["warn", "double"],
"newline-before-return": "warn",
"padding-line-between-statements": [
"warn",
{ "blankLine": "always", "prev": "*", "next": "export" }
]
},
"ignorePatterns": ["node_modules", "build", "dist", "public"]
}
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"singleQuote": false
}
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ["@babel/preset-typescript", "@babel/preset-env"],
};
Loading

0 comments on commit 640f6e7

Please sign in to comment.