Skip to content

Commit

Permalink
remove many TODOs and general cleanup, phetsims/chipper#1451
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kauzmann <[email protected]>
  • Loading branch information
zepumph committed Oct 22, 2024
1 parent d02a5c6 commit 47c4953
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions eslint/root.eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,10 @@ export default [
languageOptions: {

// TODO: upgrade version: Maybe 2022? https://github.com/phetsims/chipper/issues/1451
ecmaVersion: 8,
ecmaVersion: 2022,
sourceType: 'module',

// Without a parser, .js files are linted without es6 transpilation. Use the same parser that we use for TypeScript.
// TODO: always use this parser? https://github.com/phetsims/chipper/issues/1451
parser: typescriptEslintParser

// TODO: probably don't want node and browser here in the root, see https://github.com/phetsims/chipper/issues/1451
Expand Down Expand Up @@ -1154,7 +1153,6 @@ export default [
'bad-sim-text': 'off'
},
// Lint javascript in HTML files too
// TODO: Restore html plugin, see https://github.com/phetsims/chipper/issues/1451
plugins: {
html: html
}
Expand All @@ -1178,11 +1176,8 @@ export default [
'**/*.tsx'
],
languageOptions: {

parserOptions: {

// Look up type information from the closest tsconfig.json
projectService: true
projectService: true // Look up type information from the closest tsconfig.json
}
},
plugins: {
Expand Down
1 change: 0 additions & 1 deletion eslint/rules/default-import-match-filename.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ function removeExtension( filename ) {
return path.basename( filename, path.extname( filename ) );
}

// TODO: Shouldn't this fix remove the need for some eslint-disable-lines? See https://github.com/phetsims/chipper/issues/1451
function matchesCamelCase( localName, filenameWithoutExtension ) {
return localName === _.camelCase( filenameWithoutExtension );
}
Expand Down

0 comments on commit 47c4953

Please sign in to comment.