Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to leave no space between keys?? #473

Closed
carvalhoviniciusluiz opened this issue Jun 23, 2022 · 1 comment
Closed

How to leave no space between keys?? #473

carvalhoviniciusluiz opened this issue Jun 23, 2022 · 1 comment

Comments

@carvalhoviniciusluiz
Copy link

What version of eslint are you using?
8.18.0

What version of prettier are you using?
2.7.1

What version of eslint-plugin-prettier are you using?
4.0.0

Please paste any applicable config files that you're using (e.g. .prettierrc or .eslintrc files)

// eslintrc.js

module.exports = {
  parser: '@typescript-eslint/parser',
  parserOptions: {
    project: 'tsconfig.json',
    sourceType: 'module',
  },
  plugins: ['@typescript-eslint/eslint-plugin', 'import-helpers'],
  extends: [
    'plugin:@typescript-eslint/recommended',
    'plugin:prettier/recommended',
  ],
  root: true,
  env: {
    node: true,
    jest: true,
  },
  ignorePatterns: ['.eslintrc.js'],
  rules: {
    '@typescript-eslint/explicit-function-return-type': 'off',
    '@typescript-eslint/explicit-module-boundary-types': 'off',
    '@typescript-eslint/interface-name-prefix': 'off',
    '@typescript-eslint/no-explicit-any': 'off',
    '@typescript-eslint/arrow-parens': 'off',
    "prettier/prettier": "error",
    'import-helpers/order-imports': [
      'warn',
      {
        newlinesBetween: 'never',
        groups: [
          '/^@/',
          'module',
          '/^~/',
          ['parent', 'sibling', 'index']
        ],
        alphabetize: { 'order': 'asc', 'ignoreCase': false }
      }
    ]
  }
};
// .prettierrc

{
  "singleQuote": true,
  "jsxSingleQuote": true,
  "quoteProps": "consistent",
  "trailingComma": "none",
  "useTabs": false,
  "tabWidth": 2,
  "bracketSpacing": true,
  "jsxBracketSameLine": false,
  "arrowParens": "avoid",
  "endOfLine": "lf",
  "printWidth": 120,
  "semi": true
}

What source code are you linting?
Captura de Tela 2022-06-23 às 14 58 59

What did you expect to happen?
Captura de Tela 2022-06-23 às 15 04 47

What actually happened?
when the file is saved there is a space between the braces that must be removed because eslint keeps saying it is wrong

I want to configure eslint so there is no space between the braces

@JounQin
Copy link
Member

JounQin commented Jun 27, 2022

Please provide a runnable reproduction, this should be related to your editor's setting, not related to this plugin at all.

@JounQin JounQin closed this as not planned Won't fix, can't repro, duplicate, stale Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants