Skip to content

Commit

Permalink
chore: enable linting .eleventy.js again (#16274)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic authored Sep 5, 2022
1 parent 1ae8236 commit 67db10c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Makefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ target.lintDocsJS = function([fix = false] = []) {
let errors = 0;

echo("Validating JavaScript files in the docs directory");
const lastReturn = exec(`${ESLINT}${fix ? "--fix" : ""} docs`);
const lastReturn = exec(`${ESLINT}${fix ? "--fix" : ""} docs/.eleventy.js`);

if (lastReturn.code !== 0) {
errors++;
Expand Down
19 changes: 3 additions & 16 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ function createInternalFilesPatterns(pattern = null) {
}

module.exports = [
...compat.extends("eslint", "plugin:eslint-plugin/recommended"),
...compat.extends("eslint"),
{
plugins: {
"internal-rules": internalPlugin
"internal-rules": internalPlugin,
"eslint-plugin": eslintPlugin
},
languageOptions: {
ecmaVersion: "latest"
Expand All @@ -96,20 +97,6 @@ module.exports = [
}
},
rules: {
"eslint-plugin/consistent-output": "error",
"eslint-plugin/no-deprecated-context-methods": "error",
"eslint-plugin/no-only-tests": "error",
"eslint-plugin/prefer-message-ids": "error",
"eslint-plugin/prefer-output-null": "error",
"eslint-plugin/prefer-placeholders": "error",
"eslint-plugin/prefer-replace-text": "error",
"eslint-plugin/report-message-format": ["error", "[^a-z].*\\.$"],
"eslint-plugin/require-meta-docs-description": "error",
"eslint-plugin/require-meta-has-suggestions": "error",
"eslint-plugin/require-meta-schema": "error",
"eslint-plugin/require-meta-type": "error",
"eslint-plugin/test-case-property-ordering": "error",
"eslint-plugin/test-case-shorthand-strings": "error",
"internal-rules/multiline-comment-style": "error"
}
},
Expand Down

0 comments on commit 67db10c

Please sign in to comment.