Comments (10)
I got the same error (TypeError: Error while loading rule 'perfectionist/sort-svelte-attributes': The "path" argument must be of type string. Received undefined
), and the culprit was the ESlint version. Upgrading from 8.4.1 -> the latest fixed the issue.
from eslint-plugin-perfectionist.
Hi. Thank you for your issue. Do you have the ability to create a repository to reproduce the issue?
from eslint-plugin-perfectionist.
I figured out that everything is normal until I put the repo to a monorepo. I get this case too.
from eslint-plugin-perfectionist.
Can you show me your package.json?
Reproducing the problem would help speed up the resolution.
from eslint-plugin-perfectionist.
Hi @azat-io, here is the repo. You can add eslint-plugin-perfectionist
https://github.com/hckhanh/demo-sentry
from eslint-plugin-perfectionist.
@hckhanh Thank you! Could you please describe steps to reproduce the problem?
Because I don't see ESLint config in project root or scripts to call it.
from eslint-plugin-perfectionist.
Sorry about that, it seems there are some problems with my WebStorm. Everything is fine now.
from eslint-plugin-perfectionist.
No problem. Thank you for your issue!
from eslint-plugin-perfectionist.
I have the same issue after upgrading from 2.2.0
to 2.5.0
. It seems that there were also some issues in 2.4.1
:
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/viktorbusko/Development/html-promos/node_modules/eslint-plugin-perfectionist/dist/index.js from /Users/viktorbusko/Development/html-promos/node_modules/@eslint/eslintrc/lib/config-array-factory.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
And then this one Error while loading rule 'perfectionist/sort-svelte-attributes': The "path" argument must be of type string
. In case of update to 2.5.0
Not sure about the reason trying to dig around. Maybe ESLint is outdated.
from eslint-plugin-perfectionist.
@Lighttree Can you reproduce the problem and provide a link to the repository? I'd be interested in looking at and researching this.
from eslint-plugin-perfectionist.
Related Issues (20)
- Feature: Group named import/export kinds (type/value) on sort-named-imports/exports HOT 1
- Bug: TS2729: Property is used before its initialization.
- Bug: (sort-exports) does not work for 'export *' HOT 5
- Bug: (sort-object): Cannot read properties of undefined (reading 'getTokensBefore') HOT 7
- Bug: (sort-interfaces): Configuration for rule "perfectionist/sort-interfaces" is invalid when using `optionality-order` HOT 1
- Bug: (sort-objects): How to sort vue options(data, computed, watch, methods), how to ignore child sorting in methods? HOT 2
- Feature: (sort-objects) option for destructuring only HOT 5
- Feature: sort-intersection-types and anonymous types
- Bug: Allow typescript-eslint/utils@7? HOT 1
- Feature: Support computed properties for sort-objects and sort-object-keys HOT 2
- Bug: (sort-intersection-types) wrong version information in the rule documentation
- Bug: sort-imports sorts individually in custom-groups array HOT 5
- Feature: implement ignore-pattern based on word before, not object name
- Feature: `sort-imports` custom-groups Regex match
- bug(types): Typing files are missing for `tseslint.configs.strictTypeChecked` in FlatConfig HOT 1
- Feature: Providing Disabling Rules that Conflict
- Feature: sort-imports sort order by group order in line-length
- Feature: sort-intersection-types `objects-last` HOT 1
- Bug: no type definition for eslint flat config HOT 1
- Feature: (sort-classes) Add custom-groups to sorting capabilities
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-plugin-perfectionist.