Skip to content

Commit

Permalink
Merge pull request #15 from vcian/feature/nestjs
Browse files Browse the repository at this point in the history
some rule add and remove from eslint
  • Loading branch information
palaklive authored Feb 19, 2024
2 parents 14fd7b3 + 830d165 commit a56f849
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions config/nestjs/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,18 @@ module.exports = {
{ selector: 'typeProperty', format: null },
{ selector: 'typeLike', format: ['StrictPascalCase'] },
{ selector: 'enumMember', format: ['UPPER_CASE'] },
{
selector: 'interface',
format: ['StrictPascalCase'],
prefix: ['I'],
},
],
'no-useless-return': 'error',
'no-constant-condition': 'warn',
'max-len': [
'error',
{
code: 200,
code: 120,
},
],
'max-lines': [
Expand All @@ -70,7 +75,6 @@ module.exports = {
},
],
'no-console': 'error',
'no-mixed-operators': 'error',
'keyword-spacing': 'error',
'no-nested-ternary': 2,
'no-undef': 'error',
Expand Down
2 changes: 1 addition & 1 deletion config/nestjs/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"singleQuote": true,
"semi": true,
"tabWidth": 2,
"trailingComma": "all",
"trailingComma": "es5",
"printWidth": 80,
"endOfLine": "auto"
}

0 comments on commit a56f849

Please sign in to comment.