Giter VIP home page Giter VIP logo

eslint-config-semistandard's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eslint-config-semistandard's Issues

import plugin warnings when using in eslintrc?

"eslint": "^7.22.0",
"eslint-config-semistandard": "^15.0.1",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^1.16.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-standard": "^5.0.0",
"eslint-webpack-plugin": "^2.5.2",

Node 11.15.0
npm 6.7.0

I want to use semistandard in my eslintrc.js. I tried this:

module.exports = {
  root: true,
  'plugins': [
    'import',
    'node',
    'promise',
    'standard'
  ],
  extends: [
    'semistandard'
  ]
}

I get this:

1:1  error  Definition for rule 'import/first' was not found                     import/first
1:1  error  Definition for rule 'import/no-named-default' was not found          import/no-named-default
1:1  error  Definition for rule 'import/no-webpack-loader-syntax' was not found  import/no-webpack-loader-syntax

What am I misunderstanding here? Are there any better instructions on how to use this config? I thought it was as simple as extending it in the eslint configuration.

Update npm peer dependencies to work with ESLint 2.0+

Hi,

I tried upgrading one of my projects to ESLint 2.0, but the upgrade failed due to peer dependency conflicts with eslint-config-semistandard

npm ERR! peer dep missing: eslint@^1.0.0, required by [email protected]
npm ERR! peer dep missing: eslint@^1.6.0, required by [email protected]
npm ERR! peer dep missing: eslint-config-standard@^4.0.0, required by [email protected]
npm ERR! peer dep missing: eslint-plugin-promise@^1.0.8, required by [email protected]

Can you please update your dependencies to work with ESLint 2.0+?

Thanks!

ESLint not applying semistandard rules in `extends`

What version of this package are you using?
^16.0.0
eslint - V7.21.0

What operating system, Node.js, and npm version?
npm - 6.14.15
node- v12.22.6

What happened?
When adding 'semistandard' to the .eslintrc file in extends, the rules of semistandard are not applied, unless running semistandard directly

What did you expect to happen?
ESLint to adhere to the rules in the semistandard sharable config and throw errors

.eslintrc file:

{
    "root": true,
    "extends": [
      "react-app",
      "semistandard",
      "plugin:jsx-a11y/recommended",
      "prettier"
    ],
    "plugins": [
      "jsx-a11y",
      "react",
      "jest",
      "prettier"
    ],
    "env": {
        "jest": true
      },
    "rules": {
      "comma-dangle": "off",
      "react-hooks/exhaustive-deps": "off"
    }
  }

Any ideas please, as was hoping to use semistandard via the .eslintrc file

Support ESLint 9 Flat Config Format

Here's what I did

Upgrade to ESLint 9 and import eslint-config-semistandard

import globals from 'globals';
import semistandard from 'eslint-config-semistandard';

export default [
  semistandard,
  {
    ignores: ["dist/**"],
    languageOptions: {
      globals: {
        ...globals.browser,
        ...globals.es2021,
        ...globals.node
      }
    }
  }
];

What I expected to happen

I should be able to import semistandard in eslint.config.js and use it as a default ruleset (see eslint-config-standard usage).

standard/eslint-config-standard@3d1284c

What seems to have happened

ESLint reports the following error:

Oops! Something went wrong! :(

ESLint: 9.0.0

A config object is using the "extends" key, which is not supported in flat config system.

Instead of "extends", you can include config objects that you'd like to extend from directly in the flat config array.

Please see the following page for more information:
https://eslint.org/docs/latest/use/configure/migration-guide#predefined-and-shareable-configs

Make eslint-config-standard a real dependency

Is there a reason that eslint-config-standard is specified as a peerDependency instead of a direct dependency? If I wanted to create a config which extends this config, it seems I would also need to have eslint-config-standard as a peerDependency as well, which feels odd...

eslint 8.11.0 not working with this package in version 16.0.0

What version of this package are you using? 16.0.0

What operating system, Node.js, and npm version? node 16.14.0 npm 8.3.1

What happened?
image

What did you expect to happen? just installing it like with eslint version 7.32.0

Are you willing to submit a pull request to fix this bug? I'm not sure how.
This are the packages I'm want to use for my vscode linting:
"eslint": "^8.11.0",
"eslint-config-semistandard": "^16.0.0",
"eslint-plugin-promise": "^6.0.0",

this are the packages that are working great together:
"eslint": "^7.32.0",
"eslint-config-semistandard": "^16.0.0",
"eslint-plugin-promise": "^5.1.0",

let me know if you need any further information

npm warns when using latest semistandard with standard

What version of this package are you using?

15.0.0 (latest at time of writing)

What operating system, Node.js, and npm version?

Debian 9 container with Node 10.15 and npm 6.5.

What happened?

Using the latest version of the relevant packages:

    "eslint": "6.5.1",
    "eslint-config-semistandard": "15.0.0",
    "eslint-config-standard": "14.1.0",

But this yields a warning at install time, due to an outdated peerDependencies requirement in this repo:

npm WARN [email protected] requires a peer of eslint-config-standard@^13.0.1 but none is installed. You must install peer dependencies yourself.

This also happens in recent Travis CI builds for this repo (e.g. https://travis-ci.org/standard/eslint-config-semistandard/builds/591805141) since the merging of 5a79865 (#26)
Screenshot 2019-10-10 at 20 41 09

What did you expect to happen?

For latest semistandard and standard to be considered compatible.

Are you willing to submit a pull request to fix this bug?

Yes.

Ref #6.
Ref #4.

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.