Skip to content

Commit

Permalink
[INFRA-696] feat: add eslint import order rule for typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
slavik-chapelskyi committed Oct 11, 2019
1 parent 2ffa117 commit 854976c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions typescript.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const paddingLineBetweenStatements = require('./rules/padding-line-between-statements');
const jestRules = require('./rules/jest');
const importOrder = require('./rules/import-order');

module.exports = {
extends: [
Expand All @@ -12,7 +13,7 @@ module.exports = {
'prettier',
'prettier/@typescript-eslint'
],
plugins: ['@typescript-eslint', 'jest-formatting', 'jest', 'json-format', 'prettier'],
plugins: ['@typescript-eslint', 'jest-formatting', 'jest', 'json-format', 'prettier', 'import'],
env: {
node: true,
jest: true,
Expand Down Expand Up @@ -45,7 +46,8 @@ module.exports = {
}
],
'prefer-template': 'error',
'prefer-object-spread': 'error'
'prefer-object-spread': 'error',
'import/order': importOrder
},
overrides: [
{
Expand Down

0 comments on commit 854976c

Please sign in to comment.