Skip to content

Commit da7cd0e

Browse files
authored
refactor: cleanup error message templates (#20479)
* refactor: cleanup error message templates * restore messages used by `@eslint/eslintrc`
1 parent 6f23076 commit da7cd0e

6 files changed

Lines changed: 568 additions & 27 deletions

File tree

‎.c8rc‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"include": ["bin/**/*.js", "conf/**/*.js", "lib/**/*.js"],
2+
"all": true,
3+
"include": ["bin", "conf", "lib", "messages"],
34
"reporter": ["lcov", "text-summary", "cobertura"],
45
"sourceMap": true
56
}

‎Makefile.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const NODE_MODULES = "./node_modules/",
7878
RULE_FILES = glob
7979
.sync("lib/rules/*.js")
8080
.filter(filePath => path.basename(filePath) !== "index.js"),
81-
TEST_FILES = '"tests/{bin,conf,lib,tools}/**/*.js"',
81+
TEST_FILES = '"tests/{bin,conf,lib,messages,tools}/**/*.js"',
8282
PERF_ESLINT_CONFIG = path.join(PERF_TMP_DIR, "eslint.config.js"),
8383
PERF_MULTIFILES_TARGET_DIR = path.join(PERF_TMP_DIR, "eslint"),
8484
CHANGELOG_FILE = "./CHANGELOG.md",

‎knip.jsonc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"project": ["{bin,conf,lib,tools}/**/*.js"],
77
"mocha": {
88
"entry": [
9-
"tests/{bin,conf,lib,tools}/**/*.js", // see Makefile.js
9+
"tests/{bin,conf,lib,messages,tools}/**/*.js", // see Makefile.js
1010
],
1111
"project": ["tests/**/*.js"],
1212
},

‎messages/all-files-ignored.js‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎messages/print-config-with-directory-path.js‎

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)