You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`*.configs['flat/base']` ... Configuration to enable correct JSON parsing.
116
+
-`*.configs['flat/recommended-with-json']` ... Recommended configuration for JSON.
117
+
-`*.configs['flat/recommended-with-jsonc']` ... Recommended configuration for JSONC.
118
+
-`*.configs['flat/recommended-with-json5']` ... Recommended configuration for JSON5.
119
+
-`*.configs['flat/prettier']` ... Turn off rules that may conflict with [Prettier](https://prettier.io/).
120
+
-`*.configs['flat/all']` ... Enables all rules. It's meant for testing, not for production use because it changes with every minor and major version of the plugin. Use it at your own risk.
121
+
122
+
This plugin will parse `.json`, `.jsonc` and `.json5` by default using the configuration provided by the plugin (unless you already have a parser configured - see below).
123
+
124
+
See [the rule list](https://ota-meshi.github.io/eslint-plugin-jsonc/rules/) to get the `rules` that this plugin provides.
125
+
126
+
#### Legacy Config (ESLint<v9)
127
+
128
+
Use `.eslintrc.*` file to configure rules. See also: <https://eslint.org/docs/latest/use/configure/>.
-`*.configs['flat/base']` ... Configuration to enable correct JSON parsing.
45
+
-`*.configs['flat/recommended-with-json']` ... Recommended configuration for JSON.
46
+
-`*.configs['flat/recommended-with-jsonc']` ... Recommended configuration for JSONC.
47
+
-`*.configs['flat/recommended-with-json5']` ... Recommended configuration for JSON5.
48
+
-`*.configs['flat/prettier']` ... Turn off rules that may conflict with [Prettier](https://prettier.io/).
49
+
-`*.configs['flat/all']` ... Enables all rules. It's meant for testing, not for production use because it changes with every minor and major version of the plugin. Use it at your own risk.
50
+
51
+
This plugin will parse `.json`, `.jsonc` and `.json5` by default using the configuration provided by the plugin (unless you already have a parser configured - see below).
52
+
53
+
See [the rule list](../rules/index.md) to get the `rules` that this plugin provides.
54
+
55
+
#### Legacy Config (ESLint<v9)
56
+
57
+
Use `.eslintrc.*` file to configure rules. See also: <https://eslint.org/docs/latest/use/configure/>.
0 commit comments