Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main #10

Merged
merged 12 commits into from
Jun 24, 2024
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