create-lik-app 1.1.3 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.mjs +45 -45
- package/package.json +1 -1
- package/templates/template-react/eslint.config.mjs +32 -14
- package/templates/template-react/package.json +1 -1
- package/templates/template-react-tanstack-jotai/eslint.config.mjs +32 -14
- package/templates/template-react-tanstack-jotai/package.json +9 -9
- package/templates/template-react-tanstack-jotai-tailwindcss/.husky/commit-msg +6 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/.husky/lintstagedrc.cjs +8 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/.husky/pre-commit +10 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/.prettierignore +13 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/.vscode/extensions.json +5 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/README.md +40 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/_gitignore +27 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/commitlint.config.mjs +28 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/config/build/_base.ts +36 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/config/build/development.ts +7 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/config/build/production.ts +1 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/config/build/test.ts +1 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/env/.env +0 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/env/.env.development +2 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/env/.env.production +1 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/eslint.config.mjs +62 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/index.html +13 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/package.json +50 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/postcss.config.js +6 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/prettier.config.mjs +11 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/public/lic.svg +1263 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/public/react.svg +1 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/public/vite.svg +1 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/assets/react.svg +1 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/components/Lic/index.tsx +12 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/main.tsx +21 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/routeTree.gen.ts +145 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/routes/__root.tsx +11 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/routes/_layout/about.tsx +6 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/routes/_layout/index.tsx +6 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/routes/_layout.tsx +23 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/store/index.ts +1 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/store/module/favorite.ts +5 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/styles/animation.css +8 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/styles/main.css +11 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/styles/tailwind.css +30 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/styles/variable.css +21 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/types/auto-imports.d.ts +33 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/types/color.d.ts +1 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/utils/rainbow-print.ts +10 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/views/404/index.tsx +18 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/views/About/index.tsx +7 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/views/Index/Button/index.tsx +24 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/views/Index/React/index.tsx +18 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/views/Index/Vite/index.tsx +20 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/src/views/Index/index.tsx +50 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/tailwind.config.js +8 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/tsconfig.app.json +36 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/tsconfig.json +7 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/tsconfig.node.json +24 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/types/vite-env.d.ts +10 -0
- package/templates/template-react-tanstack-jotai-tailwindcss/vite.config.ts +15 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/.husky/commit-msg +6 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/.husky/lintstagedrc.cjs +8 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/.husky/pre-commit +10 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/.prettierignore +13 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/.vscode/extensions.json +5 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/README.md +40 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/_gitignore +27 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/commitlint.config.mjs +28 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/config/build/_base.ts +36 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/config/build/development.ts +7 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/config/build/production.ts +1 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/config/build/test.ts +1 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/env/.env +0 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/env/.env.development +2 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/env/.env.production +1 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/eslint.config.mjs +62 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/index.html +13 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/package.json +50 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/postcss.config.js +6 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/prettier.config.mjs +11 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/public/lic.svg +1263 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/public/react.svg +1 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/public/vite.svg +1 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/assets/react.svg +1 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/components/Lic/index.tsx +12 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/main.tsx +21 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/routeTree.gen.ts +145 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/routes/__root.tsx +11 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/routes/_layout/about.tsx +6 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/routes/_layout/index.tsx +6 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/routes/_layout.tsx +23 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/store/index.ts +1 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/store/module/favorite.ts +5 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/styles/animation.css +8 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/styles/main.css +11 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/styles/tailwind.css +30 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/styles/variable.css +21 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/types/auto-imports.d.ts +33 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/types/color.d.ts +1 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/utils/rainbow-print.ts +10 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/views/404/index.tsx +18 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/views/About/index.tsx +7 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/views/Index/Button/index.tsx +24 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/views/Index/React/index.tsx +18 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/views/Index/Vite/index.tsx +20 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/src/views/Index/index.tsx +50 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/tailwind.config.js +8 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/tsconfig.app.json +36 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/tsconfig.json +7 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/tsconfig.node.json +24 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/types/vite-env.d.ts +10 -0
- package/templates/template-react18-tanstack-jotai-tailwindcss/vite.config.ts +15 -0
- package/templates/template-vue/eslint.config.js +59 -21
- package/templates/template-vue/package.json +2 -2
@@ -1,24 +1,62 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import
|
1
|
+
import js from '@eslint/js';
|
2
|
+
import globals from 'globals';
|
3
|
+
import reactHooks from 'eslint-plugin-react-hooks';
|
4
|
+
import reactRefresh from 'eslint-plugin-react-refresh';
|
5
|
+
import tseslint from 'typescript-eslint';
|
6
|
+
import prettier from 'eslint-plugin-prettier';
|
7
|
+
import prettierConfig from './prettier.config.mjs';
|
4
8
|
|
5
|
-
export default
|
9
|
+
export default tseslint.config(
|
10
|
+
{ ignores: ['dist', 'node_modules'] },
|
6
11
|
{
|
7
|
-
|
8
|
-
files: ['**/*.{ts,
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
rules: {
|
18
|
-
'@typescript-eslint/consistent-type-imports': 'error', // 要求 import type
|
12
|
+
extends: [js.configs.recommended, ...tseslint.configs.recommended],
|
13
|
+
files: ['**/*.{ts,tsx}'],
|
14
|
+
languageOptions: {
|
15
|
+
ecmaVersion: 2020,
|
16
|
+
globals: globals.browser
|
17
|
+
},
|
18
|
+
plugins: {
|
19
|
+
prettier,
|
20
|
+
'react-hooks': reactHooks,
|
21
|
+
'react-refresh': reactRefresh
|
19
22
|
},
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
23
|
+
rules: {
|
24
|
+
'prettier/prettier': ['error', prettierConfig],
|
25
|
+
'no-useless-escape': 'error',
|
26
|
+
// 'no-undef': 'error', // - for unplugin-auto-import
|
27
|
+
// '@typescript-eslint/no-non-null-assertion': 'error',
|
28
|
+
'no-unused-vars': [
|
29
|
+
'error',
|
30
|
+
// - 未使用的变量都以 _ 开头, 则忽略
|
31
|
+
{
|
32
|
+
argsIgnorePattern: '^_',
|
33
|
+
varsIgnorePattern: '^_'
|
34
|
+
}
|
35
|
+
],
|
36
|
+
'@typescript-eslint/no-unused-vars': [
|
37
|
+
'error',
|
38
|
+
{
|
39
|
+
argsIgnorePattern: '^_',
|
40
|
+
varsIgnorePattern: '^_'
|
41
|
+
}
|
42
|
+
],
|
43
|
+
'@typescript-eslint/consistent-type-imports': 'error', // - 要求 import type
|
44
|
+
'@typescript-eslint/no-use-before-define': [
|
45
|
+
'error',
|
46
|
+
{
|
47
|
+
functions: false
|
48
|
+
}
|
49
|
+
],
|
50
|
+
'@typescript-eslint/ban-ts-comment': 'error',
|
51
|
+
'@typescript-eslint/explicit-module-boundary-types': 'error',
|
52
|
+
'@typescript-eslint/no-explicit-any': 'error',
|
53
|
+
'@typescript-eslint/no-var-requires': 'error',
|
54
|
+
'@typescript-eslint/no-empty-function': 'error',
|
55
|
+
...reactHooks.configs.recommended.rules,
|
56
|
+
'react-refresh/only-export-components': [
|
57
|
+
'warn',
|
58
|
+
{ allowConstantExport: true }
|
59
|
+
]
|
60
|
+
}
|
61
|
+
}
|
62
|
+
);
|