Skip to content

Commit

Permalink
Update ESLint rules: Added enhancements and removed redundancies
Browse files Browse the repository at this point in the history
  • Loading branch information
vc-lbmadesia committed Feb 19, 2024
1 parent f36937c commit cf9af6d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 2.1.2
## 2.1.0

_Feb 19, 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.1.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 cf9af6d

Please sign in to comment.