@robot-inventor/eslint-config 10.0.0 → 10.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -4
  2. package/package.json +2 -3
package/dist/index.js CHANGED
@@ -1,10 +1,9 @@
1
1
  import { config, configs as tseslintConfigs } from "typescript-eslint";
2
+ import { flatConfigs as importXFlatConfigs } from "eslint-plugin-import-x";
2
3
  import eslint from "@eslint/js";
3
4
  import eslintConfigPrettier from "eslint-config-prettier";
4
- import importX from "eslint-plugin-import-x";
5
5
  import jsdoc from "eslint-plugin-jsdoc";
6
6
  import react from "eslint-plugin-react";
7
- // @ts-expect-error `eslint-plugin-react-compiler` doesn't have type definitions.
8
7
  // eslint-disable-next-line import-x/max-dependencies
9
8
  import reactCompiler from "eslint-plugin-react-compiler";
10
9
  const eslintRules = {
@@ -69,7 +68,7 @@ const jsdocRules = {
69
68
  }
70
69
  ]
71
70
  };
72
- const eslintConfigNoJSDoc = config(eslint.configs.all, jsdoc.configs["flat/recommended-typescript-error"], eslintConfigPrettier, ...tseslintConfigs.strictTypeChecked, ...tseslintConfigs.stylisticTypeChecked, importX.flatConfigs.recommended, importX.flatConfigs.typescript, {
71
+ const eslintConfigNoJSDoc = config(eslint.configs.all, jsdoc.configs["flat/recommended-typescript-error"], eslintConfigPrettier, ...tseslintConfigs.strictTypeChecked, ...tseslintConfigs.stylisticTypeChecked, importXFlatConfigs.recommended, importXFlatConfigs.typescript, {
73
72
  languageOptions: {
74
73
  parserOptions: {
75
74
  projectService: true
@@ -104,7 +103,6 @@ const eslintReactConfigBase = config({
104
103
  ...react.configs.flat["recommended"],
105
104
  plugins: {
106
105
  ...react.configs.flat["recommended"]?.plugins,
107
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
108
106
  "react-compiler": reactCompiler
109
107
  },
110
108
  rules: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robot-inventor/eslint-config",
3
- "version": "10.0.0",
3
+ "version": "10.1.0",
4
4
  "description": "My ESLint config preset",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "scripts": {
11
11
  "build": "tsc",
12
- "lint": "npx eslint ./src/**/*.ts",
12
+ "lint": "eslint --flag unstable_native_nodejs_ts_config \"./src/**/*.ts\"",
13
13
  "ci:version": "changeset version",
14
14
  "ci:publish": "npm run build && changeset publish"
15
15
  },
@@ -52,7 +52,6 @@
52
52
  "@robot-inventor/tsconfig-base": "^6.0.0",
53
53
  "@types/eslint": "^9.6.1",
54
54
  "@types/eslint__eslintrc": "^2.1.2",
55
- "jiti": "^2.0.0",
56
55
  "typescript": "^5.4.4"
57
56
  },
58
57
  "overrides": {