Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lego/tslint-config

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lego/tslint-config - npm Package Compare versions

Comparing version 2.3.8 to 2.3.9

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [2.3.9](https://github.com/LEGO/linter-configs/compare/@lego/tslint-config@2.3.8...@lego/tslint-config@2.3.9) (2019-10-21)
**Note:** Version bump only for package @lego/tslint-config
## [2.3.8](https://github.com/LEGO/linter-configs/compare/@lego/tslint-config@2.3.7...@lego/tslint-config@2.3.8) (2019-10-16)

@@ -8,0 +16,0 @@

7

lib/utils/typescript-only.d.ts

@@ -5,5 +5,6 @@ import { Configuration } from 'tslint';

*/
export declare const tsOnly: string[];
export declare const allRules: Configuration.RawRulesConfig;
export declare const jsRules: Pick<Configuration.RawRulesConfig, number>;
declare const tsOnly: string[];
declare const allRules: Configuration.RawRulesConfig;
declare const jsRules: Pick<Configuration.RawRulesConfig, number>;
export { tsOnly, allRules, jsRules };
//# sourceMappingURL=typescript-only.d.ts.map

@@ -7,7 +7,7 @@ "use strict";

const lodash_omit_1 = __importDefault(require("lodash.omit"));
const tslint_1 = require("../rules/tslint");
const tslint_1 = __importDefault(require("../rules/tslint"));
/**
* $('.feature-ts-only').parent().parent().find('strong').each((e, i) => console.log($(i).text()))
*/
exports.tsOnly = [
const tsOnly = [
'adjacent-overload-signatures',

@@ -55,4 +55,7 @@ 'array-type',

];
exports.allRules = Object.assign({}, tslint_1.rules);
exports.jsRules = lodash_omit_1.default(exports.allRules, exports.tsOnly);
exports.tsOnly = tsOnly;
const allRules = Object.assign({}, tslint_1.default.rules);
exports.allRules = allRules;
const jsRules = lodash_omit_1.default(allRules, tsOnly);
exports.jsRules = jsRules;
//# sourceMappingURL=typescript-only.js.map
{
"name": "@lego/tslint-config",
"version": "2.3.8",
"version": "2.3.9",
"description": "LEGO shareable tslint config for ts projects",

@@ -37,3 +37,3 @@ "keywords": [

"dependencies": {
"@lego/tslint-config-prettier": "1.10.8",
"@lego/tslint-config-prettier": "1.10.9",
"lodash.omit": "4.5.0",

@@ -46,3 +46,3 @@ "prettier": "1.18.2",

"devDependencies": {
"@lego/eslint-config-typescript": "1.2.4",
"@lego/eslint-config-typescript": "1.2.5",
"@types/isomorphic-fetch": "0.0.35",

@@ -63,3 +63,3 @@ "@types/jsdom": "12.2.4",

},
"gitHead": "15cc7c92f9c957d1d2840be03d17008dbb25c549"
"gitHead": "7949976d80815294c2b84d25c9094648bab55370"
}
import omit from 'lodash.omit';
import { Configuration } from 'tslint';
import { rules } from '../rules/tslint';
import config from '../rules/tslint';

@@ -8,3 +8,3 @@ /**

*/
export const tsOnly = [
const tsOnly = [
'adjacent-overload-signatures',

@@ -53,6 +53,8 @@ 'array-type',

export const allRules: Configuration.RawRulesConfig = {
...rules,
const allRules: Configuration.RawRulesConfig = {
...config.rules,
};
export const jsRules = omit(allRules, tsOnly);
const jsRules = omit(allRules, tsOnly);
export { tsOnly, allRules, jsRules };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc