@inyur/console-warn-once 1.0.100 → 1.0.101
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 +5 -2
- package/.gitlab-ci.yml +0 -11
- package/.prettierrc +0 -25
- package/.renovaterc.json5 +0 -6
- package/.stylelintrc.json +0 -29
- package/eslint.config.mjs +0 -91
- package/fixup.sh +0 -11
- package/src/console-warn-once.ts +0 -17
- package/src/index.ts +0 -2
- package/tsconfig.cjs.json +0 -8
- package/tsconfig.json +0 -28
- package/tsconfig.mjs.json +0 -8
- package/tsconfig.types.json +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inyur/console-warn-once",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.101",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/mjs/index.js",
|
|
@@ -35,5 +35,8 @@
|
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
|
-
}
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"dist"
|
|
41
|
+
]
|
|
39
42
|
}
|
package/.gitlab-ci.yml
DELETED
package/.prettierrc
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"printWidth": 100,
|
|
3
|
-
"tabWidth": 2,
|
|
4
|
-
"useTabs": false,
|
|
5
|
-
"semi": true,
|
|
6
|
-
"singleQuote": false,
|
|
7
|
-
"trailingComma": "all",
|
|
8
|
-
"bracketSpacing": true,
|
|
9
|
-
"arrowParens": "avoid",
|
|
10
|
-
"overrides": [
|
|
11
|
-
{
|
|
12
|
-
"files": [
|
|
13
|
-
"**/login/pages/*.tsx",
|
|
14
|
-
"**/account/pages/*.tsx",
|
|
15
|
-
"**/login/Template.tsx",
|
|
16
|
-
"**/account/Template.tsx",
|
|
17
|
-
"**/login/UserProfileFormFields.tsx",
|
|
18
|
-
"KcApp.tsx"
|
|
19
|
-
],
|
|
20
|
-
"options": {
|
|
21
|
-
"printWidth": 150
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
}
|
package/.renovaterc.json5
DELETED
package/.stylelintrc.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": [
|
|
3
|
-
"stylelint-config-standard-scss",
|
|
4
|
-
"stylelint-scss",
|
|
5
|
-
"stylelint-prettier/recommended",
|
|
6
|
-
"stylelint-config-idiomatic-order"
|
|
7
|
-
],
|
|
8
|
-
"customSyntax": "postcss-scss",
|
|
9
|
-
"plugins": [
|
|
10
|
-
"stylelint-scss"
|
|
11
|
-
],
|
|
12
|
-
"rules": {
|
|
13
|
-
"prettier/prettier": true,
|
|
14
|
-
"selector-class-pattern": [
|
|
15
|
-
"^[a-z][a-zA-Z0-9]*$",
|
|
16
|
-
{
|
|
17
|
-
"message": "Expected class selector to be in camelCase"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"at-rule-no-unknown": null,
|
|
21
|
-
"scss/at-rule-no-unknown": true,
|
|
22
|
-
"selector-pseudo-class-no-unknown": [
|
|
23
|
-
true,
|
|
24
|
-
{
|
|
25
|
-
"ignorePseudoClasses": ["global"]
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
}
|
package/eslint.config.mjs
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import js from "@eslint/js";
|
|
2
|
-
import { createTypeScriptImportResolver } from "eslint-import-resolver-typescript";
|
|
3
|
-
import eslintPluginImport from "eslint-plugin-import";
|
|
4
|
-
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
|
|
5
|
-
import tseslint from "typescript-eslint";
|
|
6
|
-
|
|
7
|
-
export const globalEslintConfig = [
|
|
8
|
-
{
|
|
9
|
-
ignores: ["dist", "**/.*", "*.vue", "**/*.css", "**/*.scss"],
|
|
10
|
-
},
|
|
11
|
-
js.configs.recommended,
|
|
12
|
-
...tseslint.configs.recommended,
|
|
13
|
-
eslintPluginPrettierRecommended,
|
|
14
|
-
{
|
|
15
|
-
files: ["**/*.stories.tsx", "**/*.story.tsx", "src-app/**"],
|
|
16
|
-
rules: {
|
|
17
|
-
"i18next/no-literal-string": "off",
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
ignores: ["dist/**", "public/**"],
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
files: ["**/*.stories.*"],
|
|
25
|
-
rules: {
|
|
26
|
-
"import/no-anonymous-default-export": "off",
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
eslintPluginImport.flatConfigs.recommended,
|
|
30
|
-
eslintPluginImport.flatConfigs.typescript,
|
|
31
|
-
{
|
|
32
|
-
rules: {
|
|
33
|
-
"import/order": [
|
|
34
|
-
"error",
|
|
35
|
-
{
|
|
36
|
-
groups: ["builtin", "external", ["internal", "parent", "sibling", "index"], "unknown"],
|
|
37
|
-
pathGroups: [
|
|
38
|
-
{
|
|
39
|
-
pattern: "./*.module.scss",
|
|
40
|
-
patternOptions: { dot: true, nocomment: true },
|
|
41
|
-
group: "sibling",
|
|
42
|
-
position: "after",
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
pattern: "./index.css",
|
|
46
|
-
patternOptions: { dot: true, nocomment: true },
|
|
47
|
-
group: "sibling",
|
|
48
|
-
position: "after",
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
pattern: "../index.scss",
|
|
52
|
-
patternOptions: { dot: true, nocomment: true },
|
|
53
|
-
group: "sibling",
|
|
54
|
-
position: "after",
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
warnOnUnassignedImports: true,
|
|
58
|
-
pathGroupsExcludedImportTypes: [],
|
|
59
|
-
"newlines-between": "always",
|
|
60
|
-
alphabetize: {
|
|
61
|
-
order: "asc",
|
|
62
|
-
caseInsensitive: true,
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
|
-
settings: {
|
|
68
|
-
"import/resolver": {
|
|
69
|
-
// You will also need to install and configure the TypeScript resolver
|
|
70
|
-
// See also https://github.com/import-js/eslint-import-resolver-typescript#configuration
|
|
71
|
-
typescript: true,
|
|
72
|
-
// node: true
|
|
73
|
-
},
|
|
74
|
-
"import/resolver-next": [
|
|
75
|
-
createTypeScriptImportResolver({
|
|
76
|
-
alwaysTryTypes: true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
|
|
77
|
-
}),
|
|
78
|
-
],
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
ignores: ["**/.save/*"],
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
rules: {
|
|
86
|
-
"react-refresh/only-export-components": "off",
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
];
|
|
90
|
-
|
|
91
|
-
export default tseslint.config(globalEslintConfig);
|
package/fixup.sh
DELETED
package/src/console-warn-once.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare const console: {
|
|
2
|
-
warn(message?: any, ...optionalParams: any[]): void;
|
|
3
|
-
};
|
|
4
|
-
|
|
5
|
-
const ref: { showed: string[] } = {
|
|
6
|
-
showed: [],
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
function consoleWarnOnce(msg: string): void {
|
|
10
|
-
if (ref.showed.includes(msg)) return;
|
|
11
|
-
ref.showed.push(msg);
|
|
12
|
-
console.warn(msg);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { consoleWarnOnce };
|
|
16
|
-
|
|
17
|
-
export default consoleWarnOnce;
|
package/src/index.ts
DELETED
package/tsconfig.cjs.json
DELETED
package/tsconfig.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"allowJs": true,
|
|
4
|
-
"allowSyntheticDefaultImports": true,
|
|
5
|
-
"baseUrl": "src",
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"sourceMap": true,
|
|
9
|
-
"inlineSourceMap": false,
|
|
10
|
-
"lib": ["esnext"],
|
|
11
|
-
"listEmittedFiles": false,
|
|
12
|
-
"listFiles": false,
|
|
13
|
-
"moduleResolution": "node",
|
|
14
|
-
"noFallthroughCasesInSwitch": true,
|
|
15
|
-
"pretty": true,
|
|
16
|
-
"resolveJsonModule": true,
|
|
17
|
-
"rootDir": "src",
|
|
18
|
-
"skipLibCheck": true,
|
|
19
|
-
"strict": true,
|
|
20
|
-
"traceResolution": false,
|
|
21
|
-
"strictPropertyInitialization": false,
|
|
22
|
-
"emitDecoratorMetadata": true,
|
|
23
|
-
"experimentalDecorators": true
|
|
24
|
-
},
|
|
25
|
-
"compileOnSave": false,
|
|
26
|
-
"exclude": ["node_modules", "dist"],
|
|
27
|
-
"include": ["src"]
|
|
28
|
-
}
|
package/tsconfig.mjs.json
DELETED