Skip to content

Commit db5cd52

Browse files
committed
Test fixes, begin to clean up
1 parent 239b15a commit db5cd52

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.eslintrc.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@
1111
"plugins": ["github"],
1212
"extends": ["plugin:github/recommended"],
1313
"rules": {
14-
"import/no-commonjs": "off",
1514
"filenames/match-regex": "off",
16-
"i18n-text/no-en": "off"
15+
"i18n-text/no-en": "off",
16+
"import/extensions": ["error", { "js": "ignorePackages"}],
17+
"import/no-unresolved": [
18+
"error",
19+
{
20+
"ignore": ["^markdownlint/.+"]
21+
}
22+
]
1723
}
1824
}

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ See [`markdownlint` rules](https://github.com/DavidAnson/markdownlint#rules--ali
2222

2323
**Important**: We support the use of `markdownlint` through [`markdownlint-cli2`](https://github.com/DavidAnson/markdownlint-cli2) instead of `markdownlint-cli` for compatibility with the [`vscode-markdownlint`](https://github.com/DavidAnson/vscode-markdownlint) plugin.
2424

25-
1. Create a `.markdownlint-cli2.cjs` file in the root of your repository.
25+
1. Create a `.markdownlint-cli2.mjs` file in the root of your repository.
2626

2727
```bash
28-
touch .markdownlint-cli2.cjs
28+
touch .markdownlint-cli2.mjs
2929
```
3030

3131
2. Install packages.
@@ -44,7 +44,7 @@ See [`markdownlint` rules](https://github.com/DavidAnson/markdownlint#rules--ali
4444
}
4545
```
4646

47-
4. Edit `.markdownlint-cli2.cjs` file to suit your needs. Start with
47+
4. Edit `.markdownlint-cli2.mjs` file to suit your needs. Start with
4848

4949
```js
5050
const options = require('@github/markdownlint-github').init()
@@ -57,7 +57,7 @@ See [`markdownlint` rules](https://github.com/DavidAnson/markdownlint#rules--ali
5757
}
5858
```
5959
60-
Or, you can also pass in configuration options that you wish to override the default. Read more at [Customizing configurations](#customizing-configurations).
60+
Or, you can also pass in configuration options that you wish to override the default. Read more at [Customizing configurations](#customizing-configurations).
6161
This looks like:
6262
6363
```js

src/rules/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import { noEmptyStringAltRule } from "./no-empty-alt-text.js";
22
import { noGenericLinkTextRule } from "./no-generic-link-text.js";
33
import { altTextRule } from "./no-default-alt-text.js";
44

5-
// export default { noEmptyStringAltRule, noGenericLinkTextRule, altTextRule };
6-
75
export const githubMarkdownLint = [
86
altTextRule,
97
noGenericLinkTextRule,

0 commit comments

Comments
 (0)