wix-incubator / tslint-wix-react

Linting configuration on top of tslint-microsoft-contrib for tsx projects
0 stars 3 forks source link

ordered-imports change #15

Closed VKobeliatsky closed 1 year ago

VKobeliatsky commented 7 years ago

I suggest the next configuration for ordered-imports rule:

"ordered-imports": [
      true,
      {
        "grouped-imports": true,
        "import-sources-order": "any",
        "named-imports-order": "any"
      }
    ]

this forces the developer to group imports by source path:

Possible values for "grouped-imports" are:

  • true: Group source imports by "bar", "../baz", "./foo".

and have any order in the groups and import names

Possible values for "import-sources-order" are:

  • "any": Allow any order.

Possible values for "named-imports-order" are:

  • "any": Allow any order.

ordered-imports

tyv commented 6 years ago

let's publish it @VKobeliatsky