Skip to content

Commit

Permalink
feat(all): adds editor config, husky, eslint, .md
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-sokolowski committed Mar 31, 2020
1 parent b804e49 commit 3575bb5
Show file tree
Hide file tree
Showing 8 changed files with 637 additions and 43 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"plugin:@typescript-eslint/recommended"
],
rules: {

}
};
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
semi: true,
trailingComma: "all",
singleQuote: true,
printWidth: 120,
tabWidth: 4
};
10 changes: 10 additions & 0 deletions .versionrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"types": [
{"type": "feat", "section": "New features"},
{"type": "fix", "section": "Bug fixes"},
{"type": "docs", "section": "Documentation"},
{"type": "refactor", "section": "Code refactor"},
{"type": "perf", "section": "Performance improvements"},
{"type": "test", "section": "Unit tests"}
]
}
Empty file added CONTRIBUTING.md
Empty file.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Typescript skeleton library
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
transform: { '^.+\\.tsx?$': 'ts-jest' },
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
testPathIgnorePatterns: ['/coverage/', '/dist/', '/node_modules/'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
moduleFileExtensions: 'ts',
collectCoverage: true,
coveragePathIgnorePatterns: ['/node_modules/'],
coverageThreshold: {
Expand Down
57 changes: 36 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,6 @@
"name": "@adso/ts-skeleton",
"version": "1.0.0",
"description": "Skeleton for typescript util libraries",
"main": "./dist/index.js",
"module": "./dist/index.js",
"typings": "./dist/types/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "yarn tsc",
"build:watch": "yarn tsc -w",
"test": "jest",
"tdd": "jest --watchAll",
"tslint": "tslint 'src/**/*.ts'",
"tsc": "tsc --module commonjs",
"release": "standard-version --release-as patch"
},
"repository": {
"type": "git",
"url": "[email protected]:adam-sokolowski/ts-skeleton.git"
Expand All @@ -29,14 +14,44 @@
"utils",
"skeleton"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
"typings": "./dist/types/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsc --module commonjs",
"build:watch": "yarn build -w",
"test": "jest",
"test:watch": "jest --watchAll",
"lint": "tsc --noEmit && eslint '*/**/*.ts' --quiet --fix",
"release:patch": "standard-version --release-as patch",
"release:minor": "standard-version --release-as minor",
"reset:githooks": "rm -rf ./.git/hooks/* && rm -rf node_modules/husky && yarn install --check-files"
},
"husky": {
"hooks": {
"pre-commit": [
"yarn lint"
],
"pre-push": [
"yarn test"
]
}
},
"author": "Adam Sokołowski <[email protected]>",
"license": "MIT",
"devDependencies": {
"@types/jest": "^25.1.4",
"jest": "^25.2.4",
"standard-version": "^7.1.0",
"ts-jest": "^25.3.0",
"tslib": "^1.11.1",
"typescript": "^3.8.3"
"@types/jest": "~25.1.0",
"@typescript-eslint/eslint-plugin": "~2.26.0",
"@typescript-eslint/parser": "~2.26.0",
"eslint": "~6.8.0",
"husky": "^4.2.3",
"jest": "~25.2.0",
"standard-version": "~7.1.0",
"ts-jest": "~25.3.0",
"tslib": "~1.11.0",
"typescript": "~3.8.0"
}
}
Loading

0 comments on commit 3575bb5

Please sign in to comment.