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

Ship remaining standard family 17.0.0, like semistandard #229

Open
3 of 6 tasks
voxpelli opened this issue Apr 20, 2022 · 11 comments
Open
3 of 6 tasks

Ship remaining standard family 17.0.0, like semistandard #229

voxpelli opened this issue Apr 20, 2022 · 11 comments
Milestone

Comments

@voxpelli
Copy link
Member

voxpelli commented Apr 20, 2022

Broken out from #208, not an exhaustive list, mostly a note to not forget

@voxpelli voxpelli added this to the 17.0.0 milestone Apr 20, 2022
@sQVe
Copy link

sQVe commented Apr 20, 2022

The typescript variant should be added here, no?

@voxpelli
Copy link
Member Author

@sQVe Yes, added with link to related issue

@theoludwig
Copy link
Contributor

Concerning ts-standard, it might be a little bit harder than the others to update to use ESLint v8 and standard-engine v15.
Explanation here: standard/ts-standard#171 (comment)

We would appreciate a PR to "rewrite" ts-standard and simplify the code-base of this package so it is more like semistandard, standardx etc.

@tagliala
Copy link

Hi,

@voxpelli
Copy link
Member Author

@tagliala Thanks, added them 🙏

@voxpelli
Copy link
Member Author

We may have to ship a new version of snazzy as well: hifiwi-fi/breadcrum.net#52 (comment)

@tagliala
Copy link

We may have to ship a new version of snazzy as well: hifiwi-fi/breadcrum.net#52 (comment)

Any hint on what needs to be checked on snazzy?

$ yarn info standard | grep version\:
  version: '17.0.0',

$ yarn info snazzy | grep version\:
  version: '9.0.0',

$ cat test.js 
hello="Hello";

$ yarn run standard --verbose
yarn run v1.22.17
$ ./node_modules/.bin/standard --verbose
standard: Use JavaScript Standard Style (https://standardjs.com)
standard: Run `standard --fix` to automatically fix some problems.
  ./test.js:1:1: 'hello' is not defined. (no-undef)
  ./test.js:1:6: Operator '=' must be spaced. (space-infix-ops)
  ./test.js:1:7: Strings must use singlequote. (quotes)
  ./test.js:1:14: Extra semicolon. (semi)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

$ yarn run standard --verbose | yarn run snazzy
standard: Use JavaScript Standard Style (https://standardjs.com)
standard: Run `standard --fix` to automatically fix some problems.
error Command failed with exit code 1.                                                                                                                     
yarn run v1.22.17
$ ./node_modules/.bin/standard --verbose
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

./test.js
  1:1   error  'hello' is not defined        no-undef
  1:6   error  Operator '=' must be spaced   space-infix-ops
  1:7   error  Strings must use singlequote  quotes
  1:14  error  Extra semicolon               semi

✖ 4 problems
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@voxpelli
Copy link
Member Author

We may have to ship a new version of snazzy as well: hifiwi-fi/breadcrum.net#52 (comment)

Any hint on what needs to be checked on snazzy?

That it maybe treats warnings as errors, making such newly introduced linting rules have much more of a breaking impact than they are intended to.

So separately from your output. Seems like you have genuine linting errors :)

@tagliala
Copy link

tagliala commented May 17, 2022

Thanks for the clarification, sorry I forgot to add the test file

hello="Hello";

Any example of what I should add to this test file and how it should look like when the output will be processed by snazzy?

got it

const schema = '2'
hello = { schema: schema }
./test.js
  2:1   error  'hello' is not defined       no-undef
  2:11  error  Expected property shorthand  object-shorthand) (warning

The second one should be a warning

@tagliala
Copy link

Do you know which package is in charge of building this json?

{
  line: '2',
  column: '17',
  message: 'Expected property shorthand.',
  ruleId: 'object-shorthand) (warning'
}

If this is not being created by Snazzy (as it appears to my eyes, I'm not a JavaScript developer), I think that there could be an issue somewhere else upstream that should be fixed before adding warning support to Snazzy

@voxpelli
Copy link
Member Author

@tagliala Can you file an issue in Snazzy? 🙏 I haven't had time to look at it yet. Ping me there

@voxpelli voxpelli pinned this issue Jul 18, 2022
@rhettjay rhettjay moved this to Explicitly Prioritized in The Standard Project Sep 23, 2023
tagliala added a commit to diowa/ruby3-rails7-bootstrap-heroku that referenced this issue Dec 25, 2023
Mostly because of unmaintained libraries in the Standard family and
the upcoming migration to Vite

Ref:
- standard/standardx#42
- standard/eslint-config-standard#229
- standard/standard-loader#104
tagliala added a commit to diowa/ruby3-rails7-bootstrap-heroku that referenced this issue Dec 25, 2023
Mostly because of unmaintained libraries in the Standard family and
the upcoming migration to Vite

Ref:
- standard/standardx#42
- standard/eslint-config-standard#229
- standard/standard-loader#104
tagliala added a commit to diowa/ruby3-rails7-bootstrap-heroku that referenced this issue Dec 25, 2023
Mostly because of unmaintained libraries in the Standard family and
the upcoming migration to Vite

Ref:
- standard/standardx#42
- standard/eslint-config-standard#229
- standard/standard-loader#104
tagliala added a commit to diowa/ruby3-rails7-bootstrap-heroku that referenced this issue Dec 25, 2023
Mostly because of unmaintained libraries in the Standard family and
the upcoming migration to Vite

Ref:
- standard/standardx#42
- standard/eslint-config-standard#229
- standard/standard-loader#104
tagliala added a commit to diowa/ruby3-rails7-bootstrap-heroku that referenced this issue Dec 25, 2023
Mostly because of unmaintained libraries in the Standard family and
the upcoming migration to Vite

Ref:
- standard/standardx#42
- standard/eslint-config-standard#229
- standard/standard-loader#104
tagliala added a commit to diowa/icare that referenced this issue Dec 25, 2023
Mostly because of unmaintained libraries in the Standard family and
the upcoming migration to Vite

Ref:
- standard/standardx#42
- standard/eslint-config-standard#229
- standard/standard-loader#104
tagliala added a commit to diowa/ruby3-rails7-bootstrap-heroku that referenced this issue Dec 25, 2023
Mostly because of unmaintained libraries in the Standard family and
the upcoming migration to Vite

Ref:
- standard/standardx#42
- standard/eslint-config-standard#229
- standard/standard-loader#104
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Explicitly Prioritized
Development

No branches or pull requests

4 participants