Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Improve integration with eslint-config-airbnb and plugins on which it depends #287

@kripod

Description

@kripod

Currently, I'm using the following .eslintrc.json file for my TypeScript React projects:

{
  "extends": [
    "airbnb",
    "plugin:prettier/recommended",
    "prettier/react",
    "prettier/typescript"
  ],
  "parser": "eslint-plugin-typescript/parser",
  "plugins": ["typescript"],
  "env": {
    "browser": true
  },
  "settings": {
    "import/resolver": {
      "node": {
        "extensions": [".ts", ".tsx", ".js", ".jsx"]
      }
    }
  },
  "overrides": [
    {
      "files": ["**/*.ts", "**/*.tsx"],
      "rules": {
        "typescript/no-unused-vars": "error",
        "react/jsx-filename-extension": ["error", { "extensions": [".tsx"] }]
      }
    }
  ]
}

For example, it would be great if I could get rid of the overrides by fixing false-positives around typescript/no-unused-vars and possibly co-operating with the maintainers of eslint-config-airbnb for changing the react/jsx-filename-extension rule.

I'm not sure how, but the settings section may also be eliminated by an officially supported integration with eslint-import-resolver-typescript.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions