@inyur/console-warn-once 1.0.1 → 1.0.100
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/.prettierrc +20 -7
- package/.stylelintrc.json +29 -0
- package/eslint.config.mjs +91 -0
- package/package.json +8 -8
- package/.eslintrc.cjs +0 -24
package/.prettierrc
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
"printWidth":
|
|
3
|
-
"trailingComma": "all",
|
|
4
|
-
"singleQuote": true,
|
|
2
|
+
"printWidth": 100,
|
|
5
3
|
"tabWidth": 2,
|
|
4
|
+
"useTabs": false,
|
|
6
5
|
"semi": true,
|
|
7
|
-
"
|
|
8
|
-
"
|
|
6
|
+
"singleQuote": false,
|
|
7
|
+
"trailingComma": "all",
|
|
9
8
|
"bracketSpacing": true,
|
|
10
|
-
"
|
|
11
|
-
"
|
|
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
|
+
]
|
|
12
25
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inyur/console-warn-once",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.100",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/mjs/index.js",
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
"author": "",
|
|
21
21
|
"license": "ISC",
|
|
22
22
|
"devDependencies": {
|
|
23
|
+
"@eslint/js": "^9.38.0",
|
|
23
24
|
"@types/lodash": "^4.17.16",
|
|
24
25
|
"@types/node": "^20.17.46",
|
|
25
26
|
"@types/web": "^0.0.233",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"eslint": "^
|
|
29
|
-
"eslint-
|
|
30
|
-
"eslint-plugin-prettier": "^5.4.0",
|
|
31
|
-
"nestjs-i18n": "^10.5.1",
|
|
27
|
+
"eslint": "^9.38.0",
|
|
28
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
29
|
+
"eslint-plugin-import": "^2.32.0",
|
|
30
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
32
31
|
"nodemon": "^3.1.10",
|
|
33
32
|
"prettier": "^3.5.3",
|
|
34
|
-
"typescript": "^5.8.3"
|
|
33
|
+
"typescript": "^5.8.3",
|
|
34
|
+
"typescript-eslint": "^8.46.2"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
package/.eslintrc.cjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
parser: '@typescript-eslint/parser',
|
|
3
|
-
parserOptions: {
|
|
4
|
-
project: 'tsconfig.json',
|
|
5
|
-
tsconfigRootDir: __dirname,
|
|
6
|
-
sourceType: 'module',
|
|
7
|
-
},
|
|
8
|
-
plugins: ['@typescript-eslint/eslint-plugin'],
|
|
9
|
-
extends: [
|
|
10
|
-
'plugin:@typescript-eslint/recommended',
|
|
11
|
-
'plugin:prettier/recommended',
|
|
12
|
-
],
|
|
13
|
-
root: true,
|
|
14
|
-
env: {
|
|
15
|
-
node: true,
|
|
16
|
-
},
|
|
17
|
-
ignorePatterns: ['.eslintrc.js'],
|
|
18
|
-
rules: {
|
|
19
|
-
'@typescript-eslint/interface-name-prefix': 'off',
|
|
20
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
21
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
22
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
23
|
-
},
|
|
24
|
-
};
|