Skip to content
Prev Previous commit
Next Next commit
build(lint): adjust settings for eslint
  • Loading branch information
arjen.althoff committed Jul 6, 2021
commit 47884598ac35992e3300b0b93623cb68212b92d1
9 changes: 8 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx"],
"plugins": ["@nrwl/nx", "testing-library"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
Expand Down Expand Up @@ -109,6 +109,13 @@
{
"files": ["*.ts", "*.js"],
"extends": ["prettier"]
},
{
"files": ["*.spec.ts"],
"extends": ["plugin:testing-library/angular"],
"rules": {
"testing-library/prefer-explicit-assert": "error"
}
}
]
}
8 changes: 1 addition & 7 deletions apps/example-app/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,8 @@
"env": {
"jest": true
},
"extends": [
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:testing-library/angular",
"plugin:jest-dom/recommended"
],
"extends": ["plugin:jest/recommended", "plugin:jest/style", "plugin:jest-dom/recommended"],
"rules": {
"testing-library/prefer-explicit-assert": "error",
"jest/consistent-test-it": ["error"],
"jest/expect-expect": "off"
}
Expand Down
11 changes: 11 additions & 0 deletions projects/jest-utils/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@
]
}
},
{
"files": ["*.spec.ts"],
"env": {
"jest": true
},
"extends": ["plugin:jest/recommended", "plugin:jest/style", "plugin:jest-dom/recommended"],
"rules": {
"jest/consistent-test-it": ["error"],
"jest/expect-expect": "off"
}
},
{
"files": ["*.html"],
"extends": ["plugin:@nrwl/nx/angular-template"],
Expand Down
8 changes: 1 addition & 7 deletions projects/testing-library/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,8 @@
"env": {
"jest": true
},
"extends": [
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:testing-library/angular",
"plugin:jest-dom/recommended"
],
"extends": ["plugin:jest/recommended", "plugin:jest/style", "plugin:jest-dom/recommended"],
"rules": {
"testing-library/prefer-explicit-assert": "error",
"jest/consistent-test-it": ["error"],
"jest/expect-expect": "off"
}
Expand Down