Skip to content

Commit 75f1d94

Browse files
committed
Merge branch 'main' into conditionalVariationsSupport
* main: (21 commits) Cleanup and renaming (#5456) Move dangling news item to the right place Better start script in root package.json, enable and better config for husky/lint-staged All in with monorepo (#5409) changed toNumber to parseFloat #5447 (#5448) Release 18.0.0-alpha.3 Changelog Revert "Improvements and completeness of the ContentMetadataTags component (#5433)" (#5449) Update yarnhook to 0.6.1 in order to support pnpm 8 (#5444) Special breadcrumb in controlpanel (#5292) Adding extraction of videoID from youtube videos url which contain '/live/' (#5426) Release 18.0.0-alpha.2 Release generate-volto 8.0.3 Changelog Bring back yeoman install which in v5 is deprecated (#5438) Improvements and completeness of the ContentMetadataTags component (#5433) Use container from component registry in sitemap component and also refactor the class to functional component(#5418) (#5420) Fix image paths in development mode (#5429) Visible focus semantic UI - reset (#5335) Remove mention of LTS in Volto (#4905) ...
2 parents cb06757 + 1be7f4f commit 75f1d94

File tree

3,068 files changed

+34819
-58203
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,068 files changed

+34819
-58203
lines changed

.eslintignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
build
3+
packages/generator-volto
4+
packages/volto-slate
5+
packages/volto
6+
packages/volto-testing
7+
packages/volto-guillotina

.eslintrc.cjs

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
// @ts-check
2+
3+
/** @type {import('eslint').Linter.Config} */
4+
const config = {
5+
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
6+
extends: [
7+
'plugin:react/recommended',
8+
// 'plugin:import/recommended',
9+
'plugin:import/typescript',
10+
'plugin:prettier/recommended',
11+
'plugin:react/jsx-runtime',
12+
// 'plugin:storybook/recommended',
13+
],
14+
plugins: ['import'],
15+
parserOptions: {
16+
ecmaVersion: 'ESNext', // Allows for the parsing of modern ECMAScript features
17+
sourceType: 'module', // Allows for the use of imports
18+
ecmaFeatures: {
19+
jsx: true, // Allows for the parsing of JSX
20+
},
21+
},
22+
23+
rules: {
24+
// 'import/no-unresolved': ['error', { ignore: ['^@plone/'] }],
25+
// 'import/extensions': 'off',
26+
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
27+
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
28+
},
29+
settings: {
30+
react: {
31+
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
32+
},
33+
settings: {
34+
'import/parsers': {
35+
'@typescript-eslint/parser': ['.ts', '.tsx'],
36+
},
37+
'import/resolver': {
38+
// node: {
39+
// extensions: ['.js', '.jsx', '.ts', '.tsx'],
40+
// },
41+
typescript: {
42+
alwaysTryTypes: true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
43+
44+
// use an array of glob patterns
45+
project: [
46+
'packages/*/tsconfig.json',
47+
// 'other-packages/*/tsconfig.json',
48+
],
49+
},
50+
},
51+
},
52+
},
53+
overrides: [
54+
{
55+
files: ['**/*.jsx'],
56+
rules: {
57+
'react/prop-types': 0,
58+
'react/no-unescaped-entities': 0,
59+
},
60+
},
61+
],
62+
};
63+
64+
module.exports = config;

0 commit comments

Comments
 (0)