@lvce-editor/eslint-config 1.72.0 → 1.74.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/index.js +3 -64
  2. package/package.json +7 -8
package/index.js CHANGED
@@ -1,57 +1,18 @@
1
1
  import eslint from '@eslint/js'
2
+ import markdown from '@eslint/markdown'
2
3
  import pluginJest from 'eslint-plugin-jest'
3
4
  import nodePlugin from 'eslint-plugin-n'
4
- import perfectionist from 'eslint-plugin-perfectionist'
5
- import { createFileComposition, createFolderStructure, projectStructurePlugin } from 'eslint-plugin-project-structure'
6
- import { mkdirSync } from 'node:fs'
7
- import { join } from 'node:path'
8
- import process from 'node:process'
9
- import tseslint from 'typescript-eslint'
10
5
  import packageJson from 'eslint-plugin-package-json'
6
+ import perfectionist from 'eslint-plugin-perfectionist'
11
7
  import eslintPluginUnicorn from 'eslint-plugin-unicorn'
12
8
  import eslintPluginYml from 'eslint-plugin-yml'
13
- import markdown from '@eslint/markdown'
9
+ import tseslint from 'typescript-eslint'
14
10
 
15
11
  const uri = './rules.js'
16
12
  const tsconfigPlugin = (await import(uri)).default
17
13
 
18
14
  const root = process.cwd()
19
15
 
20
- mkdirSync(join(root, '.tmp'), { recursive: true })
21
-
22
- const folderStructureConfig = createFolderStructure({
23
- projectRoot: root,
24
- structure: [
25
- {
26
- name: 'src',
27
- children: [
28
- {
29
- name: '{camelCase}.ts',
30
- },
31
- {
32
- name: 'parts',
33
- children: [
34
- {
35
- name: '{PascalCase}',
36
- children: [{ name: '{FolderName}.ts' }],
37
- },
38
- ],
39
- },
40
- ],
41
- },
42
- ],
43
- })
44
-
45
- const fileCompositionConfig = createFileComposition({
46
- filesRules: [
47
- {
48
- filePattern: '**/*.ts',
49
- rootSelectorsLimits: [{ selector: ['interface', 'type', 'function', 'arrowFunction', 'class'], limit: 1 }],
50
- rules: [],
51
- },
52
- ],
53
- })
54
-
55
16
  /**
56
17
  * @type {any}
57
18
  */
@@ -253,28 +214,6 @@ export const recommendedNode = [
253
214
  },
254
215
  ]
255
216
 
256
- /**
257
- * @type {any}
258
- */
259
- export const recommendedFolderStructucture = [
260
- {
261
- files: ['src/**/*.ts'],
262
- plugins: {
263
- 'project-structure': projectStructurePlugin,
264
- },
265
- rules: {
266
- // If you have many rules in a separate file.
267
- 'project-structure/file-composition': ['error', fileCompositionConfig],
268
- 'project-structure/folder-structure': ['error', folderStructureConfig],
269
- },
270
- },
271
- {
272
- settings: {
273
- 'project-structure/cache-location': join(root, '.tmp'),
274
- },
275
- },
276
- ]
277
-
278
217
  export const recommendedTsconfig = [...tsconfigPlugin]
279
218
 
280
219
  export default defaultConfig
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/eslint-config",
3
- "version": "1.72.0",
3
+ "version": "1.74.0",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",
@@ -19,18 +19,17 @@
19
19
  "homepage": "https://github.com/lvce-editor/eslint-config#readme",
20
20
  "description": "",
21
21
  "dependencies": {
22
- "@eslint/css": "0.14.0",
23
- "@eslint/js": "9.38.0",
24
- "@eslint/json": "0.13.2",
25
- "@eslint/markdown": "7.5.0",
22
+ "@eslint/css": "0.14.1",
23
+ "@eslint/js": "9.39.1",
24
+ "@eslint/json": "0.14.0",
25
+ "@eslint/markdown": "7.5.1",
26
26
  "eslint-plugin-jest": "29.0.1",
27
27
  "eslint-plugin-n": "17.23.1",
28
- "eslint-plugin-package-json": "0.59.0",
28
+ "eslint-plugin-package-json": "0.63.0",
29
29
  "eslint-plugin-perfectionist": "4.15.1",
30
- "eslint-plugin-project-structure": "3.13.3",
31
30
  "eslint-plugin-unicorn": "62.0.0",
32
31
  "eslint-plugin-yml": "1.19.0",
33
- "typescript-eslint": "8.46.2"
32
+ "typescript-eslint": "8.46.3"
34
33
  },
35
34
  "peerDependencies": {
36
35
  "eslint": ">= 9"