@boehringer-ingelheim/eslint-config 7.0.0-naming-convetion-configuration.1 → 7.0.0-naming-convetion-configuration.2
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/configs/base.js +7 -8
- package/index.d.ts +10 -0
- package/package.json +5 -2
package/configs/base.js
CHANGED
|
@@ -74,14 +74,13 @@ module.exports = tseslint.config(
|
|
|
74
74
|
|
|
75
75
|
// eslint-plugin-import: https://github.com/import-js/eslint-plugin-import/tree/main/docs/rules
|
|
76
76
|
'import/no-cycle': 'error',
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
],
|
|
77
|
+
/**
|
|
78
|
+
* The rule is disabled for now as it is not compatible with flat-configs, without adding an artifical `.eslintrc` file.
|
|
79
|
+
*
|
|
80
|
+
* @see: https://github.com/import-js/eslint-plugin-import/issues/3079#issuecomment-2557191925
|
|
81
|
+
* @todo Enable rule, as soon as fix is available: https://github.com/Boehringer-Ingelheim/eslint-config/blob/9f028ed43bb5db11082a2982f249ddfe7eaf5c13/configs/base.js#L77
|
|
82
|
+
*/
|
|
83
|
+
'import/no-unused-modules': 'off',
|
|
85
84
|
'import/order': 'off', // disabled due to conflict with eslint-plugin-perfectionist
|
|
86
85
|
'import/prefer-default-export': 'off',
|
|
87
86
|
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Config } from 'typescript-eslint';
|
|
2
|
+
|
|
3
|
+
type Configs = 'base' | 'local' | 'nextjs' | 'playwright' | 'prettierDisable' | 'react' | 'strict';
|
|
4
|
+
|
|
5
|
+
declare module './index' {
|
|
6
|
+
const config: typeof import('typescript-eslint').config;
|
|
7
|
+
const configs: Record<Configs, Config>;
|
|
8
|
+
|
|
9
|
+
export { config, configs };
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boehringer-ingelheim/eslint-config",
|
|
3
|
-
"version": "7.0.0-naming-convetion-configuration.
|
|
3
|
+
"version": "7.0.0-naming-convetion-configuration.2",
|
|
4
4
|
"description": "Shared eslint configuration used at Boehringer Ingelheim for code styling",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"boehringer",
|
|
@@ -15,9 +15,12 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"files": [
|
|
17
17
|
"configs",
|
|
18
|
-
"lib"
|
|
18
|
+
"lib",
|
|
19
|
+
"index.js",
|
|
20
|
+
"index.d.ts"
|
|
19
21
|
],
|
|
20
22
|
"main": "index.js",
|
|
23
|
+
"types": "index.d.ts",
|
|
21
24
|
"scripts": {
|
|
22
25
|
"prepare": "husky",
|
|
23
26
|
"release": "dotenv -- semantic-release --no-ci",
|