by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 16:58
    M1CK431 commented #13559
  • 16:17
    anikethsaha synchronize #13522
  • 15:39
    anikethsaha commented #13559
  • 15:16
    M1CK431 commented #13559
  • 15:16
    M1CK431 closed #13559
  • 15:16
    M1CK431 commented #13559
  • 13:29
    anikethsaha commented #13559
  • 13:15
    M1CK431 commented #13559
  • 13:11

    eslintbot on master

    Sponsors: Sync README with webs… (compare)

  • 12:19
    EdieLemoine commented #13029
  • 12:18
    EdieLemoine synchronize #13029
  • 12:17
    EdieLemoine synchronize #13029
  • 11:31
    anikethsaha unlabeled #13559
  • 11:31
    anikethsaha commented #13559
  • 11:22
    M1CK431 edited #13559
  • 11:21
    M1CK431 labeled #13559
  • 11:21
    M1CK431 labeled #13559
  • 11:21
    M1CK431 labeled #13559
  • 11:21
    M1CK431 opened #13559
  • 11:10
    eslint[bot] commented #13558
matrixbot
@matrixbot

Resynth > <@gitter_webos101:matrix.org> @adica You should go to the Discord chat and ask there.

Oh no

Resynth You guys use Discord?
Roy Sutton
@webOS101
Folks-- we've moved our support channel to Discord. Please visit https://eslint.org/chat to get started there
matrixbot
@matrixbot

Resynth > <@gitter_webos101:matrix.org> > Folks-- we've moved our support channel to Discord. Please visit https://eslint.org/chat to get started there

Oh damn, that's a grand shame

Roy Sutton
@webOS101
I suppose, I haven’t been as active on it since it moved. But, I really don’t love Gitter.
matrixbot
@matrixbot
Resynth Me neither
Resynth Personally, I would rather Element / Matrix
artsem-lisouski
@artsem-lisouski
Hello everyone, please help me to fix this error
ESLint couldn't find the config "node" to extend from. Please check that the name of the config is correct.
Jay Thomas
@jaythomas
@artsem-lisouski you need to remove the "extends" object from your eslint config unless you actually intend to extend one of the default configs.
matrixbot
@matrixbot

adan_geno Hi everybody,

check out the new platform:
https://nearventur.com/auth/signup

Lassiter Gregg
@lassiter

hey, i have two questions, I'm trying to get eslint to work with my project, this is my eslintrc.js file:

module.exports = {
  extends: ["react-app", "shared-config"],
  files: ["**/*.ts?(x)"],
  parser: "@typescript-eslint/parser",
  parserOptions: {
    ecmaVersion: 2018,
    sourceType: "module",
    ecmaFeatures: {
      jsx: true,
    },

    // typescript-eslint specific options
    warnOnUnsupportedTypeScriptVersion: true,
  },
  plugins: ["@typescript-eslint"],
  // If adding a typescript-eslint version of an existing ESLint rule,
  // make sure to disable the ESLint rule here.
  rules: {
    // TypeScript's `noFallthroughCasesInSwitch` option is more robust (#6906)
    "default-case": "off",
    camelcase: "off",
    // 'tsc' already handles this (https://github.com/typescript-eslint/typescript-eslint/issues/291)
    "no-dupe-class-members": "off",
    // 'tsc' already handles this (https://github.com/typescript-eslint/typescript-eslint/issues/477)
    "no-undef": "off",

    // Add TypeScript specific rules (and turn off ESLint equivalents)
    "@typescript-eslint/consistent-type-assertions": "warn",
    "no-array-constructor": "off",
    "@typescript-eslint/no-array-constructor": "warn",
    "no-use-before-define": "off",
    "@typescript-eslint/no-use-before-define": [
      "warn",
      {
        functions: false,
        classes: false,
        variables: false,
        typedefs: false,
      },
    ],
    "no-unused-expressions": "off",
    "@typescript-eslint/no-unused-expressions": [
      "error",
      {
        allowShortCircuit: true,
        allowTernary: true,
        allowTaggedTemplates: true,
      },
    ],
    "no-unused-vars": "off",
    "@typescript-eslint/no-unused-vars": [
      "warn",
      {
        args: "none",
        ignoreRestSiblings: true,
      },
    ],
    "no-useless-constructor": "off",
    "@typescript-eslint/no-useless-constructor": "warn",
  },
};

I'm trying to get eslint to work with vscode.
when I run yarn eslint --ext ts,tsx .
I'm getting this error:

Error: ESLint configuration in .eslintrc.js is invalid:
        - Unexpected top-level property "files".

If I comment out the files line, I get this error:


Oops! Something went wrong! :(

ESLint: 6.8.0.

ESLint couldn't find the config "react-app" to extend from. Please check that the name of the config is correct.

The config "react-app" was referenced from the config file in "/Users/lassitergregg/Code/Guild/guild-core/.eslintrc.js".

If you still have problems, please stop by https://gitter.im/eslint/eslint to chat with the team.

error Command failed with exit code 2.

Any ideas on how to solve the two issues above?

Jordan Harband
@ljharb
for anyone still listening here: eslint v7.3 had a breaking change in comma-dangle: https://github.com/eslint/eslint/pull/13166#issuecomment-667627337
Shai Efrati
@shaief
hello! i keep getting this: The config "airbnb-base" was referenced from the config file - i'm using lerna and this congi works for my colleagues... how should i start debugging it?
Jordan Harband
@ljharb
do you have eslint-config-airbnb-base installed?
Shai Efrati
@shaief
yes - in the project level: "eslint-config-airbnb-base": "14.1.0",
Jordan Harband
@ljharb
it has to be installed at the same level as the eslint config that references it
Shai Efrati
@shaief
as far as i understand that's where it's installed
this line is from the upper package.json file
Jordan Harband
@ljharb
ok, and where's the eslintrc that mentions airbnb-base
Shai Efrati
@shaief
in the same folder at the same level
in a weird way - this is a project we work on together. we all share the same config but only on my machine the airbnb-base is nowhere to be found by eslint
Shai Efrati
@shaief
ok - another one - when trying to run eslint from project's root folder i get zsh: command not found: eslint
which is weird because it's installed. when running: npm run lint i get
> eslint --ignore-path .gitignore --ignore-pattern "!**/.*" .


Oops! Something went wrong! :(

ESLint: 6.8.0.

ESLint couldn't find the config "airbnb-base" to extend from. Please check that the name of the config is correct.

The config "airbnb-base" was referenced from the config file
Shai Efrati
@shaief
i installed eslint globally now to check if that helps. still the same response...
Shai Efrati
@shaief
solved... apparently i had some random .eslintrc.js one level above (outside of the project's scope) and eslint tried to read it from there (for some weird reason)
thanks @ljharb for your help!
Kevin Partington
@platinumazure
@shaief Use "root": true in your project config to avoid the ancestor .eslintrc.js being read
TriiCksTeR
@TriiCksTeR
lol
hey mans
im starting to dev
i'm trying to learn js
alguém tem dicas de livros e quais as técnologias focar?
does anyone have book tips and what technologies to focus on?*
David J. M. Karlsen
@davidkarlsen
David J. M. Karlsen
@davidkarlsen
ah, nvm, it is a google problem
matrixbot
@matrixbot
bartzy Is it possible to turn all eslint errors into warnings, when in development?
Bar Ziony
@bartzy
oh god, that's weird ^ was sending the message from matrix and didn't realize this channel is on gitter
Anyway, I'm trying to avoid re-writing the .eslintrc.js file with tons of conditionals
Elvira Burchik @ 🏠
@ElviraBurchik_twitter
Hi 👋
I use "eslint.options" in settings.json to set up the path to my config file, but get "ESLint couldn't find a configuration file." error. I have the config file in the directory specified in "configFile" field.
Can anybody advise how it can be fixed?
Roy Sutton
@webOS101
Folks-- we've moved our support channel to Discord. Please visit https://eslint.org/chat to get started there
Stephanie Vasquez
@VictoriaStephie_twitter

Hey so I moved a SAM lambda "project" into my react project I'm running eslint but getting
"ESLint: 6.8.0.

ESLint couldn't find the config "strict/es5" to extend from. Please check that the name of the config is correct.

The config "strict/es5" was referenced from the config file in "..NOA\dice-agent-desktop\nas-lambda\nas-lambda\node_modules\check-error\package.json"."

I'm not super familiar with all the setup for things like that
Stavros Kefaleas
@skiabox
Hello guys
I am trying to combine eslint with prettier and vscode with no luck till this moment
Any ideas?
Jordan Harband
@ljharb
only invoke prettier through the prettier eslint plugin, not directly.
and then, use eslint in vscode
Chuck
@DOTA2mm
hallo
FRANKLIN ROZA
@franklinpr2010

@franklinpr2010
hello my friends
[INFO] ESLint: 6.8.0.
[INFO]
[INFO] ESLint couldn't find the config "jhipster" to extend from. Please check that the name of the config is correct.
[INFO]
[INFO] The config "jhipster" was referenced from the config file in "C:.eslintrc.json".
[INFO]
[INFO] If you still have problems, please stop by https://gitter.im/eslint/eslint to chat with the team.
[INFO]
[INFO] npm ERR! code ELIFECYCLE
[INFO] npm ERR! errno 2
[INFO] npm ERR! sandboxreg@0.0.1-SNAPSHOT lint: eslint . --ext .js,.ts
[INFO] npm ERR! Exit status 2
[INFO] npm ERR!
[INFO] npm ERR! Failed at the sandboxreg@0.0.1-SNAPSHOT lint script.
[INFO] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I try execute with comand jhipster aws
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
C:\WORKSPACE\sandboxreg\node_modules\generator-jhipster\generators\generator-base.js:1590
throw new Error(${msg});
^

Error: Error: Command failed: mvnw -ntp verify -B -Pwar -Pprod

at module.exports.error (C:\WORKSPACE\sandboxreg\node_modules\generator-jhipster\generators\generator-base.js:1590:15)
at C:\WORKSPACE\sandboxreg\node_modules\generator-jhipster\generators\aws\index.js:119:30
at ChildProcess.exithandler (child_process.js:310:5)
at ChildProcess.emit (events.js:311:20)
at ChildProcess.EventEmitter.emit (domain.js:482:12)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)

C:\WORKSPACE\sandboxreg>eslint . --ext .ts --quiet --fix
'eslint' não é reconhecido como um comando interno
ou externo, um programa operável ou um arquivo em lotes.