@bifravst/eslint-config-typescript 6.0.0 → 6.0.1

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.
package/README.md CHANGED
@@ -20,4 +20,10 @@ for usage.
20
20
 
21
21
  ## Usage
22
22
 
23
- echo '{"extends": "@bifravst/eslint-config-typescript"}' > .eslintrc.json
23
+ Add a file `eslint.config.js` to your project, and adapt:
24
+
25
+ ```js
26
+ import config from "@bifravst/eslint-config-typescript";
27
+
28
+ export default [...config, { ignores: ["dist/*"] }];
29
+ ```
package/eslint.config.js CHANGED
@@ -14,13 +14,11 @@ export default tseslint.config(
14
14
  languageOptions: {
15
15
  parserOptions: {
16
16
  project: true,
17
- tsconfigRootDir: import.meta.dirname,
18
17
  },
19
18
  },
20
19
  },
21
20
  prettier,
22
- unicorn.configs['flat/all'],
23
- { plugins: { 'prefer-arrow': preferArrow, import: importPlugin } },
21
+ { plugins: { 'prefer-arrow': preferArrow, import: importPlugin, unicorn } },
24
22
  {
25
23
  rules: {
26
24
  '@typescript-eslint/indent': ['off'],
@@ -73,6 +71,11 @@ export default tseslint.config(
73
71
  'prefer-arrow/prefer-arrow-functions': ['error'],
74
72
  'object-shorthand': ['error'],
75
73
  'import/extensions': ['error', 'always', { ignorePackages: true }],
74
+ '@typescript-eslint/no-unsafe-enum-comparison': ['warn'],
75
+ '@typescript-eslint/no-unsafe-assignment': ['warn'],
76
+ '@typescript-eslint/no-unsafe-member-access': ['warn'],
77
+ '@typescript-eslint/no-unsafe-return': ['warn'],
78
+ '@typescript-eslint/no-unsafe-argument': ['warn'],
76
79
  },
77
80
  },
78
81
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bifravst/eslint-config-typescript",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "ESLint config for all our projects.",
5
5
  "type": "module",
6
6
  "main": "eslint.config.js",