Skip to content

Commit

Permalink
Sort imports and run grunt modulify, see phetsims/chipper#1462
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Nov 27, 2024
1 parent d427967 commit 6bc575a
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* @author Michael Kauzmann (PhET Interactive Simulations)
*/

import banTSCommentConfig from '../perennial-alias/js/eslint/config/util/banTSCommentConfig.mjs';
import simEslintConfig from '../perennial-alias/js/eslint/config/sim.eslint.config.mjs';
import banTSCommentConfig from '../perennial-alias/js/eslint/config/util/banTSCommentConfig.mjs';

export default [
...simEslintConfig,
Expand Down
2 changes: 1 addition & 1 deletion js/common/ExampleSimConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
* @author Chris Malley (PixelZoom, Inc.)
*/

import ExampleSimColors from './ExampleSimColors.js';
import exampleSim from '../exampleSim.js';
import ExampleSimColors from './ExampleSimColors.js';

const ExampleSimConstants = {

Expand Down
4 changes: 2 additions & 2 deletions js/magnets/MagnetsScreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@

import Screen, { ScreenOptions } from '../../../joist/js/Screen.js';
import ScreenIcon from '../../../joist/js/ScreenIcon.js';
import { EmptySelfOptions, optionize4 } from '../../../phet-core/js/optionize.js';
import { Image } from '../../../scenery/js/imports.js';
import Tandem from '../../../tandem/js/Tandem.js';
import barMagnet_png from '../../images/barMagnet_png.js';
import ExampleSimColors from '../common/ExampleSimColors.js';
import ExampleSimConstants from '../common/ExampleSimConstants.js';
import exampleSim from '../exampleSim.js';
import ExampleSimStrings from '../ExampleSimStrings.js';
import MagnetsModel from './model/MagnetsModel.js';
import MagnetsScreenView from './view/MagnetsScreenView.js';
import { optionize4, EmptySelfOptions } from '../../../phet-core/js/optionize.js';
import Tandem from '../../../tandem/js/Tandem.js';

type SelfOptions = EmptySelfOptions;

Expand Down
2 changes: 1 addition & 1 deletion js/magnets/model/BarMagnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* @author Steele Dalton (PhET Interactive Simulations)
*/

import Property from '../../../../axon/js/Property.js';
import Dimension2 from '../../../../dot/js/Dimension2.js';
import Vector2 from '../../../../dot/js/Vector2.js';
import Property from '../../../../axon/js/Property.js';
import TModel from '../../../../joist/js/TModel.js';
import exampleSim from '../../exampleSim.js';

Expand Down
4 changes: 2 additions & 2 deletions js/magnets/view/MagnetsControlPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
* @author Steele Dalton (PhET Interactive Simulations)
*/

import optionize, { EmptySelfOptions } from '../../../../phet-core/js/optionize.js';
import PhetFont from '../../../../scenery-phet/js/PhetFont.js';
import { Text, VBox } from '../../../../scenery/js/imports.js';
import RectangularPushButton from '../../../../sun/js/buttons/RectangularPushButton.js';
import Panel, { PanelOptions } from '../../../../sun/js/Panel.js';
import exampleSim from '../../exampleSim.js';
import ExampleSimColors from '../../common/ExampleSimColors.js';
import exampleSim from '../../exampleSim.js';
import ExampleSimStrings from '../../ExampleSimStrings.js';
import MagnetsModel from '../model/MagnetsModel.js';
import optionize, { EmptySelfOptions } from '../../../../phet-core/js/optionize.js';

type SelfOptions = EmptySelfOptions;
type MagnetsControlPanelOptions = SelfOptions & PanelOptions;
Expand Down
4 changes: 2 additions & 2 deletions js/magnets/view/MagnetsScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@

import Vector2 from '../../../../dot/js/Vector2.js';
import ScreenView, { ScreenViewOptions } from '../../../../joist/js/ScreenView.js';
import { EmptySelfOptions } from '../../../../phet-core/js/optionize.js';
import ModelViewTransform2 from '../../../../phetcommon/js/view/ModelViewTransform2.js';
import ResetAllButton from '../../../../scenery-phet/js/buttons/ResetAllButton.js';
import exampleSim from '../../exampleSim.js';
import ExampleSimConstants from '../../common/ExampleSimConstants.js';
import exampleSim from '../../exampleSim.js';
import MagnetsModel from '../model/MagnetsModel.js';
import BarMagnetNode from './BarMagnetNode.js';
import MagnetsControlPanel from './MagnetsControlPanel.js';
import { EmptySelfOptions } from '../../../../phet-core/js/optionize.js';

type SelfOptions = EmptySelfOptions;

Expand Down
4 changes: 2 additions & 2 deletions js/particles/ParticlesScreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@

import Screen, { ScreenOptions } from '../../../joist/js/Screen.js';
import ScreenIcon from '../../../joist/js/ScreenIcon.js';
import { EmptySelfOptions, optionize4 } from '../../../phet-core/js/optionize.js';
import ShadedSphereNode from '../../../scenery-phet/js/ShadedSphereNode.js';
import Tandem from '../../../tandem/js/Tandem.js';
import ExampleSimColors from '../common/ExampleSimColors.js';
import ExampleSimConstants from '../common/ExampleSimConstants.js';
import exampleSim from '../exampleSim.js';
import ExampleSimStrings from '../ExampleSimStrings.js';
import ParticlesModel from './model/ParticlesModel.js';
import ParticlesScreenView from './view/ParticlesScreenView.js';
import { optionize4, EmptySelfOptions } from '../../../phet-core/js/optionize.js';
import Tandem from '../../../tandem/js/Tandem.js';

type SelfOptions = EmptySelfOptions;

Expand Down
4 changes: 2 additions & 2 deletions js/particles/model/Particle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
* @author Chris Malley (PixelZoom, Inc.)
*/

import { Color } from '../../../../scenery/js/imports.js';
import NumberProperty from '../../../../axon/js/NumberProperty.js';
import dotRandom from '../../../../dot/js/dotRandom.js';
import Range from '../../../../dot/js/Range.js';
import Vector2 from '../../../../dot/js/Vector2.js';
import Vector2Property from '../../../../dot/js/Vector2Property.js';
import { combineOptions } from '../../../../phet-core/js/optionize.js';
import { Color } from '../../../../scenery/js/imports.js';
import ExampleSimColors from '../../common/ExampleSimColors.js';
import exampleSim from '../../exampleSim.js';
import { combineOptions } from '../../../../phet-core/js/optionize.js';

// constants
const DEFAULT_DIAMETER = 2000; // in nm
Expand Down
2 changes: 1 addition & 1 deletion js/particles/view/ParticleNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
* @author Chris Malley (PixelZoom, Inc.)
*/

import optionize, { EmptySelfOptions } from '../../../../phet-core/js/optionize.js';
import ModelViewTransform2 from '../../../../phetcommon/js/view/ModelViewTransform2.js';
import ShadedSphereNode, { ShadedSphereNodeOptions } from '../../../../scenery-phet/js/ShadedSphereNode.js';
import exampleSim from '../../exampleSim.js';
import Particle from '../model/Particle.js';
import optionize, { EmptySelfOptions } from '../../../../phet-core/js/optionize.js';

type SelfOptions = EmptySelfOptions;
type ParticleNodeOptions = SelfOptions & ShadedSphereNodeOptions;
Expand Down

0 comments on commit 6bc575a

Please sign in to comment.