Skip to content

Commit

Permalink
feat: remove beemo (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Apr 20, 2023
1 parent aae91c4 commit 732aa95
Show file tree
Hide file tree
Showing 10 changed files with 395 additions and 2,480 deletions.
8 changes: 0 additions & 8 deletions .config/beemo.ts

This file was deleted.

9 changes: 9 additions & 0 deletions .eslintignore
@@ -0,0 +1,9 @@
.eslintrc.js
babel.config.js
prettier.config.js
jest.config.js
rollup.config.js
build
build-es5
dist
coverage
72 changes: 72 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,72 @@
module.exports = {
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"overrides": [
{
"files": [
"*.ts"
]
}
],
"env": {
"browser": true,
"node": false
},
"parserOptions": {
"project": "tsconfig.json",
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"prettier/prettier": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true
}
],
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-object-literal-type-assertion": "off",
"@typescript-eslint/no-namespace": "error",
"linebreak-style": [
"error",
"unix"
],
"no-irregular-whitespace": [
"error",
{
"skipComments": true
}
],
"no-alert": "error",
"prefer-const": "error",
"no-return-assign": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
"no-console": "off",
"no-undef": "off",
"no-unreachable": "off"
}
};
9 changes: 0 additions & 9 deletions .gitignore
@@ -1,15 +1,6 @@
.DS_Store
.eslintignore
.eslintrc.js
.prettierignore
babel.config.js
beemo-error.log
build
coverage/
jest.config.js
node_modules
npm-debug.log*
prettier.config.js
tsconfig.json
yarn-debug.log*
yarn-error.log*
5 changes: 5 additions & 0 deletions .prettierignore
@@ -0,0 +1,5 @@
.eslintrc.js
babel.config.js
jest.config.js
prettier.config.js
tsconfig.json
31 changes: 19 additions & 12 deletions package.json
Expand Up @@ -54,28 +54,35 @@
"preversion": "yarn lint",
"serve": "browser-sync start -s -f build examples --serveStatic examples",
"start": "yarn build && concurrently --kill-others -n Server,Rollup 'yarn serve' 'rollup -c -w'",
"prepare": "beemo create-config",
"eslintbase": "beemo eslint .",
"format": "yarn eslintbase --fix",
"lint": "yarn eslintbase",
"format": "eslint . --fix",
"lint": "eslint .",
"release": "release-it"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/plugin-transform-runtime": "^7.21.4",
"@babel/preset-env": "^7.21.4",
"@babel/preset-typescript": "^7.21.4",
"@release-it/conventional-changelog": "^5.1.1",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.4.0",
"@rollup/plugin-node-resolve": "^15.0.2",
"@rollup/plugin-terser": "^0.4.1",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"browser-sync": "^2.29.1",
"concurrently": "^8.0.1",
"eslint": "^8.38.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"gh-pages": "^5.0.0",
"release-it": "^15.10.0",
"prettier": "^2.8.7",
"release-it": "^15.10.1",
"rollup": "^3.20.6",
"rollup-plugin-bundle-size": "^1.0.3",
"rollup-plugin-ts": "^3.2.0",
"rollup": "^3.20.2",
"typescript": "^5.0.3",
"vega-lite-dev-config": "^0.21.0",
"vega-lite": "^5.6.1",
"vega": "^5.24.0"
"typescript": "^5.0.4",
"vega": "^5.24.0",
"vega-lite": "^5.7.1"
},
"peerDependencies": {
"vega": "*",
Expand Down
13 changes: 13 additions & 0 deletions prettier.config.js
@@ -0,0 +1,13 @@
module.exports = {
"printWidth": 120,
"proseWrap": "never",
"overrides": [
{
"files": "*.{js,jsx,ts,tsx}",
"options": {
"bracketSpacing": false,
"singleQuote": true
}
}
]
};
3 changes: 2 additions & 1 deletion rollup.config.mjs
Expand Up @@ -15,6 +15,7 @@ const plugins = (browserslist, declaration) => [
declaration,
declarationMap: declaration
}),
transpiler: "babel",
browserslist
}),
bundleSize()
Expand Down Expand Up @@ -45,7 +46,7 @@ const outputs = [
plugins: [terser()]
}
],
plugins: plugins('> 1%, not dead', false),
plugins: plugins('defaults', false),
}
];

Expand Down
17 changes: 17 additions & 0 deletions tsconfig.json
@@ -0,0 +1,17 @@
{
"compilerOptions": {
"target": "es2020",
"module": "es2020",
"moduleResolution": "node",
"noEmit": true,
"esModuleInterop": true,
"strict": true,
"allowSyntheticDefaultImports": true,
"importHelpers": true,
"resolveJsonModule": true
},
"include": [
"src/**/*.ts",
"test/**/*.ts"
]
}

0 comments on commit 732aa95

Please sign in to comment.