@layerfi/components 0.1.80 → 0.1.82
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/cjs/index.cjs +1348 -760
- package/dist/esm/index.mjs +1253 -665
- package/dist/esm/index.mjs.map +7 -0
- package/dist/index.css +1353 -76
- package/dist/index.css.map +7 -0
- package/dist/index.d.ts +325 -68
- package/eslint.config.mjs +100 -0
- package/package.json +9 -6
- package/.eslintrc.js +0 -82
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import globals from 'globals'
|
|
2
|
+
|
|
3
|
+
import js from '@eslint/js'
|
|
4
|
+
import reactPlugin from 'eslint-plugin-react'
|
|
5
|
+
import reactHooksPlugin from 'eslint-plugin-react-hooks'
|
|
6
|
+
import stylisticPlugin from '@stylistic/eslint-plugin'
|
|
7
|
+
import tsEslint from 'typescript-eslint'
|
|
8
|
+
import unusedImportsPlugin from 'eslint-plugin-unused-imports'
|
|
9
|
+
|
|
10
|
+
export default tsEslint.config([
|
|
11
|
+
{
|
|
12
|
+
ignores: [
|
|
13
|
+
'build/*',
|
|
14
|
+
'dist/*',
|
|
15
|
+
'bin/*',
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
js.configs.recommended,
|
|
19
|
+
tsEslint.configs.recommended,
|
|
20
|
+
stylisticPlugin.configs['recommended-flat'],
|
|
21
|
+
reactPlugin.configs.flat.recommended,
|
|
22
|
+
reactPlugin.configs.flat['jsx-runtime'],
|
|
23
|
+
{
|
|
24
|
+
plugins: {
|
|
25
|
+
'react-hooks': reactHooksPlugin,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
plugins: {
|
|
30
|
+
'unused-imports': unusedImportsPlugin,
|
|
31
|
+
},
|
|
32
|
+
languageOptions: {
|
|
33
|
+
globals: {
|
|
34
|
+
...globals['shared-node-browser'],
|
|
35
|
+
},
|
|
36
|
+
parserOptions: {
|
|
37
|
+
ecmaFeatures: {
|
|
38
|
+
jsx: true,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
settings: {
|
|
43
|
+
react: {
|
|
44
|
+
version: 'detect',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
rules: {
|
|
48
|
+
'no-console': ['error', {
|
|
49
|
+
allow: ['warn', 'error', 'debug'],
|
|
50
|
+
}],
|
|
51
|
+
|
|
52
|
+
'@stylistic/quotes': ['error', 'single', { avoidEscape: false }],
|
|
53
|
+
'@stylistic/jsx-quotes': ['error', 'prefer-single'],
|
|
54
|
+
'@stylistic/semi': ['error', 'never'],
|
|
55
|
+
'@stylistic/eol-last': ['error', 'always'],
|
|
56
|
+
'@stylistic/indent': ['error', 2],
|
|
57
|
+
'@stylistic/operator-linebreak': [
|
|
58
|
+
'error',
|
|
59
|
+
'before',
|
|
60
|
+
{
|
|
61
|
+
overrides: {
|
|
62
|
+
'=': 'after',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
'@stylistic/max-len': [
|
|
67
|
+
'error',
|
|
68
|
+
{
|
|
69
|
+
code: 100,
|
|
70
|
+
ignoreUrls: true,
|
|
71
|
+
ignoreStrings: true,
|
|
72
|
+
ignoreTemplateLiterals: true,
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
|
|
76
|
+
'no-unused-vars': 'off',
|
|
77
|
+
'@typescript-eslint/no-unused-vars': 'off',
|
|
78
|
+
'unused-imports/no-unused-vars': [
|
|
79
|
+
'error',
|
|
80
|
+
{
|
|
81
|
+
args: 'all',
|
|
82
|
+
argsIgnorePattern: '^_',
|
|
83
|
+
caughtErrors: 'all',
|
|
84
|
+
caughtErrorsIgnorePattern: '^_',
|
|
85
|
+
destructuredArrayIgnorePattern: '^_',
|
|
86
|
+
varsIgnorePattern: '^_',
|
|
87
|
+
ignoreRestSiblings: true,
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
|
|
91
|
+
'react/prop-types': 'off',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
files: ['**/*.tsx', '**/*.ts'],
|
|
96
|
+
rules: {
|
|
97
|
+
'no-restricted-imports': ['error', { patterns: ['*.css'] }],
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
])
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerfi/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.82",
|
|
4
4
|
"description": "Layer React Components",
|
|
5
5
|
"main": "dist/cjs/index.cjs",
|
|
6
6
|
"module": "dist/esm/index.mjs",
|
|
@@ -52,21 +52,21 @@
|
|
|
52
52
|
"@types/react": "^18.2.0",
|
|
53
53
|
"@types/react-datepicker": "^6.2.0",
|
|
54
54
|
"@types/react-dom": "^18.2.0",
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
56
55
|
"esbuild": "^0.19.5",
|
|
57
56
|
"esbuild-jest": "^0.5.0",
|
|
58
57
|
"esbuild-sass-plugin": "^2.16.0",
|
|
59
|
-
"eslint": "^
|
|
58
|
+
"eslint": "^9.15.0",
|
|
60
59
|
"eslint-plugin-react": "^7.37.2",
|
|
61
|
-
"eslint-plugin-react-hooks": "^
|
|
62
|
-
"eslint-plugin-unused-imports": "^
|
|
60
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
61
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
63
62
|
"jest": "^29.7.0",
|
|
64
63
|
"jest-environment-jsdom": "^29.7.0",
|
|
65
64
|
"jsdom": "^22.1.0",
|
|
66
65
|
"npm-dts": "^1.3.12",
|
|
67
66
|
"react": "^18.2.0",
|
|
68
67
|
"react-dom": "^18.2.0",
|
|
69
|
-
"typescript": "^5.6.3"
|
|
68
|
+
"typescript": "^5.6.3",
|
|
69
|
+
"typescript-eslint": "^8.15.0"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@floating-ui/react": "^0.26.8",
|
|
@@ -81,6 +81,9 @@
|
|
|
81
81
|
"swr": "^2.2.4",
|
|
82
82
|
"zustand": "^5.0.1"
|
|
83
83
|
},
|
|
84
|
+
"engines": {
|
|
85
|
+
"node": ">=20.2"
|
|
86
|
+
},
|
|
84
87
|
"jest": {
|
|
85
88
|
"testEnvironment": "jsdom",
|
|
86
89
|
"transform": {
|
package/.eslintrc.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/** @type {import("eslint").Linter.Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
env: {
|
|
4
|
-
browser: true,
|
|
5
|
-
es2021: true,
|
|
6
|
-
node: true,
|
|
7
|
-
},
|
|
8
|
-
extends: [
|
|
9
|
-
'eslint:recommended',
|
|
10
|
-
'plugin:@typescript-eslint/recommended',
|
|
11
|
-
'plugin:react/recommended',
|
|
12
|
-
'plugin:react-hooks/recommended',
|
|
13
|
-
],
|
|
14
|
-
ignorePatterns: ['build/*', 'dist/*', 'bin/*'],
|
|
15
|
-
parser: '@typescript-eslint/parser',
|
|
16
|
-
parserOptions: {
|
|
17
|
-
ecmaFeatures: {
|
|
18
|
-
jsx: true,
|
|
19
|
-
},
|
|
20
|
-
ecmaVersion: 'latest',
|
|
21
|
-
sourceType: 'module',
|
|
22
|
-
},
|
|
23
|
-
plugins: ['@typescript-eslint', '@stylistic', 'unused-imports'],
|
|
24
|
-
rules: {
|
|
25
|
-
'no-console': ['error', { allow: ['warn', 'error', 'debug'] }],
|
|
26
|
-
|
|
27
|
-
'@stylistic/quotes': ['error', 'single', { avoidEscape: false }],
|
|
28
|
-
'@stylistic/jsx-quotes': ['error', 'prefer-single'],
|
|
29
|
-
'@stylistic/semi': ['error', 'never'],
|
|
30
|
-
'@stylistic/eol-last': ['error', 'always'],
|
|
31
|
-
'@stylistic/indent': ['error', 2],
|
|
32
|
-
'@stylistic/operator-linebreak': [
|
|
33
|
-
'error',
|
|
34
|
-
'before',
|
|
35
|
-
{
|
|
36
|
-
overrides: {
|
|
37
|
-
'=': 'after',
|
|
38
|
-
},
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
'@stylistic/max-len': [
|
|
42
|
-
'error',
|
|
43
|
-
{
|
|
44
|
-
code: 100,
|
|
45
|
-
ignoreUrls: true,
|
|
46
|
-
ignoreStrings: true,
|
|
47
|
-
ignoreTemplateLiterals: true
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
|
|
51
|
-
'@typescript-eslint/no-unused-vars': 'off',
|
|
52
|
-
'unused-imports/no-unused-imports': 'error',
|
|
53
|
-
'unused-imports/no-unused-vars': [
|
|
54
|
-
'error',
|
|
55
|
-
{
|
|
56
|
-
argsIgnorePattern: '^_',
|
|
57
|
-
varsIgnorePattern: '^_',
|
|
58
|
-
caughtErrorsIgnorePattern: '^_',
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
|
|
62
|
-
'react/prop-types': 'off',
|
|
63
|
-
},
|
|
64
|
-
overrides: [
|
|
65
|
-
{
|
|
66
|
-
files: ['*.tsx'],
|
|
67
|
-
rules: {
|
|
68
|
-
'no-restricted-imports': [
|
|
69
|
-
'error',
|
|
70
|
-
{
|
|
71
|
-
patterns: ['*.css'],
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
settings: {
|
|
78
|
-
react: {
|
|
79
|
-
version: 'detect',
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
}
|