File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,6 +76,10 @@ export default [
7676 } ,
7777
7878 rules : {
79+ 'sort-imports' : [
80+ 'error' ,
81+ { ignoreCase : true , ignoreDeclarationSort : true }
82+ ] ,
7983 'import/order' : [
8084 'error' ,
8185 {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import antlrParse from './parser.js';
77import antlrPrint from './printer.js' ;
88import slangParse from './slangSolidityParser.js' ;
99import slangPrint from './slangPrinter.js' ;
10- import { isComment , isBlockComment } from './slang-utils/is-comment.js' ;
10+ import { isBlockComment , isComment } from './slang-utils/is-comment.js' ;
1111import { locEnd , locStart } from './slang-utils/loc.js' ;
1212
1313import type {
Original file line number Diff line number Diff line change 11import {
22 TerminalKind ,
3- TerminalNode ,
4- TerminalKindExtensions
3+ TerminalKindExtensions ,
4+ TerminalNode
55} from '@nomicfoundation/slang/cst' ;
66import { MultiLineComment } from '../slang-nodes/MultiLineComment.js' ;
77import { MultiLineNatSpecComment } from '../slang-nodes/MultiLineNatSpecComment.js' ;
Original file line number Diff line number Diff line change 11import { SlangNode } from './SlangNode.js' ;
22
33import type {
4- TerminalKind ,
5- TerminalNode as SlangTerminalNode
4+ TerminalNode as SlangTerminalNode ,
5+ TerminalKind
66} from '@nomicfoundation/slang/cst' ;
77import type { Doc } from 'prettier' ;
88
Original file line number Diff line number Diff line change 11// https://prettier.io/docs/en/plugins.html#parsers
22import { SourceUnit as SlangSourceUnit } from '@nomicfoundation/slang/ast' ;
3- import { clearOffsets , clearComments } from './slang-nodes/SlangNode.js' ;
3+ import { clearComments , clearOffsets } from './slang-nodes/SlangNode.js' ;
44import { createParser } from './slang-utils/create-parser.js' ;
55import { SourceUnit } from './slang-nodes/SourceUnit.js' ;
66
You can’t perform that action at this time.
0 commit comments