From fdcc863647f2a820dfdf720f1d831bcd03a2eb5a Mon Sep 17 00:00:00 2001 From: Michael Kauzmann Date: Tue, 31 Aug 2021 14:02:33 -0800 Subject: [PATCH] Add consistent-default-export-name package with import variable name rule turned off, https://github.com/phetsims/chipper/issues/1079 --- eslint/.eslintrc.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/eslint/.eslintrc.js b/eslint/.eslintrc.js index b58e4db4..9ce57dfe 100644 --- a/eslint/.eslintrc.js +++ b/eslint/.eslintrc.js @@ -13,6 +13,9 @@ module.exports = { // in a parent dir root: true, + // See https://www.npmjs.com/package/eslint-plugin-consistent-default-export-name + plugins: [ 'consistent-default-export-name' ], + // The rules are organized like they are in the list at https://eslint.org/docs/rules/ // First by type, then alphabetically within type // Explicitly list all rules so it is easy to see what's here and to keep organized @@ -895,6 +898,13 @@ module.exports = { // require or disallow spacing around the `*` in `yield*` expressions 'yield-star-spacing': 'error', + //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + // Plugins + // + + // TODO: comment back in when >1200 errors are fixed, see https://github.com/phetsims/chipper/issues/1079 + // "consistent-default-export-name/default-import-match-filename": "error", + //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Custom Rules //