standard / eslint-config-semistandard

:100: semistandard eslint sharable config
ISC License
64 stars 23 forks source link

import plugin warnings when using in eslintrc? #36

Closed Jakobud closed 3 years ago

Jakobud commented 3 years ago
"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.

Jakobud commented 3 years ago

This ended up being because somehow the eslint-plugin-import I installed was an old version. Updating to newest version fixes it.