-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Linebreak error when using with nest new
project
#641
Comments
|
|
closed accidentally. |
|
What is |
and .prettierrc:
With it, there's a lot of red trails in my code: But when I set option of CLI output: |
Don't paste codes here, how to reproduce in your reproduction repo? |
Don't you have any errors when you open up the project and install dependencies? |
I need what commands to reproduce before involving. |
|
|
Yep |
I solve this issue writing this in my .eslintrc.js file, I paste all code: module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
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"}],
},
}; |
this works perfectly |
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)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.
The text was updated successfully, but these errors were encountered: