Skip to content

feat!: convert to eslint flat config, include typescript#7

Merged
silvester-pari merged 2 commits intomainfrom
v2
Jun 19, 2024
Merged

feat!: convert to eslint flat config, include typescript#7
silvester-pari merged 2 commits intomainfrom
v2

Conversation

@silvester-pari
Copy link
Copy Markdown
Member

This PR introduces some new functionalities, mainly:

  • new eslint flat config style
  • eslint dependency updated to >9
  • prettier dependency updated to >3
  • typescript dependency
  • recommended eslint config
  • recommended typescript-eslint
  • typescript-eslint parser

The config also includes a minimal set of rules, defined in index.js.

Try it out with the npm package @eox/eslint-config@2.0.0-alpha

@silvester-pari silvester-pari changed the title feat!: move to newest eslint flat config, includ typescript feat!: convert to eslint flat config, include typescript Jun 12, 2024
@A-Behairi
Copy link
Copy Markdown
Member

in a Vue project, typescript-eslint parser conflicts with eslint-plugin-vue resulting in not linting .vue files correctly.

reproduction:
repo: https://github.com/eodash/eodash

  1. remove .eslintrc.cjs and .eslintignore
  2. install the package npm i -D @eox/eslint-config@2.0.0-alpha
  3. remove @vue/eslint-config-typescript dev dependency.
  4. update the following packages and install:
  • eslint to ^9.4.0
  • eslint-plugin-cypress to ^3.3.0
  • eslint-plugin-vue to ^9.26.0
  1. add eslint.config.js
import pluginVue from "eslint-plugin-vue";
import pluginCypress from "eslint-plugin-cypress/flat";
import eox from "@eox/eslint-config";

export default [
  { ignores: ["public/", "dist/", ".eodash/"] },
  ...eox,
  pluginCypress.configs.recommended,
  ...pluginVue.configs["flat/essential"],
];

when commenting out the parser from the package it works as expected

@silvester-pari silvester-pari marked this pull request as ready for review June 19, 2024 09:22
@silvester-pari silvester-pari merged commit be2bbc0 into main Jun 19, 2024
@silvester-pari silvester-pari deleted the v2 branch June 19, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants