-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add initial config for typescript and linters
Add TypeScript 4.6.7 Add linters: ESLint and prettier (include plugins)\Add scripts to package.json
- Loading branch information
1 parent
efea283
commit 8c267ca
Showing
12 changed files
with
1,248 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": ["./tsconfig.json"] | ||
}, | ||
"plugins": ["@typescript-eslint", "import"], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking", | ||
"plugin:import/recommended", | ||
"plugin:import/typescript", | ||
"prettier" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,5 +108,4 @@ package-lock.json | |
yarn.lock | ||
|
||
# Distribution | ||
|
||
/dist | ||
/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
pnpm lint-staged | ||
|
||
|
||
pnpm pretty-quick --staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"**/*.+(ts|tsx)": ["eslint --fix"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
# public-hoist-pattern[]=* | ||
engine-strict=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
/dist | ||
/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,15 +3,24 @@ | |
"version": "0.0.0-development", | ||
"description": "", | ||
"keywords": [], | ||
"bugs": { | ||
"url": "https://github.com/elegantech/firebase-odm/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/elegantech/firebase-odm.git" | ||
}, | ||
"license": "MIT", | ||
"author": "Nelson Martell <[email protected]>", | ||
"main": "lib/index.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"scripts": { | ||
"build": "tsc", | ||
"commit": "git-cz", | ||
"preinstall": "npx -y only-allow pnpm", | ||
"lint": "tsc --noEmit -p . && eslint . && prettier --check .", | ||
"prepare": "husky install", | ||
"semantic-release": "semantic-release" | ||
}, | ||
|
@@ -25,12 +34,29 @@ | |
"@commitlint/config-conventional": "^16.2.4", | ||
"@commitlint/cz-commitlint": "^16.2.4", | ||
"@prettier/plugin-xml": "^2.1.0", | ||
"@typescript-eslint/eslint-plugin": "^5.22.0", | ||
"@typescript-eslint/parser": "^5.22.0", | ||
"commitizen": "^4.2.4", | ||
"eslint": "^8.15.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-import-resolver-typescript": "^2.7.1", | ||
"eslint-plugin-import": "^2.26.0", | ||
"husky": "^7.0.0", | ||
"inquirer": "^8.2.4", | ||
"lint-staged": "^12.4.1", | ||
"prettier": "^2.6.2", | ||
"prettier-plugin-packagejson": "^2.2.17", | ||
"pretty-quick": "^3.1.3", | ||
"semantic-release": "^19.0.2" | ||
"semantic-release": "^19.0.2", | ||
"typescript": "^4.6.4" | ||
}, | ||
"engines": { | ||
"node": ">=14", | ||
"pnpm": ">=7" | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"main": "lib/index.js", | ||
"typings": "lib/index.d.ts" | ||
} | ||
} |
Oops, something went wrong.