title: Delete CR only for TS/TSX files - Prettier ESLint on VSCode 1.46
body: <p>I Created a React project using Create React Apps' Typescript template, added necessary plugins for ESLint <code>6.8.0</code> and configured ESLint and prettier together but whenever I am editing <code>.ts</code> or <code>.tsx</code> files I get the ESLint Error <code>Delete </code>␍⏎␍⏎``</p>
  <p>I have both ESLint and Prettier extensions installed in VSCode</p>
  <p>I checked various other posts on SO and I tried most of the settings mentioned,</p>
  <p>I added this to my <code>.eslintrc.json</code> file</p>
  <pre><code>&quot;prettier/prettier&quot;: [
      &quot;error&quot;,
      {
          &quot;endOfLine&quot;: &quot;auto&quot;
      },
      { &quot;usePrettierrc&quot;: true }
  ],
  </code></pre>
  <p>and here is my <code>.prettierrc</code></p>
  <pre><code>{
      &quot;trailingComma&quot;: &quot;es5&quot;,
      &quot;tabWidth&quot;: 2,
      &quot;useTabs&quot;: true,
      &quot;semi&quot;: true,
      &quot;singleQuote&quot;: true,
      &quot;jsxBracketSameLine&quot;: false,
      &quot;printWidth&quot;: 80,
      &quot;endOfLine&quot;: &quot;auto&quot;
  }
  </code></pre>
  <p>But Still I get a lint error whenver I create a new line in a .ts/.tsx file</p>
  <p><a href="https://i.stack.imgur.com/DL7c2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DL7c2.png" alt="line error" /></a></p>
  <p><a href="https://i.stack.imgur.com/vnU5T.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vnU5T.png" alt="eslint problem in vscode" /></a></p>
  <p>I changed everything in my VSCode settings to use <code>CRLF</code> (I am on Windows) with <code>&quot;files.eol&quot;: &quot;\r\n&quot;,</code></p>
  <p>Even if I try with different line endings, I get similar errors.</p>
  <p>If I do</p>
  <pre><code>&quot;prettier/prettier&quot;: [
      &quot;error&quot;,
      {
          &quot;endOfLine&quot;: &quot;lf&quot;
      },
      { &quot;usePrettierrc&quot;: true }
  ],
  </code></pre>
  <p><a href="https://i.stack.imgur.com/xQvfQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xQvfQ.png" alt="eol lf" /></a></p>
  <p>If I set <code>endOfLine : crlf</code> its the same error as auto!</p>
  <p>For what its worth here is my entire <code>.eslintrc.json</code></p>
  <pre><code>{
      &quot;env&quot;: {
          &quot;browser&quot;: true,
          &quot;es6&quot;: true,
          &quot;jest&quot;: true
      },
      &quot;extends&quot;: [
          &quot;standard&quot;,
          &quot;plugin:react/recommended&quot;,
          &quot;plugin:@typescript-eslint/recommended&quot;,
          &quot;prettier/@typescript-eslint&quot;,
          &quot;plugin:prettier/recommended&quot;,
          &quot;plugin:jsx-a11y/recommended&quot;
      ],
      &quot;globals&quot;: {
          &quot;Atomics&quot;: &quot;readonly&quot;,
          &quot;SharedArrayBuffer&quot;: &quot;readonly&quot;,
          &quot;__DEV__&quot;: &quot;readonly&quot;
      },
      &quot;parser&quot;: &quot;@typescript-eslint/parser&quot;,
      &quot;parserOptions&quot;: {
          &quot;ecmaFeatures&quot;: {
              &quot;jsx&quot;: true
          },
          &quot;project&quot;: &quot;tsconfig.json&quot;,
          &quot;tsconfigRootDir&quot;: &quot;.&quot;
      },
      &quot;plugins&quot;: [&quot;react&quot;, &quot;react-hooks&quot;, &quot;@typescript-eslint&quot;, &quot;prettier&quot;],
      &quot;rules&quot;: {
          &quot;camelcase&quot;: &quot;off&quot;,
          &quot;no-unused-expressions&quot;: &quot;off&quot;,
          &quot;react/prop-types&quot;: &quot;off&quot;,
          &quot;react/jsx-one-expression-per-line&quot;: &quot;off&quot;,
          &quot;react-hooks/rules-of-hooks&quot;: &quot;error&quot;,
          &quot;react-hooks/exhaustive-deps&quot;: &quot;warn&quot;,
          &quot;react/jsx-filename-extension&quot;: [
              1,
              {
                  &quot;extensions&quot;: [&quot;.tsx&quot;]
              }
          ],
          &quot;@typescript-eslint/no-unused-vars&quot;: [
              &quot;error&quot;,
              {
                  &quot;argsIgnorePattern&quot;: &quot;_&quot;
              }
          ],
          &quot;@typescript-eslint/explicit-function-return-type&quot;: [
              &quot;error&quot;,
              {
                  &quot;allowExpressions&quot;: true
              }
          ],
  
          // Remove after
          &quot;@typescript-eslint/no-empty-interface&quot;: &quot;off&quot;,
          &quot;jsx-a11y/no-static-element-interactions&quot;: &quot;off&quot;,
          &quot;jsx-a11y/click-events-have-key-events&quot;: &quot;off&quot;,
          &quot;prettier/prettier&quot;: [
              &quot;error&quot;,
              {
                  &quot;endOfLine&quot;: &quot;crlf&quot;
              },
              { &quot;usePrettierrc&quot;: true }
          ],
  
          // Remove After
  
          &quot;jsx-quotes&quot;: &quot;warn&quot;,
          &quot;import/prefer-default-export&quot;: &quot;off&quot;,
          &quot;import/extensions&quot;: [
              &quot;error&quot;,
              &quot;ignorePackages&quot;,
              {
                  &quot;ts&quot;: &quot;never&quot;,
                  &quot;tsx&quot;: &quot;never&quot;
              }
          ]
      },
      &quot;settings&quot;: {
          &quot;import/resolver&quot;: {
              &quot;typescript&quot;: {}
          },
          &quot;react&quot;: {
              &quot;version&quot;: &quot;detect&quot;
          }
      }
  }
  </code></pre>