Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: eslint 9 compatibility #410

Open
jkowalleck opened this issue Apr 16, 2024 · 5 comments
Open

feat: eslint 9 compatibility #410

jkowalleck opened this issue Apr 16, 2024 · 5 comments

Comments

@jkowalleck
Copy link

Hi guys!

Please tell us if eslint-config-standard is compatible with the new version of ESlint?
and if yes please add it to peerDependencies

@voxpelli
Copy link
Member

It does not, but stay tuned

@przemekhernik
Copy link

Hi Guys! Do you have any timeframes here?

The only way to make this package work, for now, is to copy this section and put it in the eslint.config.js manually. Everything works fine then 😅

@commenthol
Copy link

Just wanted to share how I got eslint-config-standard working with eslint@9.

install dev dependencies

npm i -D eslint@^9 eslint-config-standard@^17 eslint-plugin-import@^2 eslint-plugin-n@^17 eslint-plugin-promise@^6

then change eslint.config.js

import globals from 'globals'
import pluginJs from '@eslint/js'
import standard from 'eslint-config-standard'
import pluginN from 'eslint-plugin-n'
import pluginPromise from 'eslint-plugin-promise'
import pluginImport from 'eslint-plugin-import'

const config = [
  {
    files: ['**/*.{js,mjs,cjs}'],
    languageOptions: {
      globals: {
        ...globals.mocha, // I am using mocha, remove if not needed...
        ...globals.node,
      }
    }
  },
  pluginJs.configs.recommended,
  {
    plugins: {
      n: pluginN,
      import: pluginImport,
      promise: pluginPromise
    },
    rules: standard.rules
  },
  {
    ignores: ['coverage/', 'dist/', 'lib/']
  }
]

export default config

@voxpelli
Copy link
Member

It does not, but stay tuned

Since we couldn't reach a conclusion on governance (standard/standard#1948 (comment)) some of us are today launching an alternative project today that aims to carry the torch forward in the same spirit as standard but under an open governance model: neostandard

It brings support for ESLint 9 and flat configs from the start, as well as eg. TypeScript support, semistandard support and option for a style-less setup.

That's sadly where I will focus my efforts from now on.

h-yoshikawa44 added a commit to h-yoshikawa44/ch-random-quote that referenced this issue Aug 17, 2024
eslint-config-standardは更新が止まっていて、
この新しいプロジェクトを開発中とのことだった。
standard/eslint-config-standard#410
dgdavid added a commit to agama-project/agama that referenced this issue Sep 16, 2024
Because eslint-config-standard still not being compatible with eslint >
9 version. The idea is to use eslint-neostandard instead, see

  * https://github.com/neostandard/neostandard
  * standard/eslint-config-standard#410 (comment)
@melroy89
Copy link

melroy89 commented Nov 23, 2024

I think this project is kinda dead. Try to use: https://github.com/neostandard/neostandard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

5 participants