Comments (4)
I'd be happy to disallow __dirname et al., but I am not sure if we should recommend import.meta.filename
as it would be still runtime-specific. I usually use new URL('../', import.meta.url)
to make it work cross platform.
from eslint-config.
@antfu
I'm very sorry to disturb you. I hope this doesn't cause any inconvenience for you.
I would like to know if this feature request is easy to implement. Is it possible that it will be supported?
from eslint-config.
Sorry, I am not an experienced front-end developer. I trust that the usage you recommended is surely better.
The idea behind this feature request originated from a bug I encountered during a migration from CommonJS to ESM.
Ref:
https://github.com/Kerwin1202/chatgpt-web/issues/405
from eslint-config.
I think currently I don't want to have a strict rule for that - feel free to disable it on userland.
from eslint-config.
Related Issues (20)
- `v2.9.1` have a peer-dependency of `eslint-plugin-svelte@^2.36.0-0`, which is not released yet HOT 2
- Conflict with @stylistic/indent and @stylistic/jsx-indent HOT 3
- Unable to use with yarn + eslint 9.0.0 HOT 9
- `'vue/require-explicit-emits'` is enabled in Vue 2 HOT 1
- Remove curly "Unnecessary { after if/for-of" autofixes from on-save formatter HOT 2
- `unocss: true` it's not working HOT 1
- Introduce `eslint-react` HOT 1
- `@unocss/eslint-config` not working for eslint@9 HOT 1
- Stricter ordering of imports HOT 5
- cli command(npx @antfu/eslint-config@latest) execute failed HOT 5
- antfu() type error HOT 2
- Conflicts with lint-staged and stylelint HOT 1
- XML formatter HOT 4
- Setting stylistic/object-property-newline breaks indentation. HOT 4
- vscode + ts + monorepo - issues with resolving `parserOptions` files in IDE (but not cli) HOT 3
- Cannot destructure property 'parent' of 'node' as it is undefined. HOT 5
- I love this config but Eslint is slow. HOT 6
- OptionsConfig.autoRenamePlugins 配置设置为 false 似乎不生效 HOT 1
- no-cond-assign seems to have except-parens disabled and turning them back on throws linting errors. HOT 1
- [Nuxt] Error: Key "plugins": Cannot redefine plugin "import". HOT 4
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-config.