Skip to content

Commit

Permalink
use nested eslint configs and remove "getXConfiguration" file pattern…
Browse files Browse the repository at this point in the history
…s pattern, phetsims/chipper#1483
  • Loading branch information
zepumph committed Dec 2, 2024
1 parent 3fa1cf0 commit 64574ad
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
17 changes: 2 additions & 15 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,8 @@
* @author Michael Kauzmann (PhET Interactive Simulations)
*/

import { getPhetLibraryConfiguration } from '../perennial-alias/js/eslint/config/phet-library.eslint.config.mjs';
import rootEslintConfig from '../perennial-alias/js/eslint/config/root.eslint.config.mjs';
import getNodeConfiguration from '../perennial-alias/js/eslint/config/util/getNodeConfiguration.mjs';

const nodeFiles = [
'js/grunt/**/*'
];

process.env;
import phetLibraryEslintConfig from '../perennial-alias/js/eslint/config/phet-library.eslint.config.mjs';

export default [
...rootEslintConfig,
...getPhetLibraryConfiguration( {
files: [ '**/*' ],
ignores: nodeFiles
} ),
...getNodeConfiguration( { files: nodeFiles } )
...phetLibraryEslintConfig
];
14 changes: 14 additions & 0 deletions js/grunt/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright 2024, University of Colorado Boulder

/**
* ESLint configuration for dot grunt.
*
* @author Sam Reid (PhET Interactive Simulations)
* @author Michael Kauzmann (PhET Interactive Simulations)
*/

import nodeEslintConfig from '../../../perennial-alias/js/eslint/config/node.eslint.config.mjs';

export default [
...nodeEslintConfig
];

0 comments on commit 64574ad

Please sign in to comment.