Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Mar 20, 2024
1 parent 9a00902 commit c0969a1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ module.exports = {
},
{
files: ["*.md/**", "**/*.md/**"],
parserOptions: {
sourceType: "module",
},
rules: {
"n/no-missing-import": "off",
},
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ npm install --save-dev eslint-plugin-jsx-a11y

### Configuration

#### New (ESLint>=v9) Config (Flat Config)
#### New \(ESLint\>=v9\) Config \(Flat Config\)

Use `eslint.config.js` file to configure rules. See also: [https://eslint.org/docs/latest/use/configure/configuration-files-new](https://eslint.org/docs/latest/use/configure/configuration-files-new).

Example **eslint.config.js**:

```mjs
```js
import eslintPluginAstro from 'eslint-plugin-astro';
export default [
// add more generic rule sets here, such as:
Expand All @@ -112,9 +112,9 @@ This plugin provides configs:

See [the rule list](https://ota-meshi.github.io/eslint-plugin-astro/rules/) to get the `rules` that this plugin provides.

#### Legacy Config (ESLint<v9)
#### Legacy Config \(ESLint\<v9\)

Use `.eslintrc.*` file to configure rules. See also: [https://eslint.org/docs/latest/use/configure/](https://eslint.org/docs/latest/use/configure/).
Use `.eslintrc.*` file to configure rules. See also: [https://eslint.org/docs/latest/use/configure](https://eslint.org/docs/latest/use/configure).

Example **.eslintrc.js**. When using the shareable configuration provided by the plugin:

Expand Down
8 changes: 4 additions & 4 deletions docs/user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ npm install --save-dev eslint-plugin-jsx-a11y

### Configuration

#### New (ESLint>=v9) Config (Flat Config)
#### New \(ESLint\>=v9\) Config \(Flat Config\)

Use `eslint.config.js` file to configure rules. See also: [https://eslint.org/docs/latest/use/configure/configuration-files-new](https://eslint.org/docs/latest/use/configure/configuration-files-new).

Example **eslint.config.js**:

```mjs
```js
import eslintPluginAstro from 'eslint-plugin-astro';
export default [
// add more generic rule sets here, such as:
Expand All @@ -68,9 +68,9 @@ This plugin provides configs:

See [the rule list](./rules.md) to get the `rules` that this plugin provides.

#### Legacy Config (ESLint<v9)
#### Legacy Config \(ESLint\<v9\)

Use `.eslintrc.*` file to configure rules. See also: [https://eslint.org/docs/latest/use/configure/](https://eslint.org/docs/latest/use/configure/).
Use `.eslintrc.*` file to configure rules. See also: [https://eslint.org/docs/latest/use/configure](https://eslint.org/docs/latest/use/configure).

Example **.eslintrc.js**. When using the shareable configuration provided by the plugin:

Expand Down

0 comments on commit c0969a1

Please sign in to comment.