standard / eslint-config-standard

ESLint Config for JavaScript Standard Style
https://standardjs.com
MIT License
2.59k stars 564 forks source link

Already publish flat config version? #351

Open JiangWeixian opened 9 months ago

JiangWeixian commented 9 months ago

Here's what I did

I install 17.1.0 version, But packages not contain flat eslint config (e.g. libs/index.js)

What I expected to happen

Using a flat configuration is like what the README.md describes

geekytime commented 9 months ago

It looks like the flat config is available on the master branch, so it's the default in the docs, but it hasn't been published, yet. I think the @latest published version is still the old-style config.

mightyiam commented 9 months ago

Sorry. @geekytime is correct. We (I, @rostislav-simonik and @jay-bulk) simply don't have the npm permissions necessary to do this yet.

mightyiam commented 9 months ago

To publish this package, that is.

jaridmargolin commented 8 months ago

@mightyiam - Is there any interest in tagging/creating a git release so folks can still use the new config via a github URL?

mightyiam commented 8 months ago

@mcollina we need publish permissions.

JamiesonRoberts commented 8 months ago

Any update on this? Or getting in contact with a maintainer that can either grant permissions or publish to NPM?

Another thought: should probably setup automatic deployment to NPM on a release creation via GitHub, that way it avoids this issue in the future

mightyiam commented 7 months ago

https://github.com/standard/standard/issues/1948

EliRobinson commented 3 months ago

While we wait patiently for this to come true, has anyone figured out a workaround to bypass the parserOptions errors?

mightyiam commented 3 months ago

Just wanted to let those following know that I no longer participate here, because I was never granted the trust of the original author.

I took my work to eslint-config-love.

donalmurtagh commented 2 months ago

While we wait patiently for this to come true, has anyone figured out a workaround to bypass the parserOptions errors?

Yes!

It's possible to make the current version work in an ESLint v9 flag configuration file using @eslint/compat by following these instructions.

In my case I made these changes to eslint.config.js

import { FlatCompat } from '@eslint/eslintrc'
import { fixupConfigRules } from '@eslint/compat'

const compat = new FlatCompat()

export default [
  ...fixupConfigRules(
    compat.config({
      extends: ['standard']
    })
  ),
  // other config objects
]