Skip to content

Commit b2bbc9e

Browse files
authored
Merge pull request #48 from tuanductran/renovate/major-eslint-monorepo
2 parents e7dd008 + 103ad8b commit b2bbc9e

3 files changed

Lines changed: 106 additions & 185 deletions

File tree

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,18 @@
5353
"devDependencies": {
5454
"@eslint/markdown": "^7.5.1",
5555
"case-police": "^2.1.1",
56-
"eslint": "^9.39.2",
56+
"eslint": "^10.0.0",
5757
"eslint-config-prettier": "^10.1.8",
5858
"eslint-plugin-case-police": "^2.1.1",
5959
"eslint-plugin-prettier": "^5.5.5",
6060
"markdown-link-check": "^3.14.2",
6161
"markdownlint-cli": "^0.47.0",
6262
"prettier": "^3.8.1",
6363
"prettier-plugin-pkg": "^0.21.2"
64+
},
65+
"pnpm": {
66+
"patchedDependencies": {
67+
"eslint-plugin-case-police@2.1.1": "patches/eslint-plugin-case-police@2.1.1.patch"
68+
}
6469
}
6570
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/dist/index.cjs b/dist/index.cjs
2+
index e2fd6fcc92634706ef0d1c316eb6194cdca27464..528a5c58490e921c6a60d45e46e7fadacc1ae8bc 100644
3+
--- a/dist/index.cjs
4+
+++ b/dist/index.cjs
5+
@@ -115,7 +115,7 @@ const stringCheck = createEslintRule({
6+
};
7+
const dict = loadDict(options);
8+
const code = context.sourceCode.text;
9+
- const extension = node_path.extname(context.getFilename());
10+
+ const extension = node_path.extname(context.filename);
11+
const isMarkdown = extension === ".md" || extension === ".mdx";
12+
const checkText = (node) => {
13+
const start = node.range[0];

0 commit comments

Comments
 (0)