jsdrupal / drupal-admin-ui

This is an admin UI for Drupal, built with JavaScript & React. ⬅️✌️➡️
Other
236 stars 91 forks source link

Duplicate parse and parserOptions in .eslintrc.json #752

Closed martinfrances107 closed 5 years ago

martinfrances107 commented 5 years ago

While converting drupal/admin-ui-utilities into typescript I noticed this little duplication error.

My attempt to convert code section into typescript -- by their nature become hard to review.

So I am splitting this issue off into a small contained task.

Here is the code form eslintrc.json which show where to duplication is

{
  "extends": [
    "airbnb",
    "plugin:prettier/recommended",
    "plugin:jsx-a11y/recommended"
  ],
  "parser": "typescript-eslint-parser",
  "parserOptions": {
    "jsx": true
  },
  "parser": "babel-eslint",
  "parserOptions": {
      "ecmaVersion": 6,
      "ecmaFeatures": {
          "jsx": true
      }
  },

I am about to create a PR