Skip to content

Commit

Permalink
Merge pull request #17 from vcian/feature/nestjs
Browse files Browse the repository at this point in the history
Update ESLint rules: Added enhancements and removed redundancies"
  • Loading branch information
palaklive committed Feb 19, 2024
2 parents dfd9025 + cf9af6d commit 9f4371f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 2.1.0

_Feb 19, 2024_

- add interface naming convention rule for nestjs
- remove mix-operator rule for Nest.
- change max-length from 200 to 120
- add es5 value in trailingComma

## 2.0.2

_Jan 9, 2024_
Expand Down
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"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vcian/lint-sage",
"version": "2.0.2",
"version": "2.1.0",
"description": "This package designed to simplify the configuration of your projects. This package automates the setup of essential tools and configurations to ensure a clean and consistent codebase.",
"bin": {
"lint-sage": "index.js"
Expand Down

0 comments on commit 9f4371f

Please sign in to comment.