Giter VIP home page Giter VIP logo

Comments (5)

egamma avatar egamma commented on August 16, 2024

https://code.visualstudio.com/Docs/languages/javascript#_javascript-linters-eslint-jshint

from vscode-eslint.

abhilashsajeev avatar abhilashsajeev commented on August 16, 2024

Yes sorry for that but for eslint the plugin support does not seem to work. I 've tried with esline-plugin-react.

from vscode-eslint.

egamma avatar egamma commented on August 16, 2024

If I understand you correctly you want to use a particular eslint plugin (eslint-plugin-react), but this doesn't seem to work or you haven't found a way to configure the vscode-eslint extension to use this plugin?

from vscode-eslint.

abhilashsajeev avatar abhilashsajeev commented on August 16, 2024

Yes.
It shows the plugin not found message. But my plugin is installed in npm.

{

          plugins: [
            "react"
          ],
          ecmaFeatures: {
            'modules': true,
            "jsx": true
          },
          rules: {
            "react/display-name": 0,
            "react/forbid-prop-types": 0,
            "react/jsx-boolean-value": 1,
            "react/jsx-closing-bracket-location": 0,
            "react/jsx-curly-spacing": 1,
            "react/jsx-indent-props": 1,
            "react/jsx-key": 1,
            "react/jsx-max-props-per-line": 1,
            "react/jsx-no-bind": 1,
            "react/jsx-no-duplicate-props": 1,
            "react/jsx-no-literals": 1,
            "react/jsx-no-undef": 1,
            "react/jsx-quotes": 0,
            "react/jsx-sort-prop-types": 1,
            "react/jsx-sort-props": 1,
            "react/jsx-uses-react": 1,
            "react/jsx-uses-vars": 1,
            "react/no-danger": 0,// because of image tag
            "react/no-did-mount-set-state": 1,
            "react/no-did-update-set-state": 1,
            "react/no-direct-mutation-state": 1,
            "react/no-multi-comp": 1,
            "react/no-set-state": 0,
            "react/no-unknown-property": 1,
            "react/prefer-es6-class": 0,
            "react/prop-types": 1,
            "react/react-in-jsx-scope": 1,
            "react/require-extension": 0,
            "react/self-closing-comp": 1,
            "react/sort-comp": 1,
            "react/wrap-multilines": 1,
            "indent": [2, 2, {"SwitchCase": 1}],
            "global-require": 2,
            "one-var": [2, "never"],

          },
          globals: {
              'React':true,
              'const': true
          },
          envs: [
              'browser',
              'es6',
              'amd',
              'commonjs',
              'node'
          ]
      }

from vscode-eslint.

dbaeumer avatar dbaeumer commented on August 16, 2024

Duplicates #2

from vscode-eslint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.