eslint-config-tungsten-flat 0.3.4 → 0.3.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA+B,MAAM,EAAE,MAAM,eAAe,CAAA;;AAKnE,wBA4FE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA+B,MAAM,EAAE,MAAM,eAAe,CAAA;;AAMnE,wBA4GE"}
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { defineConfig, globalIgnores } from 'eslint/config';
2
2
  //export type { CompatibleConfigArray } from 'typescript-eslint' // would use this instead of `as ConfigArray` if typescript-eslint exported this type
3
3
  import tungstenBase from 'eslint-config-tungsten-base-flat';
4
+ import importsRegulation from 'eslint-plugin-imports-regulation';
4
5
  import tseslint from 'typescript-eslint';
5
6
  export default defineConfig([
6
7
  {
@@ -80,5 +81,21 @@ export default defineConfig([
80
81
  //"react/no-unknown-property": ["warn", { ignore: ["for"] }]
81
82
  "react/no-unknown-property": "off"
82
83
  },
84
+ },
85
+ {
86
+ plugins: {
87
+ 'imports-regulation': importsRegulation
88
+ },
89
+ rules: {
90
+ 'imports-regulation/imports-regulation': ['warn', {
91
+ // blank lines between the external imports and internal imports
92
+ blankLinesBetween: 1,
93
+ // blank lines between the imports and whatever follows
94
+ blankLinesAfter: 2,
95
+ // whether to convert imports with only type specifiers into a type declaration
96
+ // import { type A, ... } from 'a' -> import type { A, ... } from 'a'
97
+ preferTypeDeclarations: false
98
+ }]
99
+ }
83
100
  }
84
101
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-tungsten-flat",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -13,6 +13,7 @@
13
13
  "license": "ISC",
14
14
  "dependencies": {
15
15
  "eslint-config-tungsten-base-flat": "^0.3.2",
16
+ "eslint-plugin-imports-regulation": "^0.2.4",
16
17
  "typescript-eslint": "^8.69.0"
17
18
  },
18
19
  "peerDependencies": {
package/src/index.ts CHANGED
@@ -2,6 +2,7 @@
2
2
  import { defineConfig, globalIgnores, Config } from 'eslint/config'
3
3
  //export type { CompatibleConfigArray } from 'typescript-eslint' // would use this instead of `as ConfigArray` if typescript-eslint exported this type
4
4
  import tungstenBase from 'eslint-config-tungsten-base-flat'
5
+ import importsRegulation from 'eslint-plugin-imports-regulation'
5
6
  import tseslint from 'typescript-eslint'
6
7
 
7
8
  export default defineConfig([
@@ -94,6 +95,22 @@ export default defineConfig([
94
95
  //"react/no-unknown-property": ["warn", { ignore: ["for"] }]
95
96
  "react/no-unknown-property": "off"
96
97
  },
98
+ },
99
+ {
100
+ plugins: {
101
+ 'imports-regulation': importsRegulation
102
+ },
103
+ rules: {
104
+ 'imports-regulation/imports-regulation': ['warn', {
105
+ // blank lines between the external imports and internal imports
106
+ blankLinesBetween: 1,
107
+ // blank lines between the imports and whatever follows
108
+ blankLinesAfter: 2,
109
+ // whether to convert imports with only type specifiers into a type declaration
110
+ // import { type A, ... } from 'a' -> import type { A, ... } from 'a'
111
+ preferTypeDeclarations: false
112
+ }]
113
+ }
97
114
  }
98
115
 
99
116
  ])