Skip to content

Commit

Permalink
Merge pull request #10 from ZeroGachis/main
Browse files Browse the repository at this point in the history
Main
  • Loading branch information
ulricden authored Jun 24, 2024
2 parents f1bc455 + 78cda04 commit a34bf48
Show file tree
Hide file tree
Showing 15 changed files with 5,857 additions and 76 deletions.
31 changes: 9 additions & 22 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,26 @@
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"settings": {
"react": {
"version": "detect"
}
},
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "react-hooks", "prettier"],
"plugins": [
"@typescript-eslint",
"prettier"
],
"rules": {
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/space-before-function-paren": 0,
"prefer-arrow-callback": "error",
"react/function-component-definition": [
"@typescript-eslint/semi": [
"error",
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
"always"
],
"react/prop-types": "off"
"@typescript-eslint/space-before-function-paren": 0,
"prefer-arrow-callback": "error"
},
"ignorePatterns": ["*/*.config.js", "*.config.js"],
"root": true
}
3 changes: 3 additions & 0 deletions .github/workflows/publish-npm-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- name: Update package version
run: npm version --no-git-tag-version ${{ github.ref_name }}

- name: Compile
run: npm run tsc

- name: Publish to npm
if: startsWith(github.ref, 'refs/tags/')
run: npm publish --access public
Expand Down
6 changes: 6 additions & 0 deletions babel.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
presets: [
["@babel/preset-env", { targets: { node: "current" } }],
"@babel/preset-typescript",
],
};
3 changes: 0 additions & 3 deletions index.ts

This file was deleted.

7 changes: 7 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { Config } from "jest";

const config: Config = {
verbose: true,
};

export default config;
Loading

0 comments on commit a34bf48

Please sign in to comment.