Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: use ecmaVersion latest #2965

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 10, 2024

  1. feat!: use ecmaVersion latest

    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.
    aladdin-add committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    59140bd View commit details
    Browse the repository at this point in the history