@dtsgenerator/replace-namespace
Advanced tools
Comparing version 1.5.0 to 1.5.1
{ | ||
"root": true, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import/errors", | ||
"plugin:import/warnings", | ||
"plugin:import/typescript", | ||
"prettier" | ||
], | ||
"plugins": [ | ||
"sort-imports-es6-autofix" | ||
], | ||
"env": { | ||
"node": true, | ||
"es2021": true, | ||
"mocha": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"typescript": { | ||
"alwaysTryTypes": true | ||
} | ||
} | ||
}, | ||
"rules": { | ||
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/prefer-optional-chain": 2, | ||
"@typescript-eslint/prefer-nullish-coalescing": 2, | ||
"import/no-named-as-default": 0, | ||
"import/no-named-as-default-member": 0 | ||
} | ||
"@dtsgenerator" | ||
] | ||
} |
@@ -5,3 +5,3 @@ "use strict"; | ||
var dtsgenerator_1 = require("dtsgenerator"); | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment | ||
var packageJson = require('./package.json'); | ||
@@ -16,2 +16,3 @@ var replaceNamespace = { | ||
}; | ||
// eslint-disable-next-line @typescript-eslint/require-await | ||
function postProcess(pluginContext) { | ||
@@ -18,0 +19,0 @@ return tslib_1.__awaiter(this, void 0, void 0, function () { |
@@ -12,4 +12,9 @@ import { ts, Plugin, PluginContext } from 'dtsgenerator'; | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment | ||
const packageJson: { | ||
name: string; | ||
version: string; | ||
description: string; | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const packageJson = require('./package.json'); | ||
} = require('./package.json'); | ||
@@ -33,2 +38,3 @@ const replaceNamespace: Plugin = { | ||
// eslint-disable-next-line @typescript-eslint/require-await | ||
async function postProcess( | ||
@@ -35,0 +41,0 @@ pluginContext: PluginContext |
{ | ||
"name": "@dtsgenerator/replace-namespace", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "replace the namespace names", | ||
@@ -11,13 +11,12 @@ "main": "index.js", | ||
"clean": "rimraf index.js test/**/*.js *.tsbuildinfo", | ||
"lint": "eslint *.ts **/*.ts", | ||
"lint:fix": "npm run lint -- --fix", | ||
"precompile": "npm run lint", | ||
"format": "prettier --write **/*.ts", | ||
"lint": "eslint --fix *.ts **/*.ts", | ||
"fix": "npm run format && npm run lint", | ||
"compile": "tsc -p .", | ||
"watch": "npm run compile -- -w", | ||
"build": "npm run compile", | ||
"build": "npm run fix && npm run compile", | ||
"do-test": "cross-env TS_NODE_FILES=true mocha --exit --require ts-node/register --colors test/*_test.ts", | ||
"pretest": "npm run compile", | ||
"test": "nyc npm run do-test", | ||
"coverage": "nyc report --reporter=text-lcov | coveralls", | ||
"test:update-snapshot": "UPDATE_SNAPSHOT=1 npm run do-test" | ||
"coverage": "nyc report --reporter=lcov", | ||
"test:update-snapshot": "UPDATE_SNAPSHOT=1 npm run do-test", | ||
"prepare": "husky install" | ||
}, | ||
@@ -39,25 +38,26 @@ "repository": { | ||
"devDependencies": { | ||
"@dtsgenerator/eslint-config": "^0.2.0", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^16.4.3", | ||
"@typescript-eslint/eslint-plugin": "^4.28.5", | ||
"@typescript-eslint/parser": "^4.28.5", | ||
"@types/node": "^16.7.2", | ||
"cross-env": "^7.0.3", | ||
"dtsgenerator": "^3.12.1", | ||
"eslint": "^7.31.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-import-resolver-typescript": "^2.4.0", | ||
"eslint-plugin-import": "^2.23.4", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0", | ||
"mocha": "^9.0.3", | ||
"eslint": "^7.32.0", | ||
"husky": "^7.0.2", | ||
"lint-staged": "^11.1.2", | ||
"mocha": "^9.1.0", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.3.2", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^10.1.0", | ||
"tslib": "^2.3.0" | ||
"ts-node": "^10.2.1" | ||
}, | ||
"peerDependencies": { | ||
"dtsgenerator": "^3.12.1", | ||
"tslib": "^2.3.0" | ||
"tslib": "^2.3.1" | ||
}, | ||
"lint-staged": { | ||
"**/*.ts": [ | ||
"prettier --write", | ||
"eslint --fix" | ||
] | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13
33924
769