Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
feat(eslint-plugin): [no-unnecessary-condition][strict-boolean-expres…
…sions] add option to make the rules error on files without `strictNullChecks` turned on (#2345)
- Loading branch information
Showing
with
263 additions
and 43 deletions.
- +25 −3 packages/eslint-plugin/docs/rules/no-unnecessary-condition.md
- +75 −35 packages/eslint-plugin/docs/rules/strict-boolean-expressions.md
- +37 −3 packages/eslint-plugin/src/rules/no-unnecessary-condition.ts
- +31 −1 packages/eslint-plugin/src/rules/strict-boolean-expressions.ts
- 0 packages/eslint-plugin/tests/fixtures/unstrict/file.ts
- 0 packages/eslint-plugin/tests/fixtures/unstrict/react.tsx
- +15 −0 packages/eslint-plugin/tests/fixtures/unstrict/tsconfig.json
- +39 −0 packages/eslint-plugin/tests/rules/no-unnecessary-condition.test.ts
- +41 −1 packages/eslint-plugin/tests/rules/strict-boolean-expressions.test.ts
Empty file.
Empty file.
@@ -0,0 +1,15 @@ | ||
{ | ||
"compilerOptions": { | ||
"jsx": "preserve", | ||
"target": "es5", | ||
"module": "commonjs", | ||
"strict": false, | ||
"esModuleInterop": true, | ||
"lib": ["es2015", "es2017", "esnext"], | ||
"experimentalDecorators": true | ||
}, | ||
"include": [ | ||
"file.ts", | ||
"react.tsx" | ||
] | ||
} |
Oops, something went wrong.