@@ -6,6 +6,7 @@ import globals from "globals";
6
6
import eslintConfigESLint from "eslint-config-eslint" ;
7
7
import eslintPlugin from "eslint-plugin-eslint-plugin" ;
8
8
import markdown from "./src/index.js" ;
9
+ import { defineConfig } from "eslint/config" ;
9
10
10
11
//-----------------------------------------------------------------------------
11
12
// Helpers
@@ -20,8 +21,8 @@ const eslintPluginTestsRecommendedConfig =
20
21
// Configuration
21
22
//-----------------------------------------------------------------------------
22
23
23
- export default [
24
- ... eslintConfigESLint ,
24
+ export default defineConfig ( [
25
+ eslintConfigESLint ,
25
26
{
26
27
name : "markdown/js" ,
27
28
files : [ "**/*.js" ] ,
@@ -93,9 +94,8 @@ export default [
93
94
} ,
94
95
{
95
96
files : [ "src/rules/*.js" ] ,
96
- ... eslintPluginRulesRecommendedConfig ,
97
+ extends : [ eslintPluginRulesRecommendedConfig ] ,
97
98
rules : {
98
- ...eslintPluginRulesRecommendedConfig . rules ,
99
99
"eslint-plugin/require-meta-schema" : "off" , // `schema` defaults to []
100
100
"eslint-plugin/prefer-placeholders" : "error" ,
101
101
"eslint-plugin/prefer-replace-text" : "error" ,
@@ -115,9 +115,8 @@ export default [
115
115
} ,
116
116
{
117
117
files : [ "tests/rules/*.test.js" ] ,
118
- ... eslintPluginTestsRecommendedConfig ,
118
+ extends : [ eslintPluginTestsRecommendedConfig ] ,
119
119
rules : {
120
- ...eslintPluginTestsRecommendedConfig . rules ,
121
120
"eslint-plugin/test-case-property-ordering" : [
122
121
"error" ,
123
122
[
@@ -134,4 +133,4 @@ export default [
134
133
"eslint-plugin/test-case-shorthand-strings" : "error" ,
135
134
} ,
136
135
} ,
137
- ] ;
136
+ ] ) ;
0 commit comments