by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:07
    mysticatea synchronize #13416
  • 11:07

    mysticatea on optional-chaining

    update prefer-arrow-callback (compare)

  • 10:40
    mysticatea synchronize #13416
  • 10:40

    mysticatea on optional-chaining

    update wrap-iife (compare)

  • 10:12
    mysticatea synchronize #13416
  • 10:12

    mysticatea on optional-chaining

    update new-cap (compare)

  • 10:03
    mysticatea synchronize #13416
  • 10:03

    mysticatea on optional-chaining

    update a comment in no-implicit… update comments in no-extra-bind remove unnecessary change from … and 1 more (compare)

  • 00:47
    eslint[bot] labeled #12619
  • 00:47
    eslint[bot] labeled #12633
  • 00:47
    eslint[bot] commented #13364
  • 00:47
    eslint[bot] locked #12633
  • 00:47
    eslint[bot] labeled #13364
  • 00:47
    eslint[bot] labeled #12732
  • 00:47
    eslint[bot] closed #13364
  • 00:47
    eslint[bot] locked #12732
  • Jul 01 12:57
    nickdeis commented #13450
  • Jul 01 12:34
    mdjermanovic labeled #13451
  • Jul 01 12:34
    mdjermanovic labeled #13451
  • Jul 01 12:34
    mdjermanovic opened #13451
Roy Sutton
@webOS101
Reminder: This chat is moving to Discord! Please visit https://eslint.org/chat to join the Discord group.
Roberto Chavez Jr
@rchavezj
I appreciate the response Roy. I don't see it as jerky but upfront since people lately in this generation either ignore or cut ties with no warning which is far jerkier. You're response is very helpful and plan on looking more into discord.
Roy Sutton
@webOS101
:+1:
Hamilton Chevez
@hchev001
To anyone who can help, I'm having a problem that I haven't had much success finding other's who've had the same problem via google and none of my coworkers have had it, so may be a problem with my system really but who knows
Screen Shot 2020-06-18 at 3.26.34 PM.png
Roy Sutton
@webOS101
You’re linting your node_modules. Don’t do that.
Also, eslint chat moved to Discord.
Add an ignore path of **/node_modules/** and the probably will likely go away.
Hamilton Chevez
@hchev001
Thanks, I appreciate it. I'll look for the Discord chat too
Roy Sutton
@webOS101
*problem, not probably. :P
Gonzalo Javier Mancilla
@gonjavi
good mornig, I have this error here
this.props.createBook(book);
Must use destructuring assigment
Roy Sutton
@webOS101
Reminder: This chat is moving to Discord! Please visit https://eslint.org/chat to join the Discord group.
Kiran Dimble
@dimblek7
My eslint works fine without .eclintrc.json file, but the moment I add { "rules": { "eqeqeq": "off" } }, it starts giving errors like "The keyword 'import' is reserved"
What could be the reason
Kevin Partington
@platinumazure
Reminder: This chat is moving to Discord! Please visit https://eslint.org/chat to join the Discord group.
Nicollas
@Ricas_gitlab

Did someone managed to solve this error:

ESLint couldn't find the config "@typescript-eslint/prettier" to extend from.

Jordan Harband
@ljharb
do you have that package installed locally alongside eslint?
Nicollas
@Ricas_gitlab
@ljharb yes

I've created a simple repo tried with everything I could think of and still getting this. https://gitlab.com/Ricas/apleasure

"lint": "./node_modules/.bin/eslint src --ext ts",

"eslint-plugin-prettier": "3.1.4", "eslint-prettier-config": "1.0.1", "@typescript-eslint/eslint-plugin": "^3.4.0", "@typescript-eslint/parser": "^3.4.0", "eslint": "^7.3.1", "prettier": "^2.0.5",

Jordan Harband
@ljharb
i don't see @typescript-eslint/prettier in there
i see /eslint-plugin and /parser
Nicollas
@Ricas_gitlab
@typescript-eslint/prettier is not a npm package
Jordan Harband
@ljharb
then why are you trying to extend it in your config?
Nicollas
@Ricas_gitlab

It's prettier that provides "@typescript-eslint/prettier" and it's required to extend, so it could disable the lint rules that conflict with the formatting rules.

It should be "prettier/@typescript-eslint" and it was before I changed it trying to fix the issue.

Yves M.
@yvele_gitlab
Hello, I'm facing the same issue as this auto-closed one https://github.com/eslint/eslint/issues/12503#issuecomment-547228033 I'm trying to setup ESLint on mono repos using glob packages/*/src and ESLint tries to parse ESLint configs in packages/foo/node_modules/.. is there a workaround? Looks to me as a bug 🤔should I open a new issue?
1 reply
Jordan Harband
@ljharb
@yvele_gitlab that's not a workaround, that's the solution :-) put it in your .eslintignore file tho
Kunal Shah
@kunalketanshah

I’m not sure what I’m doing incorrectly here.

I have a declaration file called types.d.ts and I’m importng that type in a file called Box.tsx

1 reply
Screenshot 2020-06-30 at 1.43.29 AM.png
Screenshot 2020-06-30 at 1.43.58 AM.png
Screenshot 2020-06-30 at 1.45.20 AM.png
Any idea what I should be doing here?
Lean Junio
@leanjunio
Hey guys, is it possible to get eslint to show errors and warnings without the --fix flag?
Albert
@MrCalifornian_twitter

I'm a bit confused about the way eslint ignores files. I want to ignore all generated files within a directory, but lint the rest of the files/directories at the same level in its folder, so I'm adding the ignored glob (**/generated/*) to .eslintignorebut I get:

You are linting "src/generated", but all of the files matching the glob pattern "src/generated" are ignored.

Any pointers on what I'm missing here?

Albert
@MrCalifornian_twitter
Also, is there a rule that works the same way as function-call-argument-newline, but for parameters/function definitions?
Albert
@MrCalifornian_twitter
for the first one, I had to quote the path in the cli; my shell was expanding it before passing it; still wondering about my second question though
Bar Ziony
@bartzy
I have an .eslintrc.js file and when running eslint with it directly, I get no errors. However, when I run it via CRA (and craco) I get some errors. I don't understand what's the exact eslint config that's running when I'm running via CRA (yarn start). Can I somehow print the eslint config that's currently being used?
Kevin Partington
@platinumazure
Reminder: This chat is moving to Discord! Please visit https://eslint.org/chat to join the Discord group.
luno
@luciano-nascimento
hi
should i configure something on eslint to allow await outside of modules ?
Jordan Harband
@ljharb
should you? no, because that's not valid syntax
Stephanie Kim
@stephykim

Not sure if this is the right place but I get:

Failed to load config "@ljharb" to extend from.

from a node_module's eslint config file when I run my app with eslint-loader (that excludes '/node_modules/'). No errors when I run yarn eslint .. Any idea what could be the issue?

Roy Sutton
@webOS101
@stephykim You are linting node_modules somewhere. Make sure **/node_modules/** is in your ignore list. Also, eslint support moved to Discord.
1 reply
Carson Chen
@orzhtml

eslint --ext .js App.js --fix

Oops! Something went wrong! :(

ESLint: 5.0.1.
ESLint couldn't find the plugin "eslint-plugin-react". This can happen for a couple different reasons:

  1. If ESLint is installed globally, then make sure eslint-plugin-react is also installed globally. A globally-installed ESLint cannot find a locally-installed plugin.

  2. If ESLint is installed locally, then it's likely that the plugin isn't installed correctly. Try reinstalling by running the following:

    npm i eslint-plugin-react@latest --save-dev

Path to ESLint package: /Users/carson/.config/yarn/global/node_modules/eslint

If you still can't figure out the problem, please stop by https://gitter.im/eslint/eslint to chat with the team.

eslint-plugin-react has been added

"devDependencies": {
"@babel/core": "^7.10.4",
"@babel/runtime": "^7.10.4",
"@react-native-community/eslint-config": "^2.0.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.1.0",
"eslint": "^7.3.1",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-html": "^6.0.2",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.20.3",
"eslint-plugin-react-hooks": "^4.0.5",
"eslint-plugin-react-native": "^3.8.1",
"eslint-plugin-react-redux": "^3.0.3",
"eslint-plugin-standard": "^4.0.1",
"jest": "^26.1.0",
"metro-react-native-babel-preset": "^0.60.0",
"react-test-renderer": "16.11.0"
},

Mouhamadou Diouf
@MouhaDiouf

Hello! I'm getting the following error while listing my project :

(node:1) [ESLINT_LEGACY_ECMAFEATURES] DeprecationWarning: The 'ecmaFeatures' config file property is deprecated, and has no effect. (found in "--config » eslint-config-airbnb » /tool/node_modules/eslint-config-airbnb/rules/react.js")
(node:1) [ESLINT_LEGACY_ECMAFEATURES] DeprecationWarning: The 'ecmaFeatures' config file property is deprecated, and has no effect. (found in "--config » eslint-config-airbnb » /tool/node_modules/eslint-config-airbnb/rules/react-a11y.js")
(node:1) [ESLINT_LEGACY_ECMAFEATURES] DeprecationWarning: The 'ecmaFeatures' config file property is deprecated, and has no effect. (found in ".eslintrc.json » eslint-config-airbnb » /tool/node_modules/eslint-config-airbnb/rules/react.js")
(node:1) [ESLINT_LEGACY_ECMAFEATURES] DeprecationWarning: The 'ecmaFeatures' config file property is deprecated, and has no effect. (found in ".eslintrc.json » eslint-config-airbnb » /tool/node_modules/eslint-config-airbnb/rules/react-a11y.js")

This is my eslintrc config file:

    "env": {
        "browser": true,
        "es6": true, 
        "jest": true
    },
    "extends": [
        "plugin:react/recommended",
        "airbnb"
    ],
    "root": true,
    "globals": {
        "Atomics": "readonly",
        "SiharedArrayBuffer": "readonly"
    },
    "parserOptions": {
        "ecmaFeatures": {
            "jsx": true, 
            "modules": true
        },
        "ecmaVersion": 2018,
        "sourceType": "module"
    },
    "plugins": [
        "react", 
        "jsx-a11y", 
        "import"
    ],
    "rules": {
   "react/jsx-props-no-spreading": "off",
    "react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
    "import/no-unresolved": "off",
    "no-shadow": "off",
    "arrow-parens": ["error", "as-needed"],
     "import/no-named-as-default": 0,
       "jsx-a11y/href-no-hash": [0],
"jsx-a11y/img-has-alt": [0], 
"import/extensions": 0
    }

}
Can you help me?
Roy Sutton
@webOS101
Reminder: This chat is moving to Discord! Please visit https://eslint.org/chat to join the Discord group.