Skip to content

Commit

Permalink
Merge pull request #2476 from NCEAS/feature-2475-eslint-config-fixes
Browse files Browse the repository at this point in the history
ESlint: Allow some unused variables and don't enforce import resolution
  • Loading branch information
robyngit authored Jul 2, 2024
2 parents 95d2143 + d49b147 commit db1a1e0
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ const airbnbRulesOverrides = {
// We are using the AMD/RequireJS module pattern
"import/no-amd": "off",
"import/no-commonjs": "off",
// We are using RequireJS
"import/no-unresolved": "off",
// Allow unused variables if they start with an underscore
"variables/no-unused-vars": [
"error",
{
vars: "all",
args: "after-used",
ignoreRestSiblings: true,
varsIgnorePattern: "^_",
},
],
};

// ---------------------------------------------------------------------
Expand All @@ -46,7 +58,7 @@ const jsdocsRulesOverrides = {
};

// ---------------------------------------------------------------------
// REQUIREJS
// REQUIREJS:
// Use all rules from the recommended config for RequireJS
const requirejsConfig = {
name: "requirejs",
Expand All @@ -59,7 +71,7 @@ const requirejsConfig = {
};

// ---------------------------------------------------------------------
// METACATUI OVERRIDES
// METACATUI OVERRIDES:
const metacatuiConfig = {
files: ["src/**/*.js"],
languageOptions: {
Expand Down

0 comments on commit db1a1e0

Please sign in to comment.