| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
The following code is often used when using @eslint/eslintrc with `eslint-config-airbnb-base`:
```js
// mimic CommonJS variables -- not needed if using CommonJS
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({baseDirectory: __dirname, recommendedConfig: pluginJs.configs.recommended});
```
However, `import.meta` is not supported in ecmaVersion: '2018'. This change allows users to be able to use it that way.
|
related: eslint/create-config#51 |
Sorry, something went wrong.
| ].map(require.resolve), | ||
| parserOptions: { | ||
| ecmaVersion: 2018, | ||
| ecmaVersion: 'latest', |
There was a problem hiding this comment.
this is a change we can't make unless babel-preset-airbnb is handling it by default. unfortunately i no longer maintain it, so I'm not familiar with what the latest version supports.
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
accurate. but this is airbnb's eslint config, so my hands are kind of tied :-/
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The following code is often used when using @eslint/eslintrc with eslint-config-airbnb-base:
However, import.meta is not supported in ecmaVersion: '2018'. This change allows users to be able to use it that way.