Skip to content
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
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// TypeScript Version: 2.2
// T - Wrapped component props
// S - Wrapped component state
// K - Store state
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"size": "strip-json-comments --no-whitespace dist/unistore.js | gzip-size && bundlesize",
"docs": "documentation readme src/index.js src/integrations/preact.js -q --section API && npm run -s fixreadme",
"fixreadme": "node -e 'var fs=require(\"fs\");fs.writeFileSync(\"README.md\", fs.readFileSync(\"README.md\", \"utf8\").replace(/^- /gm, \"- \"))'",
"test": "eslint src && npm run build && jest",
"test": "eslint src && npm run build && jest && dtslint",
"prepare": "npm t",
"release": "npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
},
Expand Down Expand Up @@ -86,11 +86,13 @@
"author": "Jason Miller <jason@developit.ca>",
"license": "MIT",
"devDependencies": {
"@types/react": "^16.4.6",
"babel-jest": "^24.3.1",
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-preset-env": "^1.6.1",
"bundlesize": "^0.17.1",
"documentation": "^4.0.0",
"dtslint": "^0.3.0",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.10.0",
"eslint": "^4.16.0",
Expand Down
1 change: 1 addition & 0 deletions preact.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// TypeScript Version: 2.2
// T - Wrapped component props
// S - Wrapped component state
// K - Store state
Expand Down
1 change: 1 addition & 0 deletions react.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// TypeScript Version: 2.2
// T - Wrapped component props
// S - Wrapped component state
// K - Store state
Expand Down
18 changes: 18 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"noEmit": true,

"baseUrl": ".",
"paths": {
"preact": ["node_modules/@types/preact"],
"react": ["node_modules/@types/react"],
"unistore": ["."]
}
}
}
10 changes: 10 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "dtslint/dtslint.json",
"rules": {
"array-type": false,
"no-single-declare-module": false,
"no-unnecessary-generics": false,
"strict-export-declare-modifiers": false,
"use-default-type-parameter": false
}
}