Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .editorconfig

This file was deleted.

5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

26 changes: 0 additions & 26 deletions .eslintrc

This file was deleted.

11 changes: 7 additions & 4 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@ jobs:
uses: actions/checkout@v2

- name: Install
run: yarn install
run: npm install

- name: Lint
run: yarn run lint
run: npm run lint

- name: Test
run: yarn run test
run: npm run test --verbose

- name: Build
run: yarn run build
run: npm run build

- name: Predeploy
run: npm pack
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Pontus Persson
Copyright (c) 2025 Pontus Persson

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ This lib is not recommended for user input validation where the user may need fe

## Usage

A basic example of a shape setup. Types will be inferred if unspecifed.
A basic example of a shape setup. Types will be inferred if unspecifed.

```ts
import { record, number, string, either } from "@pomle/shapes";
Expand Down
34 changes: 34 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { defineConfig } from "eslint/config";
import tseslint from "@typescript-eslint/eslint-plugin";
import tsparser from "@typescript-eslint/parser";
import prettier from "eslint-plugin-prettier";
import react from "eslint-plugin-react";

export default defineConfig([
{
files: ["**/*.{js,jsx,ts,tsx}"],
languageOptions: {
parser: tsparser,
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
ecmaFeatures: {
jsx: true,
legacyDecorators: true,
},
},
},
plugins: {
"@typescript-eslint": tseslint,
react,
prettier,
},
settings: {
react: { version: "detect" },
},
rules: {
"prettier/prettier": "error",
},
ignores: ["build/", "dist/", "node_modules/", ".snapshots/", "*.min.js"],
},
]);
6 changes: 0 additions & 6 deletions jest.config.js

This file was deleted.

Loading