From c0c53190205b0c8436838b1655e96ee0653bc89d Mon Sep 17 00:00:00 2001 From: Alexey Shpakov Date: Sun, 19 Jan 2020 22:10:56 +1100 Subject: [PATCH] Dogfooding, version bump --- CHANGELOG.md | 3 +++ package.json | 6 ++++-- stricter.config.js | 11 +++++++++-- yarn.lock | 27 ++++++++++++++++++++++++++- 4 files changed, 42 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 13c6cfd9..79fb98bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,10 @@ # Changelog ## Master + +## 0.4.1 - Dogfooding - Support for the scoped plugins (#93 by @nadiam84) +- Dogfood stricter - Dependencies bump ## 0.4.0 - Typescript support, for real diff --git a/package.json b/package.json index 14f929a3..11a7bd26 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stricter", - "version": "0.4.0", + "version": "0.4.1", "description": "A project-wide js-linting tool", "files": [ "LICENSE", @@ -18,10 +18,11 @@ "build:main": "cross-env NODE_ENV=production rollup -c rollup.config.js", "watch": "rollup -c rollup.config.js -w", "lint": "tslint --project .", + "stricter": "stricter", "typecheck": "tsc --noEmit", "build:types": "tsc --emitDeclarationOnly --declarationDir lib --declaration", "generate:schema": "typescript-json-schema tsconfig.json Config --include src/types/* --out src/config/config-schema.json --noExtraProps --required --useTypeOfKeyword", - "all": "yarn generate:schema && concurrently npm:build:main npm:build:types npm:lint npm:typecheck -c green,yellow,blue,magenta", + "all": "yarn generate:schema && concurrently npm:build:main npm:build:types npm:lint npm:typecheck npm:stricter -c green,yellow,blue,magenta,cyan", "test": "jest", "report-coverage": "coveralls < coverage/lcov.info" }, @@ -71,6 +72,7 @@ "rollup-plugin-json": "^4.0.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-replace": "^2.2.0", + "stricter": "^0.4.0", "ts-node": "^8.6.2", "tslint": "^5.20.1", "tslint-config-airbnb": "^5.11.2", diff --git a/stricter.config.js b/stricter.config.js index ae157807..bde6ffb2 100644 --- a/stricter.config.js +++ b/stricter.config.js @@ -6,15 +6,22 @@ module.exports = { level: 'error', config: { entry: [ - /.*[\\/]src[\\/]index\.ts/, + /.*[\\\/]src[\\\/]index\.ts/, /.*__snapshots__.*/, /.*__fixtures__.*/, ], relatedEntry: [ /.*test\.ts/, - /.*[\\/]src[\\/]start-debug\.ts/, + /.*[\\\/]src[\\\/]start-debug\.ts/, ] } }], + 'stricter/circular-dependencies': [{ + level: 'error', + exclude: [/integration-tests[\\\/].*/], + config: { + checkSubTreeCycle: true, + } + }] } } \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index be00eaee..59ecdccb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1185,7 +1185,7 @@ acorn@^7.1.0: resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.1.0.tgz#949d36f2c292535da602283586c2477c57eb2d6c" integrity sha512-kL5CuoXA/dgxlBbVrflsflzQ3PAas7RYZB52NOm/6839iVYJgKMJ3cQJD+t2i5+qFa8h3MDpEOJiS64E8JLnSQ== -ajv@^6.11.0: +ajv@^6.10.2, ajv@^6.11.0: version "6.11.0" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.11.0.tgz#c3607cbc8ae392d8a5a536f25b21f8e5f3f87fe9" integrity sha512-nCprB/0syFYy9fVYU1ox1l2KN8S9I+tziH8D4zdZuLT3N6RMlGSGt5FSTpAiHB/Whv8Qs1cWHma1aMKZyaHRKA== @@ -4662,6 +4662,31 @@ stealthy-require@^1.1.0: resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" integrity sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks= +stricter@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/stricter/-/stricter-0.4.0.tgz#55d04f0930121c1b8f63751ac893b145fa4c6561" + integrity sha512-OJqyvdKeL0HTk0vUmguA6sKw+LcUaJT7N8SuYr38c5kP0J09WUe9TMvtobQ24In7IQlBSClPfKyQQZb6ht09PA== + dependencies: + "@babel/core" "^7.8.3" + "@babel/parser" "^7.8.3" + "@wojtekmaj/babylon-walk" "2.0.0" + ajv "^6.10.2" + app-root-path "^3.0.0" + chalk "^3.0.0" + debug "^4.1.1" + enhanced-resolve "^4.1.1" + fast-glob "^3.1.1" + file-system-cache "^1.0.5" + find-cache-dir "^3.2.0" + graphlib "^2.1.8" + graphlib-dot "^0.6.4" + is-ci "^2.0.0" + micromatch "^4.0.2" + rimraf "^3.0.0" + xml-escape "^1.1.0" + xxhashjs "^0.2.2" + yargs "^15.1.0" + string-length@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/string-length/-/string-length-2.0.0.tgz#d40dbb686a3ace960c1cffca562bf2c45f8363ed"