sim-node-lib 0.4.4 → 0.4.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.
- package/dist/Eslint/index.d.ts +3 -3
- package/dist/Eslint/index.js +77 -71
- package/package.json +1 -1
package/dist/Eslint/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ declare const simEslint: any;
|
|
|
2
2
|
declare const eslintPluginPrettierRecommended: any;
|
|
3
3
|
declare const FlatCompat: any;
|
|
4
4
|
declare const compat: any;
|
|
5
|
-
declare
|
|
6
|
-
declare
|
|
7
|
-
declare
|
|
5
|
+
declare function basic(dirname: string): any[];
|
|
6
|
+
declare function recommendedBasic(dirname: string): any[];
|
|
7
|
+
declare function recommendedTypeChecked(dirname: string): any[];
|
package/dist/Eslint/index.js
CHANGED
|
@@ -2,80 +2,86 @@ const simEslint = require('./plugin/sim-eslint');
|
|
|
2
2
|
const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended');
|
|
3
3
|
const { FlatCompat } = require('@eslint/eslintrc');
|
|
4
4
|
const compat = new FlatCompat({ resolvePluginsRelativeTo: __dirname });
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
function basic(dirname) {
|
|
6
|
+
return [
|
|
7
|
+
...compat.config({
|
|
8
|
+
plugins: ['@typescript-eslint'],
|
|
9
|
+
parser: '@typescript-eslint/parser',
|
|
10
|
+
parserOptions: {
|
|
11
|
+
project: true,
|
|
12
|
+
tsconfigRootDir: dirname,
|
|
13
|
+
},
|
|
14
|
+
ignorePatterns: ['database/**', 'build/**'],
|
|
15
|
+
}),
|
|
16
|
+
{
|
|
17
|
+
files: ['**/*.ts'],
|
|
18
|
+
ignores: ['/database/**/*.ts'],
|
|
19
|
+
languageOptions: {
|
|
20
|
+
sourceType: 'module',
|
|
21
|
+
ecmaVersion: 'latest',
|
|
22
|
+
},
|
|
23
|
+
plugins: { 'sim-eslint': simEslint },
|
|
24
|
+
rules: {
|
|
25
|
+
'sim-eslint/ensure-bindings': 'error',
|
|
26
|
+
},
|
|
12
27
|
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
28
|
+
eslintPluginPrettierRecommended,
|
|
29
|
+
];
|
|
30
|
+
}
|
|
31
|
+
function recommendedBasic(dirname) {
|
|
32
|
+
return [
|
|
33
|
+
...compat.config({
|
|
34
|
+
extends: ['plugin:@typescript-eslint/recommended'],
|
|
35
|
+
plugins: ['@typescript-eslint'],
|
|
36
|
+
parser: '@typescript-eslint/parser',
|
|
37
|
+
parserOptions: {
|
|
38
|
+
project: true,
|
|
39
|
+
tsconfigRootDir: dirname,
|
|
40
|
+
},
|
|
41
|
+
ignorePatterns: ['database/**', 'build/**'],
|
|
42
|
+
}),
|
|
43
|
+
{
|
|
44
|
+
files: ['**/*.ts'],
|
|
45
|
+
ignores: ['/database/**/*.ts'],
|
|
46
|
+
languageOptions: {
|
|
47
|
+
sourceType: 'module',
|
|
48
|
+
ecmaVersion: 'latest',
|
|
49
|
+
},
|
|
50
|
+
plugins: { 'sim-eslint': simEslint },
|
|
51
|
+
rules: {
|
|
52
|
+
'sim-eslint/ensure-bindings': 'error',
|
|
53
|
+
},
|
|
21
54
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
55
|
+
eslintPluginPrettierRecommended,
|
|
56
|
+
];
|
|
57
|
+
}
|
|
58
|
+
function recommendedTypeChecked(dirname) {
|
|
59
|
+
return [
|
|
60
|
+
...compat.config({
|
|
61
|
+
extends: ['plugin:@typescript-eslint/recommended-type-checked'],
|
|
62
|
+
plugins: ['@typescript-eslint'],
|
|
63
|
+
parser: '@typescript-eslint/parser',
|
|
64
|
+
parserOptions: {
|
|
65
|
+
project: true,
|
|
66
|
+
tsconfigRootDir: dirname,
|
|
67
|
+
},
|
|
68
|
+
ignorePatterns: ['database/**', 'build/**'],
|
|
69
|
+
}),
|
|
70
|
+
{
|
|
71
|
+
files: ['**/*.ts'],
|
|
72
|
+
ignores: ['/database/**/*.ts'],
|
|
73
|
+
languageOptions: {
|
|
74
|
+
sourceType: 'module',
|
|
75
|
+
ecmaVersion: 'latest',
|
|
76
|
+
},
|
|
77
|
+
plugins: { 'sim-eslint': simEslint },
|
|
78
|
+
rules: {
|
|
79
|
+
'sim-eslint/ensure-bindings': 'error',
|
|
80
|
+
},
|
|
25
81
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const recommendedBasic = [
|
|
30
|
-
...compat.config({
|
|
31
|
-
extends: ['plugin:@typescript-eslint/recommended'],
|
|
32
|
-
plugins: ['@typescript-eslint'],
|
|
33
|
-
parser: '@typescript-eslint/parser',
|
|
34
|
-
parserOptions: {
|
|
35
|
-
project: true,
|
|
36
|
-
tsconfigRootDir: __dirname,
|
|
37
|
-
},
|
|
38
|
-
ignorePatterns: ['database/**', 'build/**'],
|
|
39
|
-
}),
|
|
40
|
-
{
|
|
41
|
-
files: ['**/*.ts'],
|
|
42
|
-
ignores: ['/database/**/*.ts'],
|
|
43
|
-
languageOptions: {
|
|
44
|
-
sourceType: 'module',
|
|
45
|
-
ecmaVersion: 'latest',
|
|
46
|
-
},
|
|
47
|
-
plugins: { 'sim-eslint': simEslint },
|
|
48
|
-
rules: {
|
|
49
|
-
'sim-eslint/ensure-bindings': 'error',
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
eslintPluginPrettierRecommended,
|
|
53
|
-
];
|
|
54
|
-
const recommendedTypeChecked = [
|
|
55
|
-
...compat.config({
|
|
56
|
-
extends: ['plugin:@typescript-eslint/recommended-type-checked'],
|
|
57
|
-
plugins: ['@typescript-eslint'],
|
|
58
|
-
parser: '@typescript-eslint/parser',
|
|
59
|
-
parserOptions: {
|
|
60
|
-
project: true,
|
|
61
|
-
tsconfigRootDir: __dirname,
|
|
62
|
-
},
|
|
63
|
-
ignorePatterns: ['database/**', 'build/**'],
|
|
64
|
-
}),
|
|
65
|
-
{
|
|
66
|
-
files: ['**/*.ts'],
|
|
67
|
-
ignores: ['/database/**/*.ts'],
|
|
68
|
-
languageOptions: {
|
|
69
|
-
sourceType: 'module',
|
|
70
|
-
ecmaVersion: 'latest',
|
|
71
|
-
},
|
|
72
|
-
plugins: { 'sim-eslint': simEslint },
|
|
73
|
-
rules: {
|
|
74
|
-
'sim-eslint/ensure-bindings': 'error',
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
eslintPluginPrettierRecommended,
|
|
78
|
-
];
|
|
82
|
+
eslintPluginPrettierRecommended,
|
|
83
|
+
];
|
|
84
|
+
}
|
|
79
85
|
module.exports.basic = basic;
|
|
80
86
|
module.exports.recommendedBasic = recommendedBasic;
|
|
81
87
|
module.exports.recommendedTypeChecked = recommendedTypeChecked;
|