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

@ioffice/tslint-config-ioffice

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ioffice/tslint-config-ioffice - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

rules/ioImportStyleRule.d.ts

7

CHANGELOG.md

@@ -11,3 +11,7 @@ # Changelog

## [0.6.1] - November 20, 2018
*Sections*
- Import Order: There should be 3 groups for imports: 3rd Party Libs, iOFFICE, and project modules.
## [0.6.0] - November 14, 2018

@@ -60,3 +64,4 @@ *Sections*

[Unreleased]: https://github.com/ioffice/tslint-config-ioffice/compare/0.6.0...HEAD
[Unreleased]: https://github.com/ioffice/tslint-config-ioffice/compare/0.6.1...HEAD
[0.6.1]: https://github.com/ioffice/tslint-config-ioffice/compare/0.6.0...0.6.1
[0.6.0]: https://github.com/ioffice/tslint-config-ioffice/compare/0.5.0...0.6.0

@@ -63,0 +68,0 @@ [0.5.0]: https://github.com/ioffice/tslint-config-ioffice/compare/0.4.1...0.5.0

2

package.json
{
"name": "@ioffice/tslint-config-ioffice",
"version": "0.6.0",
"version": "0.6.1",
"description": "IOFFICE TypeScript Style Guide",

@@ -5,0 +5,0 @@ "main": "tslint-config-ioffice.json",

@@ -777,3 +777,7 @@ <!-- THIS IS AN AUTO-GENERATED FILE - DO NOT MODIFY MANUALLY -->

<a name="modules--import-order"></a><a name="10.3"></a>
- [10.3](#modules--import-order) **Import Order**: Import statements should be alphabetized and grouped.
- [10.3](#modules--import-order) **Import Order**: Import statements should be alphabetized and sorted. Sources of different groups must be
sorted by 3rd party libraries, libraries provided by iOFFICE and finally local modules.
Currently this is specified by the `io-import-style` since the `ordered-imports` rule has
not merged the change that will allow us to create custom groups.

@@ -804,3 +808,2 @@

import { b } from '../parent/directory';
import { a } from './local/path';

@@ -820,3 +823,5 @@ ```

import {longNameA, longNameB, longNameC, longNameD, longNameE} from 'path';
```
```ts
// good

@@ -823,0 +828,0 @@ import {

import './ioExportStyleRule';
import './ioImportStyleRule';
declare const _default: {

@@ -3,0 +4,0 @@ rulesDirectory: string;

"use strict";
require("./ioExportStyleRule");
require("./ioImportStyleRule");
module.exports = {
rulesDirectory: "./rules",
};

@@ -10,9 +10,27 @@ {

],
"no-angle-bracket-type-assertion": true,
"ordered-imports": [
"io-import-style": [
true,
{
"grouped-imports": true
"named-imports-order": "lowercase-last",
"grouped-imports": true,
"groups": [
{
"name": "ioffice-libraries",
"match": "^@ioffice",
"order": 20
},
{
"name": "project-modules",
"match": "^[.\\^]",
"order": 40
},
{
"name": "3rd-party-libraries",
"match": ".*",
"order": 1
}
]
}
],
"no-angle-bracket-type-assertion": true,
"no-multi-spaces": [

@@ -19,0 +37,0 @@ true,

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