@@ -95,7 +95,7 @@ Use `eslint.config.js` file to configure rules. See also: <https://eslint.org/do
9595
9696Example ** eslint.config.js** :
9797
98- ``` mjs
98+ ``` js
9999import eslintPluginJsonc from ' eslint-plugin-jsonc' ;
100100export default [
101101 // add more generic rule sets here, such as:
@@ -179,6 +179,55 @@ module.exports = {
179179};
180180```
181181
182+ #### ** Experimental** support for ` @eslint/json `
183+
184+ We've launched experimental support for [ ` @eslint/json ` ] .
185+
186+ Configure it as follows:
187+
188+ ``` js
189+ import json from " @eslint/json" ;
190+ import jsonc from ' eslint-plugin-jsonc' ;
191+
192+ export default [
193+ {
194+ plugins: {
195+ json,
196+ jsonc
197+ },
198+ },
199+ {
200+ files: [" **/*.json" ],
201+ language: " json/json" ,
202+ rules: {
203+ // 'json/rule-name': 'error',
204+ // 'jsonc/rule-name': 'error'
205+ },
206+ },
207+ {
208+ files: [" **/*.jsonc" , " .vscode/*.json" ],
209+ language: " json/jsonc" ,
210+ rules: {
211+ // 'json/rule-name': 'error',
212+ // 'jsonc/rule-name': 'error'
213+ },
214+ },
215+ {
216+ files: [" **/*.json5" ],
217+ language: " json/json5" ,
218+ rules: {
219+ // 'json/rule-name': 'error',
220+ // 'jsonc/rule-name': 'error'
221+ },
222+ },
223+ ];
224+ ```
225+
226+ However, we're not yet sure how best to make this work.
227+ Please note that we may change behavior without notice.
228+
229+ [ `@eslint/json` ] : https://github.com/eslint/json
230+
182231## :computer : Editor Integrations
183232
184233### Visual Studio Code
0 commit comments