mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Merge pull request #4209 from DSpace/backport-2317-to-dspace-8_x
[Port dspace-8_x] Update ESLint configuration for json5 files
This commit is contained in:
@@ -12,7 +12,6 @@
|
|||||||
"eslint-plugin-rxjs",
|
"eslint-plugin-rxjs",
|
||||||
"eslint-plugin-simple-import-sort",
|
"eslint-plugin-simple-import-sort",
|
||||||
"eslint-plugin-import-newlines",
|
"eslint-plugin-import-newlines",
|
||||||
"eslint-plugin-jsonc",
|
|
||||||
"dspace-angular-ts",
|
"dspace-angular-ts",
|
||||||
"dspace-angular-html"
|
"dspace-angular-html"
|
||||||
],
|
],
|
||||||
@@ -302,10 +301,13 @@
|
|||||||
"*.json5"
|
"*.json5"
|
||||||
],
|
],
|
||||||
"extends": [
|
"extends": [
|
||||||
"plugin:jsonc/recommended-with-jsonc"
|
"plugin:jsonc/recommended-with-json5"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"no-irregular-whitespace": "error",
|
// The ESLint core no-irregular-whitespace rule doesn't work well in JSON
|
||||||
|
// See: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-irregular-whitespace.html
|
||||||
|
"no-irregular-whitespace": "off",
|
||||||
|
"jsonc/no-irregular-whitespace": "error",
|
||||||
"no-trailing-spaces": "error",
|
"no-trailing-spaces": "error",
|
||||||
"jsonc/comma-dangle": [
|
"jsonc/comma-dangle": [
|
||||||
"error",
|
"error",
|
||||||
|
Reference in New Issue
Block a user