Skip to content

Commit 9728768

Browse files
committed
chore: remove beemo and add individual configs
1 parent 824294a commit 9728768

15 files changed

+2389
-6900
lines changed

.config/beemo.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

.config/beemo/eslint.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

.config/beemo/jest.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

.config/beemo/typescript.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
extends: ["niieani"],
3+
rules: {
4+
"@typescript-eslint/member-ordering": "off",
5+
"@typescript-eslint/lines-between-class-members": "off",
6+
"import/export": "off",
7+
// just in case we want to support older browsers
8+
"unicorn/prefer-at": "off",
9+
"import/no-deprecated": "off",
10+
"compat/compat": "off",
11+
"import/no-extraneous-dependencies": "off",
12+
"no-magic-numbers": "off",
13+
"eslint-comments/no-unused-disable": "off",
14+
"arrow-body-style": "off",
15+
},
16+
};

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
.vscode
22
.eslintignore
3-
.eslintrc.js
4-
.prettierignore
53
.editorconfig
6-
tsconfig.json
7-
tsconfig.*.json
84
babel.config.js
95
jest.config.js
10-
prettier.config.js
116
vite.config.ts
127
webpack.config.js
138
*.tsbuildinfo

.prettierignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules/
2+
build/
3+
cjs/
4+
coverage/
5+
dist/
6+
dts/
7+
esm/
8+
lib/
9+
mjs/
10+
umd/

jest.config.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import type { Config } from 'jest'
2+
3+
const config: Config = {
4+
verbose: true,
5+
testEnvironment: 'jsdom',
6+
testMatch: [
7+
'<rootDir>/packages/*/src/**/*.test.{ts,tsx,mts,cts,js,jsx,mjs,cjs}',
8+
'<rootDir>/src/**/*.test.{ts,tsx,mts,cts}',
9+
],
10+
snapshotFormat: {
11+
escapeString: false,
12+
printBasicPrototype: false,
13+
},
14+
clearMocks: true,
15+
transform: {
16+
'^.+\\.(c|m)?(t|j)sx?$': '@swc/jest',
17+
},
18+
}
19+
20+
export default config

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@
6666
"build:esm": "rm -rf esm && yarn build:esm:ts && yarn build:esm:webpack && cp package.esm.json esm/package.json",
6767
"build:esm:webpack": "yarn webpack build --entry ./src/main --mode development",
6868
"build:esm:ts": "tsc --outDir esm --module esnext --target es2023 --emitDeclarationOnly",
69-
"clean": "git clean -dfX --exclude=node_modules src && beemo typescript:sync-project-refs",
69+
"clean": "git clean -dfX --exclude=node_modules src",
7070
"format": "prettier --write \"./{src,tests,.config}/**/!(*.d).{.js,jsx,ts,tsx,json,md}\"",
7171
"postinstallDev": "yarn prepare",
72-
"prepare": "husky install .config/husky && beemo create-config",
73-
"release": "beemo run-script release",
72+
"prepare": "husky install .config/husky",
73+
"release": "semantic-release",
74+
"release:dry-run": "semantic-release --dry-run",
7475
"test": "yarn test:format && yarn test:types && yarn test:lint && yarn test:code",
7576
"test:code": "vitest",
7677
"test:format": "yarn prettier --check \"./{src,tests,.config}/**/!(*.d).{.js,jsx,ts,tsx,json,md}\"",
@@ -109,7 +110,6 @@
109110
"@dnd-kit/core": "^6.3.1",
110111
"@dnd-kit/modifiers": "^9.0.0",
111112
"@mdx-js/react": "^3.1.0",
112-
"@niieani/scaffold": "^1.7.49",
113113
"@storybook/addon-docs": "^9.0.10",
114114
"@storybook/addon-links": "^9.0.10",
115115
"@storybook/addon-webpack5-compiler-swc": "^3.0.0",
@@ -118,6 +118,7 @@
118118
"@svgr/webpack": "^8.1.0",
119119
"@swc/core": "1.12.1",
120120
"@swc/types": "0.1.23",
121+
"@types/jest": "^29.5.14",
121122
"@types/lodash.debounce": "^4.0.9",
122123
"@types/react": "^18.0.0",
123124
"@types/react-dom": "^18.0.0",
@@ -158,11 +159,13 @@
158159
"eslint-config-niieani": "^1.2.9",
159160
"eslint-plugin-eslint-comments": "^3.2.0",
160161
"husky": "^9.1.7",
162+
"jest": "29.7",
161163
"lodash.debounce": "^4.0.8",
162164
"prettier-2": "npm:prettier@^2",
163165
"react": "^18.0.0",
164166
"react-dom": "^18.0.0",
165167
"react-test-renderer": "^18.0.0",
168+
"semantic-release": "^24.2.7",
166169
"storybook": "^9.0.10",
167170
"style-loader": "^4.0.0",
168171
"styled-components": "^6.1.19",

prettier.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
"semi": false,
3+
"tabWidth": 2,
4+
"singleQuote": true,
5+
"trailingComma": "all",
6+
"arrowParens": "always",
7+
"bracketSpacing": true
8+
};

0 commit comments

Comments
 (0)