Skip to content

Commit

Permalink
feat(eslint): add linting rules for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gracetxgao committed Sep 25, 2024
1 parent d33ae96 commit 2137247
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = {
caseInsensitive: false
}
}
],
]
}
},
{
Expand Down
27 changes: 27 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"eslint": "^8.57.0",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-jasmine": "^4.2.1",
"eslint-plugin-jest": "^28.8.3",
"eslint-plugin-jsdoc": "^50.2.2",
"eslint-plugin-modules-newlines": "^0.0.7",
"eslint-plugin-prefer-arrow": "^1.2.3",
Expand Down
7 changes: 7 additions & 0 deletions tools/eslint/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module.exports = {
plugins: [
'modules-newlines',
'jasmine',
'jest',
"eslint-plugin-import",
"eslint-plugin-jsdoc",
"eslint-plugin-prefer-arrow",
Expand Down Expand Up @@ -241,6 +242,12 @@ module.exports = {
"@stylistic/type-annotation-spacing": "error",

// custom
"jest/max-nested-describe": [
"warn",
{
"max": 4
},
],
'@typescript-eslint/no-unused-vars': 'off',
'prefer-arrow/prefer-arrow-functions': [
'error',
Expand Down
1 change: 1 addition & 0 deletions tools/eslint/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"eslint": "0.0.0-PLACEHOLDER",
"eslint-plugin-import": "0.0.0-PLACEHOLDER",
"eslint-plugin-jasmine": "0.0.0-PLACEHOLDER",
"eslint-plugin-jest": "0.0.0-PLACEHOLDER",
"eslint-plugin-jsdoc": "0.0.0-PLACEHOLDER",
"eslint-plugin-modules-newlines": "0.0.0-PLACEHOLDER",
"eslint-plugin-prefer-arrow": "0.0.0-PLACEHOLDER"
Expand Down

0 comments on commit 2137247

Please sign in to comment.