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

Test to get CI to run on this #43

Closed
wants to merge 21 commits into from
Closed
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
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
dist
dist
lib
vendor
19 changes: 13 additions & 6 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
module.exports = {
"env": {
env: {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
"ecmaVersion": 2020,
sourceType: "module",
},
"rules": {
plugins: [
'@typescript-eslint',
],
"rules": {
"accessor-pairs": "error",
"array-bracket-spacing": [
"error",
"never"
],
"array-callback-return": "error",
"arrow-body-style": "error",
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }],
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": "error",
"block-scoped-var": "off",
"block-spacing": "off",
Expand Down Expand Up @@ -229,5 +236,5 @@ module.exports = {
"yield-star-spacing": "error",
"yoda": "off"
},
"root": true
root: true
};
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
node_modules/
coverage
dist
lib/*.d.ts
lib/*.js
lib/*.js.map
.eslintcache
secrets
15 changes: 3 additions & 12 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
export {setWindow} from "./src/env.js"
export {List, list} from "./src/lists.js"
export {
forEachNode, toList,
boot,
beforeRemove, onRender, onReflow,

emit, emitWithNodeRange,

} from "./src/render.js"
export {S} from "./src/S.js"
export {v, V} from "./src/v.js"
import * as all from "./pieces.js"
export const {v, S} = all
Object.assign(v, all)
1 change: 1 addition & 0 deletions lib/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This folder contains `.js`, `.d.ts` and `.js.map` files that are generated at compile time, distributed in the package, but not comited to git. See `src/*.ts` for their counterparts.
Loading
Loading