eslint-plugin-json-format icon indicating copy to clipboard operation
eslint-plugin-json-format copied to clipboard

Format Error: unexpected "\r"

Open syncmaxim opened this issue 2 years ago • 0 comments
trafficstars

Hello, I'm facing this issue. Can't get why it is happens. Formatting on save works fine but this thing...

Could someone help please?

image

.vscode/settings.json

{ "json.schemaDownload.enable": true, "[html]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint", "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, "editor.formatOnSave": false }, "[typescript]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint", "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, "editor.formatOnSave": false }, "[json]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint", "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, "editor.formatOnSave": false }, "eslint.validate": ["json"] }

.eslintrc

{ "root": true, "ignorePatterns": ["projects/**/*"], "overrides": [ { "files": ["*.ts"], "extends": [ "eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:@angular-eslint/recommended", "plugin:@angular-eslint/template/process-inline-templates", "plugin:prettier/recommended" ], "rules": { "@angular-eslint/directive-selector": [ "error", { "type": "attribute", "prefix": "apl", "style": "camelCase" } ], "@angular-eslint/component-selector": [ "error", { "type": "element", "prefix": "apl", "style": "kebab-case" } ] } }, { "files": ["*.html"], "extends": ["plugin:@angular-eslint/template/recommended"], "rules": {} }, { "files": ["*.html"], "excludedFiles": ["*inline-template-*.component.html"], "extends": ["plugin:prettier/recommended"], "rules": { "prettier/prettier": ["error", { "parser": "angular" }] } } ], "plugins": [ "eslint-plugin-json-format" ], "settings": { "json/sort-package-json": "standard", "json/ignore-files": ["**/package-lock.json"] } }

.prettierrc.json

{ "endOfLine": "auto", "tabWidth": 2, "useTabs": false, "singleQuote": false, "semi": true, "bracketSpacing": true, "arrowParens": "avoid", "trailingComma": "es5", "bracketSameLine": false, "printWidth": 80 }

Can provide other files if necessary.

syncmaxim avatar Jul 20 '23 15:07 syncmaxim