Skip to content

Commit

Permalink
sort import members
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Jan 9, 2024
1 parent 1481f81 commit 0ff10e4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eslint-config-cityssm.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ module.exports = {
'no-extra-semi': 'off',
'sonarjs/cognitive-complexity': ['warn', 20],
'sonarjs/no-duplicate-string': 'warn',
'sort-imports': [
'error',
{
ignoreDeclarationSort: true
}
],
'unicorn/consistent-function-scoping': 'warn',
'unicorn/empty-brace-spaces': 'off',
'unicorn/filename-case': [
Expand Down
7 changes: 7 additions & 0 deletions eslint-config-cityssm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ module.exports = {
'sonarjs/cognitive-complexity': ['warn', 20],
'sonarjs/no-duplicate-string': 'warn',

'sort-imports': [
'error',
{
ignoreDeclarationSort: true
}
],

'unicorn/consistent-function-scoping': 'warn',
'unicorn/empty-brace-spaces': 'off',
'unicorn/filename-case': [
Expand Down
2 changes: 2 additions & 0 deletions test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import path from 'path'
import fs from 'fs'

import { log, error } from 'console'

import './missing'

var emailExpression = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
Expand Down

0 comments on commit 0ff10e4

Please sign in to comment.