Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
nichoth committed Nov 3, 2023
1 parent f4a8bab commit 95cefa3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
},
"rules": {
"operator-linebreak": ["off"],
"react/jsx-wrap-multilines": ["error", { "declaration": "parens" }],
"react/jsx-first-prop-new-line": ["off"],
"react/jsx-indent-props": "off",
"react/jsx-closing-tag-location": ["off"],
"react/jsx-indent": ["error", 4],
"react/jsx-closing-bracket-location": ["off"],
"react/jsx-curly-newline": ["off"],
"react/jsx-boolean-value": ["off"],
Expand Down
3 changes: 3 additions & 0 deletions example/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { render } from 'preact'
import { example } from '../src/index.js'

example()

function Example () {
return (<div>hello</div>)
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
"postversion": "git push && git push --tags && npm publish",
"prepublishOnly": "npm run build"
},
"dependencies": {
},
"devDependencies": {
"@preact/preset-vite": "^2.5.0",
"@nichoth/debug": "^0.2.2",
"@nichoth/tapzero": "^0.8.0",
"@preact/preset-vite": "^2.5.0",
"@typescript-eslint/parser": "^5.55.0",
"esbuild": "^0.15.18",
"postcss-nesting": "^12.0.1",
Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { createDebug } from '@nichoth/debug'
const debug = createDebug()

export function example ():void {
console.log('hello')
debug('hello')
}

0 comments on commit 95cefa3

Please sign in to comment.