Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use custom parser? babel-parser #10

Open
addingama opened this issue May 16, 2021 · 1 comment
Open

How to use custom parser? babel-parser #10

addingama opened this issue May 16, 2021 · 1 comment

Comments

@addingama
Copy link

I'm trying to integrate eslint4b with codemirror linting addon using codemirror-lint-eslint library.

I keep getting this error

image

This is the configuration

var defaultConfig = {
    "ecmaFeatures": {},
    "env": {
        "browser": true,
        "node": true,
        "amd": false,
        "mocha": false,
        "jasmine": false,
        "es2021": true
    },
    "globals": {
      "browser": true,
      "node": true
    },
    "extends": [
      "plugin:react/recommended",
      "airbnb",
      "plugin:prettier/recommended",
      "plugin:import/errors",
      "plugin:import/warnings",
      "plugin:react-hooks/recommended",
      "plugin:react-redux/recommended",
      "plugin:promise/recommended",
      "plugin:jsx-a11y/recommended"
    ],
    "parser": "babel-eslint",
    "parserOptions": {
      "ecmaFeatures": {
        "jsx": true
      },
      "ecmaVersion": 12,
      "sourceType": "module"
    },
    "plugins": ["react", "simple-import-sort", "better-styled-components"],
    "rules": {
       // ... eslint rules
    }
  }

This is how I use eslint4b
image

Any pointer will be really helpful.

Thank you

@yfwz100
Copy link

yfwz100 commented Jul 28, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants