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
Copy file name to clipboardExpand all lines: README.md
+21-4Lines changed: 21 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,9 +39,9 @@ Moreover, You can do the same linting using the extended rules of the ESLint cor
39
39
40
40
The parser package used by this plugin is [jsonc-eslint-parser].
41
41
42
-
###How is it different from other JSON plugins?
42
+
##:question: How is it different from other JSON plugins?
43
43
44
-
####Plugins that Do Not use AST
44
+
### Plugins that do not use AST
45
45
46
46
e.g. [eslint-plugin-json](https://www.npmjs.com/package/eslint-plugin-json)
47
47
@@ -53,13 +53,13 @@ Also, most plugins don't support JSON5.
53
53
54
54
**eslint-plugin-jsonc** works by providing AST and source code text to ESLint.
55
55
56
-
####Plugins that use the same AST as JavaScript
56
+
### Plugins that use the same AST as JavaScript
57
57
58
58
e.g. [eslint-plugin-json-files](https://www.npmjs.com/package/eslint-plugin-json-files), [eslint-plugin-json-es](https://www.npmjs.com/package/eslint-plugin-json-es)
59
59
60
60
These plugins use the same AST as JavaScript for linting.
61
61
62
-
Since the plugin uses the same AST as JavaScript, it may not report syntax that is not available in JSON (e.g. `1 + 1`). Also, ESLint core rules and other plugin rules can false positives (e.g. [quote-props](https://eslint.org/docs/rules/quote-props) rule reports quote on keys), which can complicate the configuration.
62
+
Since the plugin uses the same AST as JavaScript, it may not report syntax that is not available in JSON (e.g. `1 + 1`). Also, ESLint core rules and other plugin rules can false positives (e.g. [quote-props](https://eslint.org/docs/rules/quote-props) rule reports quote on keys), which can complicate the your configuration.
63
63
64
64
The AST used by **eslint-plugin-jsonc** is similar to JavaScript AST, but with a different node name. This will prevent false positives. This means that it can be easily used in combination with other plugins.
65
65
@@ -205,8 +205,22 @@ The rules with the following star :star: are included in the config.
205
205
<!--RULES_TABLE_END-->
206
206
<!--RULES_SECTION_END-->
207
207
208
+
## :rocket: To Do More Verification
209
+
210
+
### Verify using JSON Schema
211
+
212
+
You can verify using JSON Schema by checking and installing [eslint-plugin-json-schema-validator].
213
+
214
+
### Verify the [Vue I18n] message resource files
215
+
216
+
You can verify the message files by checking and installing [@intlify/eslint-plugin-vue-i18n].
217
+
208
218
<!--DOCS_IGNORE_START-->
209
219
220
+
## :traffic_light: Semantic Versioning Policy
221
+
222
+
**eslint-plugin-jsonc** follows [Semantic Versioning](http://semver.org/) and [ESLint's Semantic Versioning Policy](https://github.com/eslint/eslint#semantic-versioning-policy).
223
+
210
224
## :beers: Contributing
211
225
212
226
Welcome contributing!
@@ -237,3 +251,6 @@ See the [LICENSE](LICENSE) file for license rights and limitations (MIT).
Copy file name to clipboardExpand all lines: docs/README.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,9 +39,9 @@ Moreover, You can do the same linting using the extended rules of the ESLint cor
39
39
40
40
The parser package used by this plugin is [jsonc-eslint-parser].
41
41
42
-
###How is it different from other JSON plugins?
42
+
##:question: How is it different from other JSON plugins?
43
43
44
-
####Plugins that Do Not use AST
44
+
### Plugins that do not use AST
45
45
46
46
e.g. [eslint-plugin-json](https://www.npmjs.com/package/eslint-plugin-json)
47
47
@@ -53,13 +53,13 @@ Also, most plugins don't support JSON5.
53
53
54
54
**eslint-plugin-jsonc** works by providing AST and source code text to ESLint.
55
55
56
-
####Plugins that use the same AST as JavaScript
56
+
### Plugins that use the same AST as JavaScript
57
57
58
58
e.g. [eslint-plugin-json-files](https://www.npmjs.com/package/eslint-plugin-json-files), [eslint-plugin-json-es](https://www.npmjs.com/package/eslint-plugin-json-es)
59
59
60
60
These plugins use the same AST as JavaScript for linting.
61
61
62
-
Since the plugin uses the same AST as JavaScript, it may not report syntax that is not available in JSON (e.g. `1 + 1`). Also, ESLint core rules and other plugin rules can false positives (e.g. [quote-props](https://eslint.org/docs/rules/quote-props) rule reports quote on keys), which can complicate the configuration.
62
+
Since the plugin uses the same AST as JavaScript, it may not report syntax that is not available in JSON (e.g. `1 + 1`). Also, ESLint core rules and other plugin rules can false positives (e.g. [quote-props](https://eslint.org/docs/rules/quote-props) rule reports quote on keys), which can complicate the your configuration.
63
63
64
64
The AST used by **eslint-plugin-jsonc** is similar to JavaScript AST, but with a different node name. This will prevent false positives. This means that it can be easily used in combination with other plugins.
65
65
@@ -71,6 +71,16 @@ See [User Guide](./user-guide/README.md).
71
71
72
72
See [Available Rules](./rules/README.md).
73
73
74
+
## :rocket: To Do More Verification
75
+
76
+
### Verify using JSON Schema
77
+
78
+
You can verify using JSON Schema by checking and installing [eslint-plugin-json-schema-validator].
79
+
80
+
### Verify the [Vue I18n] message resource files
81
+
82
+
You can verify the message files by checking and installing [@intlify/eslint-plugin-vue-i18n].
83
+
74
84
## :couple: Related Packages
75
85
76
86
-[eslint-plugin-yml](https://github.com/ota-meshi/eslint-plugin-yml) ... ESLint plugin for YAML.
@@ -88,3 +98,6 @@ See the [LICENSE](LICENSE) file for license rights and limitations (MIT).
0 commit comments