prettier / prettier/eslint-plugin-prettier
Linebreak error when using with `nest new` project
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 3.7k
- Forks
- 212
- PR merge metrics
- No merged PRs in 30d
Description
What version of eslint are you using?
8.42.0
What version of prettier are you using?
3.0.0
What version of eslint-plugin-prettier are you using?
5.0.0
Please paste any applicable config files that you're using (e.g. .prettierrc or .eslintrc files)
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'prettier/prettier': ['error', { endOfLine: 'auto' }],
},
};
{
"singleQuote": true,
"trailingComma": "all",
"endOfLine": "auto"
}
What source code are you linting?
https://github.com/Serpentarius13/nest-eslint-error.
What did you expect to happen?
Linting for endOfLine choosing should turn itself off when providing such a setting. However (im using Webstorm) even after few reloads, cache clean, npm reinstall with node_modules removal, error still happens to me. Even with all possible fixes I've looked upon, its still happening:
What actually happened?
Linting for EOL is not turning off and there's red underscores everywhere until I actually lint.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported nest new project and its .eslintrc.js and .prettierrc files, using ESLint 8.42.0, Prettier 3.0.0, and eslint-plugin-prettier 5.0.0. Compare the reported WebStorm behavior with linting the linked source project directly; done means determining whether endOfLine: auto is honored and whether the issue belongs to this plugin.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100