Coder Social home page Coder Social logo

eslint-config-mizdra's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar mizdra avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

eslint-config-mizdra's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>mizdra/renovate-config-mizdra:+lib)

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • Update dependency eslint-plugin-n to v16
  • Update dependency eslint-plugin-unicorn to v49
  • Update dependency eslint-plugin-unicorn to v50
  • Update dependency eslint-plugin-unicorn to v51
  • Update dependency prettier to v3
  • Update typescript-eslint monorepo to v6 (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • Update typescript-eslint monorepo to v7 (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v3
  • actions/setup-node v3
  • actions/checkout v3
  • actions/setup-node v3
npm
package.json
  • @typescript-eslint/eslint-plugin >=2.31.0
  • @typescript-eslint/parser >=2.31.0
  • eslint-config-prettier >=8.10.0
  • eslint-plugin-import >=2.29.0
  • eslint-plugin-n >=15.7.0
  • eslint-plugin-react >=7.19.0
  • eslint-plugin-react-hooks >=4.0.0
  • eslint-plugin-unicorn >=48.0.1
  • @eslint/eslintrc ^3.0.0
  • @eslint/js ^8.52.0
  • @mizdra/prettier-config-mizdra ^1.0.0
  • @tsconfig/node18 ^18.2.2
  • @tsconfig/strictest ^2.0.2
  • @types/eslint ^8.44.3
  • @types/node ^18.18.8
  • @types/react ^18.0.35
  • @typescript-eslint/eslint-plugin ^5.58.0
  • @typescript-eslint/parser ^5.58.0
  • eslint ^8.50.0
  • eslint-config-prettier ^8.10.0
  • eslint-plugin-react ^7.32.2
  • eslint-plugin-react-hooks ^4.6.0
  • npm-run-all ^4.1.5
  • prettier ~2.8.8
  • ts-essentials ^9.3.2
  • typescript ^5.0.4
  • eslint >=6.8.0
  • prettier >=2.0.5
  • typescript >=3.9.3
  • node >=16.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

`import/no-extraneous-dependencies` を無効化

問題

package がインストールされているのに vscode 上で error が出ることがあり、noisy になっている。

再現手順

  1. vscode で foo.ts を開く
  2. foo.tsimport dedent from 'dedent' と書く
  3. 'dedent' should be listed in the project's dependencies. Run 'npm i -S dedent' to add it が出る
  4. pnpm i -D dedent する
  5. 'dedent' should be listed in the project's dependencies. Run 'npm i -S dedent' to add it がまだ出ていることを確認
image

おそらく eslint の vscode 拡張機能に node_modules 配下の書き込みを監視して lint し直す機能がないために、このような問題が出ている。

提案

import/no-extraneous-dependencies を無効化する。元々 pacakge.json の dependenciesdevDependencies に書かれていない package に直接依存するコードを検出するために導入したルールだったが、かえって混乱を招いているのでやめたい。

そもそも pnpm や npm の --install-strategy=linked なら、「pacakge.json の dependenciesdevDependencies に書かれていない package に直接依存するコード」があったら実行時に必ずコケるようになっているので、import/no-extraneous-dependencies がなくても困ることはそうないだろうと考えている。

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.