├── .babelrc ├── .circleci └── config.yml ├── .editorconfig ├── .eslintrc.json ├── .gitattributes ├── .gitignore ├── .npmlint.json ├── .nvmrc ├── LICENSE ├── Readme.md ├── _config.yml ├── docs └── index.md ├── index.d.ts ├── package.json ├── rules ├── dependencies.ts ├── properties.ts ├── scripts.ts └── subrules │ ├── properties-name.ts │ ├── properties-private.ts │ └── properties-version.ts ├── scans └── dependency_version_check.ts ├── src ├── constants.ts ├── index.ts ├── lib │ ├── create-context.ts │ ├── event-handler.ts │ ├── fetch-packages.ts │ ├── get-valid-semver.ts │ ├── load-package.ts │ └── load-rules.ts └── types.ts ├── test ├── fixtures │ └── package.json ├── properties.subrule.name-spec.js └── properties.subrule.version-spec.js ├── tsconfig.json ├── tslint.json └── webpack.config.js /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/.babelrc -------------------------------------------------------------------------------- /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .vscode 3 | /dist 4 | /bin 5 | npm-debug.log -------------------------------------------------------------------------------- /.npmlint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/.npmlint.json -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 8.2.0 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/LICENSE -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/Readme.md -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/_config.yml -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/docs/index.md -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/index.d.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/package.json -------------------------------------------------------------------------------- /rules/dependencies.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/rules/dependencies.ts -------------------------------------------------------------------------------- /rules/properties.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/rules/properties.ts -------------------------------------------------------------------------------- /rules/scripts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/rules/scripts.ts -------------------------------------------------------------------------------- /rules/subrules/properties-name.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/rules/subrules/properties-name.ts -------------------------------------------------------------------------------- /rules/subrules/properties-private.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/rules/subrules/properties-private.ts -------------------------------------------------------------------------------- /rules/subrules/properties-version.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/rules/subrules/properties-version.ts -------------------------------------------------------------------------------- /scans/dependency_version_check.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/scans/dependency_version_check.ts -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/lib/create-context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/src/lib/create-context.ts -------------------------------------------------------------------------------- /src/lib/event-handler.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/lib/fetch-packages.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/src/lib/fetch-packages.ts -------------------------------------------------------------------------------- /src/lib/get-valid-semver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/src/lib/get-valid-semver.ts -------------------------------------------------------------------------------- /src/lib/load-package.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/src/lib/load-package.ts -------------------------------------------------------------------------------- /src/lib/load-rules.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/src/lib/load-rules.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/src/types.ts -------------------------------------------------------------------------------- /test/fixtures/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/test/fixtures/package.json -------------------------------------------------------------------------------- /test/properties.subrule.name-spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/test/properties.subrule.name-spec.js -------------------------------------------------------------------------------- /test/properties.subrule.version-spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/test/properties.subrule.version-spec.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/tslint.json -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanepiper/npm-lint/HEAD/webpack.config.js --------------------------------------------------------------------------------