eslint-plugin-stamhoofd 2.89.0 → 2.89.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/package.json +3 -2
- package/src/index.js +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-stamhoofd",
|
|
3
|
-
"version": "2.89.
|
|
3
|
+
"version": "2.89.2",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"license": "UNLICENCED",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
"@eslint/js": "^9.11.1",
|
|
16
16
|
"@stylistic/eslint-plugin": "^2.8.0",
|
|
17
17
|
"eslint": "^9.11.1",
|
|
18
|
+
"eslint-plugin-import": "^2.32.0",
|
|
18
19
|
"eslint-plugin-jest": "^28.8.3",
|
|
19
20
|
"eslint-plugin-vue": "^9.28.0",
|
|
20
21
|
"typescript-eslint": "^8.7.0"
|
|
21
22
|
},
|
|
22
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "087ecfc8ad07d7b26a8cc680ddd3cb562eaa12e4"
|
|
23
24
|
}
|
package/src/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import tseslint from 'typescript-eslint';
|
|
3
3
|
import eslint from '@eslint/js';
|
|
4
4
|
import stylistic from '@stylistic/eslint-plugin'
|
|
5
|
+
import importPlugin from 'eslint-plugin-import';
|
|
5
6
|
|
|
6
7
|
// Configs
|
|
7
8
|
import frontend from './configs/frontend.js';
|
|
@@ -12,6 +13,14 @@ import jest from 'eslint-plugin-jest'
|
|
|
12
13
|
const baseRules = [
|
|
13
14
|
eslint.configs.recommended,
|
|
14
15
|
...tseslint.configs.recommendedTypeChecked,
|
|
16
|
+
{
|
|
17
|
+
plugins: {
|
|
18
|
+
'import': importPlugin
|
|
19
|
+
},
|
|
20
|
+
rules: {
|
|
21
|
+
'import/no-cycle': 'error'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
15
24
|
stylistic.configs.customize({
|
|
16
25
|
// the following options are the default values
|
|
17
26
|
indent: 4,
|