JaroslawPokropinski / eslint-plugin-strict-null-checks

Eslint plugin that aims to reproduce strictNullCheck from tsconfig for easier migration

Repository from Github https://github.comJaroslawPokropinski/eslint-plugin-strict-null-checksRepository from Github https://github.comJaroslawPokropinski/eslint-plugin-strict-null-checks

Multiple projects

jmeinlschmidt opened this issue · comments

I have multiple projects in my repository with the following structure. I was trying to get this plugin working in both root level (for all of individual projects) or even for single project in src folder. In both cases, without success. I'm receiving no warning messages even though I should.

my_project/
├── libs/
└── src/
    ├── app/
    ├── .eslintrc.json
    ├── tsconfig.json
    ├── tsconfig.app.json
    └── tsconfig.strictNullChecks.json
.eslintrc.json
tsconfig.json

current configuration:

// my_project/src/.eslintrc.json

{
  "extends": ["../.eslintrc.json"],
  "overrides": [
    {
      "files": [ "*.ts" ],
      "parserOptions": {
        "project": [
          "src/tsconfig.strictNullChecks.json"
        ]
      },
      "plugins": [ "strict-null-checks" ],
      "rules": {
        "strict-null-checks/all": "warn"
      }
    }
  ]
}
// my_project/src/tsconfig.strictNullChecks.json

{
  "compilerOptions": {
    "strictNullChecks": true
  }
}
// my_project/src/tsconfig.json

{
  "extends": "../tsconfig.json",
  "include": [],
  "files": [],
  "references": [
    {
      "path": "./tsconfig.app.json"
    },
    {
      "path": "./tsconfig.spec.json"
    }
  ]
}
// my_project/src/tsconfig.app.json

{
  "extends": "../tsconfig.json",
  "compilerOptions": {
    "outDir": "../out-tsc/app",
    "strictNullChecks": false,
  },
  "files": [
    "main.ts",
    "polyfills.ts"
  ],
}

Any ideas how to get this plugin working? I can provide some minimalistic reproduction if needed. Thank you in advance!

commented

@jmeinlschmidt why did this get closed, what was the fix?
I am experiencing this same issue and not sure how to resolve this