Comments (2)
In CommonJS, you can just use require()
:
const { FlatCompat } = require("@eslint/eslintrc");
Otherwise, you can use the example in the README mostly as-is. We can probably update that with a CommonJS example to avoid confusion.
from eslintrc.
Thanks, yes, that was one of the things that was crucial to proceed further. Now, we are battling how to integrate eslint-config-standard-with-typescript
and other configs using FlatCompat. There are a few concerns about that here typescript-eslint/typescript-eslint#7694, but it looks promising on our side so far.
from eslintrc.
Related Issues (20)
- Caching is not supported when parser is an object
- I encountered an issue related to Vue templates while using FlatCompat for a smooth ESLint configuration upgrade. HOT 1
- import-fresh HOT 1
- Drop or patch dependency import-fresh HOT 2
- How to extend flat config into a traditional config? HOT 1
- Bug: `FlatCompat.config` doesn't work with `overrides` HOT 7
- Missing parameter 'recommendedConfig' in FlatCompat constructor HOT 5
- How should nested configs be handled with compat? HOT 1
- import/no-named-as-default import/no-named-as-default-member issue HOT 1
- TypeError: Cannot redefine plugin HOT 8
- `FlatCompat#env({es2024: true})` missing builtin globals HOT 3
- FlatCompat utility needs documentation (or has wrong documentation) HOT 2
- FlatCompat doesn't have a good pattern for applying plugins / extends to files HOT 2
- [Bug] Cannot redefine plugin "vue" error HOT 3
- Error while loading rule 'qwik/valid-lexical-scope' HOT 1
- Issue: require() of ES modules is not supported. HOT 4
- config-array "mergeWithoutOverwrite" make linting fail by transforming Regex into empty object HOT 4
- Problems with loading .eslintrc HOT 2
- "TypeError: Unexpected array" when importing @typescript-eslint 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 eslintrc.