UNPKG

4.8 kBJSONView Raw
1{
2 "name": "tslint-ban-snippets",
3 "version": "3.0.9",
4 "description": "A custom tslint rule to ban configurable lists of code snippets.",
5 "main": "dist/lib/tslint-ban-snippets.js",
6 "typings": "dist/types/tslint-ban-snippets.d.ts",
7 "files": [
8 "dist"
9 ],
10 "author": "Sean Ryan <mr.sean.ryan(at)gmail.com>",
11 "license": "MIT",
12 "lint-staged": {
13 "{src,test}/**/*.ts": [
14 "prettier --write"
15 ]
16 },
17 "config": {
18 "commitizen": {
19 "path": "node_modules/cz-conventional-changelog"
20 }
21 },
22 "jest": {
23 "transform": {
24 ".(ts|tsx)": "ts-jest"
25 },
26 "transformIgnorePatterns": [
27 "^.+\\.js$",
28 "^.+\\.json$"
29 ],
30 "testEnvironment": "node",
31 "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
32 "moduleFileExtensions": [
33 "ts",
34 "tsx",
35 "js"
36 ],
37 "coveragePathIgnorePatterns": [
38 "/node_modules/",
39 "/test/",
40 "/testHarness/"
41 ],
42 "coverageThreshold": {
43 "global": {
44 "branches": 83,
45 "functions": 95,
46 "lines": 95,
47 "statements": 95
48 }
49 },
50 "collectCoverageFrom": [
51 "src/*.{js,ts}"
52 ],
53 "testPathIgnorePatterns": [
54 "/testHarness/",
55 "/node_modules/"
56 ]
57 },
58 "prettier": {
59 "semi": true,
60 "singleQuote": false
61 },
62 "commitlint": {
63 "extends": [
64 "@commitlint/config-conventional"
65 ]
66 },
67 "devDependencies": {
68 "@commitlint/cli": "^11.0.0",
69 "@commitlint/config-conventional": "^11.0.0",
70 "@types/glob": "^7.1.3",
71 "@types/jest": "^26.0.20",
72 "@types/node": "^14.14.20",
73 "colors": "^1.4.0",
74 "commitizen": "^4.0.3",
75 "coveralls": "^3.0.9",
76 "cross-env": "^7.0.3",
77 "cz-conventional-changelog": "^3.0.2",
78 "husky": "^4.3.7",
79 "jest": "^26.6.3",
80 "jest-config": "^26.6.3",
81 "lint-staged": "^10.5.3",
82 "lodash.camelcase": "^4.3.0",
83 "prettier": "^2.2.1",
84 "prompt": "^1.0.0",
85 "replace-in-file": "^6.1.0",
86 "rimraf": "^3.0.0",
87 "semantic-release": "^17.3.1",
88 "ts-jest": "^26.4.4",
89 "ts-node": "^9.1.1",
90 "tslint": "^6.1.3",
91 "tslint-config-prettier": "^1.18.0",
92 "tslint-config-standard-sr": "^8.2.0",
93 "typedoc": "^0.22.10",
94 "typescript": "^4.1.3"
95 },
96 "peerDependencies": {
97 "tslint": ">=5.9.1 || >=^5.11.0",
98 "typescript": ">=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >=3.0.0-dev || >=3.1.0-dev || >=3.2.0-dev || >=3.3.0-dev"
99 },
100 "engines": {
101 "node": ">=10.18.0"
102 },
103 "scripts": {
104 "clean": "rm -rf dist/",
105 "lint": "tslint -p tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
106 "lint:local": "tslint -p tsconfig.json -t codeFrame",
107 "prebuild": "rimraf dist",
108 "build": "tsc --module commonjs && typedoc --out docs src/tslint-ban-snippets.ts",
109 "build:minimal": "tsc --module commonjs",
110 "start": "yarn clean && yarn build && yarn test && yarn lint",
111 "test": "yarn build:minimal && yarn lint && yarn tsl:test && yarn test:unit",
112 "test:unit": "jest --coverage",
113 "test:watch": "jest --coverage --watch",
114 "test:prod": "yarn build && yarn lint && yarn test --no-cache",
115 "tsl:build-and-test": "yarn build && yarn tsl:test",
116 "tsl:test": "tslint --test test/rules/**/tslint.json",
117 "tsl:test-one": "tslint --test test/rules/tsl-ban-snippets/basic-tests/**/tslint.json",
118 "deploy-docs": "ts-node tools/gh-pages-publish",
119 "report-coverage": "cat ./coverage/lcov.info | coveralls",
120 "commit": "git-cz",
121 "semantic-release": "semantic-release",
122 "semantic-release-prepare": "ts-node tools/semantic-release-prepare"
123 },
124 "repository": {
125 "type": "git",
126 "url": "git@github.com:mrseanryan/tslint-ban-snippets.git"
127 },
128 "funding": "https://github.com/mrseanryan/tslint-ban-snippets?sponsor=1",
129 "keywords": [
130 "tslint",
131 "ban",
132 "snippets",
133 "static code analysis",
134 "checker",
135 "analysis",
136 "disabled tests",
137 "static code analysis",
138 "code analysis"
139 ],
140 "husky": {
141 "hooks": {
142 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
143 "pre-commit": "lint-staged",
144 "pre-push": "yarn test:prod"
145 }
146 }
147}