@undp/create-app 0.2.13 → 0.2.15
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/bin/generateFiles/generatePackageJson.js +12 -30
- package/bin/generateFiles/generateViteConfig.js +8 -5
- package/bin/index.js +1 -1
- package/bin/promptUser.js +21 -2
- package/bin/templates/next/auth/biome.json +67 -0
- package/bin/templates/next/basic/biome.json +67 -0
- package/bin/templates/vite/basic/biome.json +67 -0
- package/bin/templates/vite/query/biome.json +67 -0
- package/bin/templates/vite/query+router/biome.json +67 -0
- package/bin/templates/vite/query+router/src/routes/queryDemo.tsx +5 -5
- package/bin/templates/vite/router/biome.json +67 -0
- package/bin/templates/vite/router/src/routes/about.tsx +5 -5
- package/bin/templates/viteWithLanguage/basic/README.md +75 -0
- package/bin/templates/viteWithLanguage/basic/biome.json +67 -0
- package/bin/templates/viteWithLanguage/basic/index.html +13 -0
- package/bin/templates/viteWithLanguage/basic/public/favicon.ico +0 -0
- package/bin/templates/viteWithLanguage/basic/public/imgs/Tailwind_CSS_Logo.svg +1 -0
- package/bin/templates/viteWithLanguage/basic/public/imgs/Vitejs-logo.svg +15 -0
- package/bin/templates/viteWithLanguage/basic/public/imgs/Zustand-logo.svg +266 -0
- package/bin/templates/viteWithLanguage/basic/public/imgs/undp-logo-blue.svg +1 -0
- package/bin/templates/viteWithLanguage/basic/src/App.tsx +95 -0
- package/bin/templates/viteWithLanguage/basic/src/assets/undp-logo-blue.svg +1 -0
- package/bin/templates/viteWithLanguage/basic/src/i18n.ts +31 -0
- package/bin/templates/viteWithLanguage/basic/src/locales/en/common.json +6 -0
- package/bin/templates/viteWithLanguage/basic/src/locales/es/common.json +6 -0
- package/bin/templates/viteWithLanguage/basic/src/locales/fr/common.json +6 -0
- package/bin/templates/viteWithLanguage/basic/src/main.tsx +15 -0
- package/bin/templates/viteWithLanguage/basic/src/stores/counter.ts +23 -0
- package/bin/templates/viteWithLanguage/basic/src/styles/fonts.css +213 -0
- package/bin/templates/viteWithLanguage/basic/src/styles/style.css +3 -0
- package/bin/templates/viteWithLanguage/basic/src/vite-env.d.ts +1 -0
- package/bin/templates/viteWithLanguage/basic/tailwind.config.js +7 -0
- package/bin/templates/viteWithLanguage/basic/tsconfig.json +29 -0
- package/bin/templates/viteWithLanguage/basic/tsconfig.node.json +9 -0
- package/bin/templates/viteWithLanguage/basic/vite.config.ts +58 -0
- package/bin/templates/viteWithLanguage/query/README.md +80 -0
- package/bin/templates/viteWithLanguage/query/biome.json +67 -0
- package/bin/templates/viteWithLanguage/query/index.html +13 -0
- package/bin/templates/viteWithLanguage/query/public/favicon.ico +0 -0
- package/bin/templates/viteWithLanguage/query/public/imgs/Tailwind_CSS_Logo.svg +1 -0
- package/bin/templates/viteWithLanguage/query/public/imgs/Tanstack-logo.png +0 -0
- package/bin/templates/viteWithLanguage/query/public/imgs/Vitejs-logo.svg +15 -0
- package/bin/templates/viteWithLanguage/query/public/imgs/Zustand-logo.svg +266 -0
- package/bin/templates/viteWithLanguage/query/public/imgs/undp-logo-blue.svg +1 -0
- package/bin/templates/viteWithLanguage/query/src/App.tsx +125 -0
- package/bin/templates/viteWithLanguage/query/src/assets/undp-logo-blue.svg +1 -0
- package/bin/templates/viteWithLanguage/query/src/constants.ts +16 -0
- package/bin/templates/viteWithLanguage/query/src/i18n.ts +31 -0
- package/bin/templates/viteWithLanguage/query/src/integration/tanstack-query.tsx +28 -0
- package/bin/templates/viteWithLanguage/query/src/locales/en/common.json +8 -0
- package/bin/templates/viteWithLanguage/query/src/locales/es/common.json +8 -0
- package/bin/templates/viteWithLanguage/query/src/locales/fr/common.json +8 -0
- package/bin/templates/viteWithLanguage/query/src/main.tsx +24 -0
- package/bin/templates/viteWithLanguage/query/src/stores/counter.ts +23 -0
- package/bin/templates/viteWithLanguage/query/src/styles/fonts.css +213 -0
- package/bin/templates/viteWithLanguage/query/src/styles/style.css +3 -0
- package/bin/templates/viteWithLanguage/query/src/vite-env.d.ts +1 -0
- package/bin/templates/viteWithLanguage/query/tailwind.config.js +7 -0
- package/bin/templates/viteWithLanguage/query/tsconfig.json +29 -0
- package/bin/templates/viteWithLanguage/query/tsconfig.node.json +9 -0
- package/bin/templates/viteWithLanguage/query/vite.config.ts +58 -0
- package/bin/templates/viteWithLanguage/query+router/README.md +111 -0
- package/bin/templates/viteWithLanguage/query+router/biome.json +67 -0
- package/bin/templates/viteWithLanguage/query+router/index.html +13 -0
- package/bin/templates/viteWithLanguage/query+router/public/favicon.ico +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/imgs/Tailwind_CSS_Logo.svg +1 -0
- package/bin/templates/viteWithLanguage/query+router/public/imgs/Tanstack-logo.png +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/imgs/Vitejs-logo.svg +15 -0
- package/bin/templates/viteWithLanguage/query+router/public/imgs/Zustand-logo.svg +266 -0
- package/bin/templates/viteWithLanguage/query+router/public/imgs/undp-logo-blue.svg +1 -0
- package/bin/templates/viteWithLanguage/query+router/src/App.tsx +75 -0
- package/bin/templates/viteWithLanguage/query+router/src/Icons.tsx +74 -0
- package/bin/templates/viteWithLanguage/query+router/src/assets/undp-logo-blue.svg +1 -0
- package/bin/templates/viteWithLanguage/query+router/src/components/Footer.tsx +16 -0
- package/bin/templates/viteWithLanguage/query+router/src/components/Header.tsx +70 -0
- package/bin/templates/viteWithLanguage/query+router/src/constants.ts +16 -0
- package/bin/templates/viteWithLanguage/query+router/src/i18n.ts +31 -0
- package/bin/templates/viteWithLanguage/query+router/src/integration/tanstack-query.tsx +28 -0
- package/bin/templates/viteWithLanguage/query+router/src/locales/en/common.json +13 -0
- package/bin/templates/viteWithLanguage/query+router/src/locales/es/common.json +13 -0
- package/bin/templates/viteWithLanguage/query+router/src/locales/fr/common.json +14 -0
- package/bin/templates/viteWithLanguage/query+router/src/main.tsx +95 -0
- package/bin/templates/viteWithLanguage/query+router/src/routes/queryDemo.tsx +78 -0
- package/bin/templates/viteWithLanguage/query+router/src/stores/counter.ts +23 -0
- package/bin/templates/viteWithLanguage/query+router/src/styles/fonts.css +213 -0
- package/bin/templates/viteWithLanguage/query+router/src/styles/style.css +3 -0
- package/bin/templates/viteWithLanguage/query+router/src/vite-env.d.ts +1 -0
- package/bin/templates/viteWithLanguage/query+router/tailwind.config.js +7 -0
- package/bin/templates/viteWithLanguage/query+router/tsconfig.json +29 -0
- package/bin/templates/viteWithLanguage/query+router/tsconfig.node.json +9 -0
- package/bin/templates/viteWithLanguage/query+router/vite.config.ts +58 -0
- package/bin/templates/viteWithLanguage/router/README.md +106 -0
- package/bin/templates/viteWithLanguage/router/biome.json +67 -0
- package/bin/templates/viteWithLanguage/router/index.html +13 -0
- package/bin/templates/viteWithLanguage/router/public/favicon.ico +0 -0
- package/bin/templates/viteWithLanguage/router/public/imgs/Tailwind_CSS_Logo.svg +1 -0
- package/bin/templates/viteWithLanguage/router/public/imgs/Tanstack-logo.png +0 -0
- package/bin/templates/viteWithLanguage/router/public/imgs/Vitejs-logo.svg +15 -0
- package/bin/templates/viteWithLanguage/router/public/imgs/Zustand-logo.svg +266 -0
- package/bin/templates/viteWithLanguage/router/public/imgs/undp-logo-blue.svg +1 -0
- package/bin/templates/viteWithLanguage/router/src/App.tsx +74 -0
- package/bin/templates/viteWithLanguage/router/src/Icons.tsx +74 -0
- package/bin/templates/viteWithLanguage/router/src/assets/undp-logo-blue.svg +1 -0
- package/bin/templates/viteWithLanguage/router/src/components/Footer.tsx +16 -0
- package/bin/templates/viteWithLanguage/router/src/components/Header.tsx +70 -0
- package/bin/templates/viteWithLanguage/router/src/constants.ts +16 -0
- package/bin/templates/viteWithLanguage/router/src/i18n.ts +31 -0
- package/bin/templates/viteWithLanguage/router/src/locales/en/common.json +11 -0
- package/bin/templates/viteWithLanguage/router/src/locales/es/common.json +11 -0
- package/bin/templates/viteWithLanguage/router/src/locales/fr/common.json +11 -0
- package/bin/templates/viteWithLanguage/router/src/main.tsx +89 -0
- package/bin/templates/viteWithLanguage/router/src/routes/about.tsx +58 -0
- package/bin/templates/viteWithLanguage/router/src/stores/counter.ts +23 -0
- package/bin/templates/viteWithLanguage/router/src/styles/fonts.css +213 -0
- package/bin/templates/viteWithLanguage/router/src/styles/style.css +3 -0
- package/bin/templates/viteWithLanguage/router/src/vite-env.d.ts +1 -0
- package/bin/templates/viteWithLanguage/router/tailwind.config.js +7 -0
- package/bin/templates/viteWithLanguage/router/tsconfig.json +29 -0
- package/bin/templates/viteWithLanguage/router/tsconfig.node.json +9 -0
- package/bin/templates/viteWithLanguage/router/vite.config.ts +58 -0
- package/package.json +1 -1
- package/bin/templates/next/auth/.prettierrc +0 -10
- package/bin/templates/next/auth/eslint.config.mjs +0 -103
- package/bin/templates/next/basic/.prettierrc +0 -10
- package/bin/templates/next/basic/eslint.config.mjs +0 -103
- package/bin/templates/vite/basic/.prettierrc +0 -10
- package/bin/templates/vite/basic/eslint.config.mjs +0 -97
- package/bin/templates/vite/query/.prettierrc +0 -10
- package/bin/templates/vite/query/eslint.config.mjs +0 -97
- package/bin/templates/vite/query+router/.prettierrc +0 -10
- package/bin/templates/vite/query+router/eslint.config.mjs +0 -97
- package/bin/templates/vite/router/.prettierrc +0 -10
- package/bin/templates/vite/router/eslint.config.mjs +0 -97
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import js from '@eslint/js';
|
|
2
|
-
import tseslint from 'typescript-eslint';
|
|
3
|
-
import pluginReact from 'eslint-plugin-react';
|
|
4
|
-
import reactHooks from 'eslint-plugin-react-hooks';
|
|
5
|
-
import importPlugin from 'eslint-plugin-import';
|
|
6
|
-
import jsxA11y from 'eslint-plugin-jsx-a11y';
|
|
7
|
-
import { defineConfig } from 'eslint/config';
|
|
8
|
-
import prettierConfig from 'eslint-config-prettier';
|
|
9
|
-
import prettierPlugin from 'eslint-plugin-prettier';
|
|
10
|
-
|
|
11
|
-
export default defineConfig([
|
|
12
|
-
{
|
|
13
|
-
ignores: [
|
|
14
|
-
'node_modules/**',
|
|
15
|
-
'build/**',
|
|
16
|
-
'public/**',
|
|
17
|
-
'dist/**',
|
|
18
|
-
'storybook-static/**',
|
|
19
|
-
'dist-ssr/**',
|
|
20
|
-
'coverage/**',
|
|
21
|
-
'**/*.test.js',
|
|
22
|
-
'**/__snapshots__/**',
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
js.configs.recommended,
|
|
26
|
-
reactHooks.configs.flat.recommended,
|
|
27
|
-
...tseslint.configs.recommended,
|
|
28
|
-
{
|
|
29
|
-
files: ['**/*.{js,mjs,cjs,ts,jsx,tsx,ts}'],
|
|
30
|
-
plugins: {
|
|
31
|
-
react: pluginReact,
|
|
32
|
-
'react-hooks': reactHooks,
|
|
33
|
-
import: importPlugin,
|
|
34
|
-
'jsx-a11y': jsxA11y,
|
|
35
|
-
prettier: prettierPlugin,
|
|
36
|
-
},
|
|
37
|
-
settings: {
|
|
38
|
-
react: {
|
|
39
|
-
version: 'detect',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
rules: {
|
|
43
|
-
// React rules
|
|
44
|
-
'react/self-closing-comp': ['error', { component: true, html: true }],
|
|
45
|
-
'react/react-in-jsx-scope': 'off',
|
|
46
|
-
'react/jsx-uses-react': 'off',
|
|
47
|
-
'react/jsx-uses-vars': 'warn',
|
|
48
|
-
'react/jsx-no-undef': 'error',
|
|
49
|
-
'react/jsx-curly-brace-presence': 'error',
|
|
50
|
-
'react/prop-types': 'off',
|
|
51
|
-
'react/require-default-props': 0,
|
|
52
|
-
'react/jsx-filename-extension': 0,
|
|
53
|
-
'react/no-array-index-key': 0,
|
|
54
|
-
'react/jsx-props-no-spreading': 0,
|
|
55
|
-
|
|
56
|
-
// TypeScript rules
|
|
57
|
-
'no-unused-vars': 'off',
|
|
58
|
-
'@typescript-eslint/no-unused-vars': [
|
|
59
|
-
'error',
|
|
60
|
-
{ argsIgnorePattern: '^_' },
|
|
61
|
-
],
|
|
62
|
-
'@typescript-eslint/no-explicit-any': 'warn',
|
|
63
|
-
|
|
64
|
-
// Import rules
|
|
65
|
-
'import/order': [
|
|
66
|
-
'warn',
|
|
67
|
-
{
|
|
68
|
-
groups: [
|
|
69
|
-
'builtin',
|
|
70
|
-
'external',
|
|
71
|
-
'internal',
|
|
72
|
-
'parent',
|
|
73
|
-
'sibling',
|
|
74
|
-
'index',
|
|
75
|
-
],
|
|
76
|
-
'newlines-between': 'always',
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
'import/no-unresolved': 0,
|
|
80
|
-
'import/no-extraneous-dependencies': ['warn', { devDependencies: true }],
|
|
81
|
-
'import/extensions': 0,
|
|
82
|
-
'import/prefer-default-export': 0,
|
|
83
|
-
|
|
84
|
-
// A11y rules
|
|
85
|
-
'jsx-a11y/alt-text': 'warn',
|
|
86
|
-
'jsx-a11y/anchor-is-valid': 'warn',
|
|
87
|
-
|
|
88
|
-
// General rules
|
|
89
|
-
'prefer-const': 'error',
|
|
90
|
-
'no-console': ['warn', { allow: ['warn', 'error'] }],
|
|
91
|
-
'no-debugger': 'warn',
|
|
92
|
-
'no-nested-ternary': 0,
|
|
93
|
-
'prettier/prettier': 'error',
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
prettierConfig,
|
|
97
|
-
]);
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import js from '@eslint/js';
|
|
2
|
-
import tseslint from 'typescript-eslint';
|
|
3
|
-
import pluginReact from 'eslint-plugin-react';
|
|
4
|
-
import reactHooks from 'eslint-plugin-react-hooks';
|
|
5
|
-
import importPlugin from 'eslint-plugin-import';
|
|
6
|
-
import jsxA11y from 'eslint-plugin-jsx-a11y';
|
|
7
|
-
import { defineConfig } from 'eslint/config';
|
|
8
|
-
import prettierConfig from 'eslint-config-prettier';
|
|
9
|
-
import prettierPlugin from 'eslint-plugin-prettier';
|
|
10
|
-
|
|
11
|
-
export default defineConfig([
|
|
12
|
-
{
|
|
13
|
-
ignores: [
|
|
14
|
-
'node_modules/**',
|
|
15
|
-
'build/**',
|
|
16
|
-
'public/**',
|
|
17
|
-
'dist/**',
|
|
18
|
-
'storybook-static/**',
|
|
19
|
-
'dist-ssr/**',
|
|
20
|
-
'coverage/**',
|
|
21
|
-
'**/*.test.js',
|
|
22
|
-
'**/__snapshots__/**',
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
js.configs.recommended,
|
|
26
|
-
reactHooks.configs.flat.recommended,
|
|
27
|
-
...tseslint.configs.recommended,
|
|
28
|
-
{
|
|
29
|
-
files: ['**/*.{js,mjs,cjs,ts,jsx,tsx,ts}'],
|
|
30
|
-
plugins: {
|
|
31
|
-
react: pluginReact,
|
|
32
|
-
'react-hooks': reactHooks,
|
|
33
|
-
import: importPlugin,
|
|
34
|
-
'jsx-a11y': jsxA11y,
|
|
35
|
-
prettier: prettierPlugin,
|
|
36
|
-
},
|
|
37
|
-
settings: {
|
|
38
|
-
react: {
|
|
39
|
-
version: 'detect',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
rules: {
|
|
43
|
-
// React rules
|
|
44
|
-
'react/self-closing-comp': ['error', { component: true, html: true }],
|
|
45
|
-
'react/react-in-jsx-scope': 'off',
|
|
46
|
-
'react/jsx-uses-react': 'off',
|
|
47
|
-
'react/jsx-uses-vars': 'warn',
|
|
48
|
-
'react/jsx-no-undef': 'error',
|
|
49
|
-
'react/jsx-curly-brace-presence': 'error',
|
|
50
|
-
'react/prop-types': 'off',
|
|
51
|
-
'react/require-default-props': 0,
|
|
52
|
-
'react/jsx-filename-extension': 0,
|
|
53
|
-
'react/no-array-index-key': 0,
|
|
54
|
-
'react/jsx-props-no-spreading': 0,
|
|
55
|
-
|
|
56
|
-
// TypeScript rules
|
|
57
|
-
'no-unused-vars': 'off',
|
|
58
|
-
'@typescript-eslint/no-unused-vars': [
|
|
59
|
-
'error',
|
|
60
|
-
{ argsIgnorePattern: '^_' },
|
|
61
|
-
],
|
|
62
|
-
'@typescript-eslint/no-explicit-any': 'warn',
|
|
63
|
-
|
|
64
|
-
// Import rules
|
|
65
|
-
'import/order': [
|
|
66
|
-
'warn',
|
|
67
|
-
{
|
|
68
|
-
groups: [
|
|
69
|
-
'builtin',
|
|
70
|
-
'external',
|
|
71
|
-
'internal',
|
|
72
|
-
'parent',
|
|
73
|
-
'sibling',
|
|
74
|
-
'index',
|
|
75
|
-
],
|
|
76
|
-
'newlines-between': 'always',
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
'import/no-unresolved': 0,
|
|
80
|
-
'import/no-extraneous-dependencies': ['warn', { devDependencies: true }],
|
|
81
|
-
'import/extensions': 0,
|
|
82
|
-
'import/prefer-default-export': 0,
|
|
83
|
-
|
|
84
|
-
// A11y rules
|
|
85
|
-
'jsx-a11y/alt-text': 'warn',
|
|
86
|
-
'jsx-a11y/anchor-is-valid': 'warn',
|
|
87
|
-
|
|
88
|
-
// General rules
|
|
89
|
-
'prefer-const': 'error',
|
|
90
|
-
'no-console': ['warn', { allow: ['warn', 'error'] }],
|
|
91
|
-
'no-debugger': 'warn',
|
|
92
|
-
'no-nested-ternary': 0,
|
|
93
|
-
'prettier/prettier': 'error',
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
prettierConfig,
|
|
97
|
-
]);
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import js from '@eslint/js';
|
|
2
|
-
import tseslint from 'typescript-eslint';
|
|
3
|
-
import pluginReact from 'eslint-plugin-react';
|
|
4
|
-
import reactHooks from 'eslint-plugin-react-hooks';
|
|
5
|
-
import importPlugin from 'eslint-plugin-import';
|
|
6
|
-
import jsxA11y from 'eslint-plugin-jsx-a11y';
|
|
7
|
-
import { defineConfig } from 'eslint/config';
|
|
8
|
-
import prettierConfig from 'eslint-config-prettier';
|
|
9
|
-
import prettierPlugin from 'eslint-plugin-prettier';
|
|
10
|
-
|
|
11
|
-
export default defineConfig([
|
|
12
|
-
{
|
|
13
|
-
ignores: [
|
|
14
|
-
'node_modules/**',
|
|
15
|
-
'build/**',
|
|
16
|
-
'public/**',
|
|
17
|
-
'dist/**',
|
|
18
|
-
'storybook-static/**',
|
|
19
|
-
'dist-ssr/**',
|
|
20
|
-
'coverage/**',
|
|
21
|
-
'**/*.test.js',
|
|
22
|
-
'**/__snapshots__/**',
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
js.configs.recommended,
|
|
26
|
-
reactHooks.configs.flat.recommended,
|
|
27
|
-
...tseslint.configs.recommended,
|
|
28
|
-
{
|
|
29
|
-
files: ['**/*.{js,mjs,cjs,ts,jsx,tsx,ts}'],
|
|
30
|
-
plugins: {
|
|
31
|
-
react: pluginReact,
|
|
32
|
-
'react-hooks': reactHooks,
|
|
33
|
-
import: importPlugin,
|
|
34
|
-
'jsx-a11y': jsxA11y,
|
|
35
|
-
prettier: prettierPlugin,
|
|
36
|
-
},
|
|
37
|
-
settings: {
|
|
38
|
-
react: {
|
|
39
|
-
version: 'detect',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
rules: {
|
|
43
|
-
// React rules
|
|
44
|
-
'react/self-closing-comp': ['error', { component: true, html: true }],
|
|
45
|
-
'react/react-in-jsx-scope': 'off',
|
|
46
|
-
'react/jsx-uses-react': 'off',
|
|
47
|
-
'react/jsx-uses-vars': 'warn',
|
|
48
|
-
'react/jsx-no-undef': 'error',
|
|
49
|
-
'react/jsx-curly-brace-presence': 'error',
|
|
50
|
-
'react/prop-types': 'off',
|
|
51
|
-
'react/require-default-props': 0,
|
|
52
|
-
'react/jsx-filename-extension': 0,
|
|
53
|
-
'react/no-array-index-key': 0,
|
|
54
|
-
'react/jsx-props-no-spreading': 0,
|
|
55
|
-
|
|
56
|
-
// TypeScript rules
|
|
57
|
-
'no-unused-vars': 'off',
|
|
58
|
-
'@typescript-eslint/no-unused-vars': [
|
|
59
|
-
'error',
|
|
60
|
-
{ argsIgnorePattern: '^_' },
|
|
61
|
-
],
|
|
62
|
-
'@typescript-eslint/no-explicit-any': 'warn',
|
|
63
|
-
|
|
64
|
-
// Import rules
|
|
65
|
-
'import/order': [
|
|
66
|
-
'warn',
|
|
67
|
-
{
|
|
68
|
-
groups: [
|
|
69
|
-
'builtin',
|
|
70
|
-
'external',
|
|
71
|
-
'internal',
|
|
72
|
-
'parent',
|
|
73
|
-
'sibling',
|
|
74
|
-
'index',
|
|
75
|
-
],
|
|
76
|
-
'newlines-between': 'always',
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
'import/no-unresolved': 0,
|
|
80
|
-
'import/no-extraneous-dependencies': ['warn', { devDependencies: true }],
|
|
81
|
-
'import/extensions': 0,
|
|
82
|
-
'import/prefer-default-export': 0,
|
|
83
|
-
|
|
84
|
-
// A11y rules
|
|
85
|
-
'jsx-a11y/alt-text': 'warn',
|
|
86
|
-
'jsx-a11y/anchor-is-valid': 'warn',
|
|
87
|
-
|
|
88
|
-
// General rules
|
|
89
|
-
'prefer-const': 'error',
|
|
90
|
-
'no-console': ['warn', { allow: ['warn', 'error'] }],
|
|
91
|
-
'no-debugger': 'warn',
|
|
92
|
-
'no-nested-ternary': 0,
|
|
93
|
-
'prettier/prettier': 'error',
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
prettierConfig,
|
|
97
|
-
]);
|