Skip to content

Commit

Permalink
Add sort-imports line rule
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Jul 28, 2024
1 parent d14710b commit 079d07d
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion publish/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export default [
// 'require-unicode-regexp': 'error',
'require-yield': 'error',
'semi': ['error', 'always'],
// 'sort-imports': 'error',
'sort-imports': 'error',
// 'sort-keys': 'error',
'sort-vars': 'error',
'space-before-blocks': 'error',
Expand Down
2 changes: 1 addition & 1 deletion source/app.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

import * as base from './base.js';
import * as electron from 'electron';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import * as process from 'process';
import * as url from 'url';
import * as base from './base.js';

const app = {};

Expand Down
2 changes: 1 addition & 1 deletion source/dlc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import * as text from './text.js';
import * as flatbuffers from './flatbuffers.js';
import * as text from './text.js';

const dlc = {};

Expand Down
2 changes: 1 addition & 1 deletion source/electron.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

import * as base from './base.js';
import * as electron from 'electron';
import * as fs from 'fs';
import * as http from 'http';
import * as https from 'https';
import * as path from 'path';
import * as url from 'url';
import * as base from './base.js';
import * as view from './view.js';

const host = {};
Expand Down
14 changes: 7 additions & 7 deletions source/view.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@

import * as base from './base.js';
import * as zip from './zip.js';
import * as tar from './tar.js';
import * as json from './json.js';
import * as text from './text.js';
import * as xml from './xml.js';
import * as protobuf from './protobuf.js';
import * as flatbuffers from './flatbuffers.js';
import * as grapher from './grapher.js';
import * as hdf5 from './hdf5.js';
import * as json from './json.js';
import * as protobuf from './protobuf.js';
import * as python from './python.js';
import * as grapher from './grapher.js';
import * as tar from './tar.js';
import * as text from './text.js';
import * as xml from './xml.js';
import * as zip from './zip.js';

const view = {};
const markdown = {};
Expand Down
8 changes: 4 additions & 4 deletions test/worker.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

import * as base from '../source/base.js';
import * as fs from 'fs/promises';
import * as path from 'path';
import * as process from 'process';
import * as python from '../source/python.js';
import * as tar from '../source/tar.js';
import * as url from 'url';
import * as view from '../source/view.js';
import * as worker_threads from 'worker_threads';
import * as base from '../source/base.js';
import * as zip from '../source/zip.js';
import * as tar from '../source/tar.js';
import * as python from '../source/python.js';
import * as view from '../source/view.js';

const access = async (path) => {
try {
Expand Down
4 changes: 2 additions & 2 deletions tools/circle-script.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import * as path from 'path';
import * as flatc from './flatc.js';
import * as fs from 'fs/promises';
import * as path from 'path';
import * as url from 'url';
import * as flatc from './flatc.js';

/* eslint-disable no-extend-native */

Expand Down
4 changes: 2 additions & 2 deletions tools/megengine-script.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import * as path from 'path';
import * as flatc from './flatc.js';
import * as fs from 'fs/promises';
import * as path from 'path';
import * as url from 'url';
import * as flatc from './flatc.js';

const main = async () => {
const dirname = path.dirname(url.fileURLToPath(import.meta.url));
Expand Down
4 changes: 2 additions & 2 deletions tools/mslite-script.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import * as flatc from './flatc.js';
import * as fs from 'fs/promises';
import * as path from 'path';
import * as url from 'url';
import * as fs from 'fs/promises';
import * as flatc from './flatc.js';

const main = async () => {
const dirname = path.dirname(url.fileURLToPath(import.meta.url));
Expand Down
4 changes: 2 additions & 2 deletions tools/tflite-script.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import * as path from 'path';
import * as flatc from './flatc.js';
import * as fs from 'fs/promises';
import * as path from 'path';
import * as url from 'url';
import * as flatc from './flatc.js';

/* eslint-disable no-extend-native */

Expand Down

0 comments on commit 079d07d

Please sign in to comment.