Skip to content

Commit

Permalink
fix(eslint-config): fixed tests rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurchishin committed Sep 27, 2023
1 parent da49af7 commit 5b83bfb
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@
"release-it": "16.2.0",
"typescript": "5.2.2"
},
"prettier": "@anylint/prettier-config",
"version": "0.1.3"
}
"prettier": "@anylint/prettier-config"
}
2 changes: 1 addition & 1 deletion packages/commitlint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@
"access": "public",
"@anylint:registry": "https://registry.npmjs.org"
}
}
}
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@
"access": "public",
"@anylint:registry": "https://registry.npmjs.org"
}
}
}
2 changes: 1 addition & 1 deletion packages/eslint-config/src/shared/typescript.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ module.exports = {
'@typescript-eslint/naming-convention': [
'error',
{
selector: ['accessor', 'method', 'parameterProperty', 'property', 'function', 'parameter'],
selector: ['accessor', 'method', 'parameterProperty', 'classProperty', 'typeProperty', 'function', 'parameter'],
format: ['camelCase', 'PascalCase'],
leadingUnderscore: 'allow',
trailingUnderscore: 'forbid',
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config/src/tests.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ module.exports = {
'@typescript-eslint/no-confusing-void-expression': 'off',
'id-length': 'off',
'unicorn/better-regexp': 'off',
'max-statements': 'off',
},
}
2 changes: 1 addition & 1 deletion packages/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
"access": "public",
"@anylint:registry": "https://registry.npmjs.org"
}
}
}
4 changes: 3 additions & 1 deletion packages/prettier-config/src/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "strict",
"endOfLine": "lf",
"singleAttributePerLine": true
"singleAttributePerLine": true,
"rangeStart": 0,
"rangeEnd": 120
}

0 comments on commit 5b83bfb

Please sign in to comment.