Skip to content

Commit

Permalink
Merge branch 'main' into depssync
Browse files Browse the repository at this point in the history
* main: (299 commits)
  Release 18.0.0-alpha.20
  Add BBB code for removed WysiwygWidget (#5874)
  Release 18.0.0-alpha.19
  Release @plone/components 2.0.0-alpha.7
  Release @plone/slate 18.0.0-alpha.10
  Release generate-volto 9.0.0-alpha.11
  Release @plone/types 1.0.0-alpha.6
  Improve deps in project generator (#5872)
  Fix broken link to TanStack Query (#5871)
  Add missing nextjs install step (#5857)
  (Fix): Sorting Order and Sorting On are not working in Search Block edit mode (#5262)
  Update docs for defaultBlockType setting (#5862)
  Add reference to Docker installation for some Linux distributions (#5861)
  Fix further internal `blocksConfig` pass by reference present in core (related to #5850) (#5859)
  The proper name is Semantic UI (#5855)
  Update link to cssnano docs (#5853)
  [components] Container css (#5849)
  Do not display options for Site Administrator to create, modify, or delete Manager users (#5244)
  Fix the introduction of a mutable (referenced) object when assigning … (#5850)
  Remove draftJS (and related legacy blocks `text`, `table` and `hero`) from core and cleanup dependencies (#5846)
  ...
  • Loading branch information
sneridagh committed Mar 14, 2024
2 parents 797a655 + 0deb876 commit b21b016
Show file tree
Hide file tree
Showing 4,384 changed files with 193,815 additions and 170,511 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
build
packages/volto
packages/volto-guillotina
!.*
dist
76 changes: 76 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
// @ts-check

/** @type {import('eslint').Linter.Config} */
const config = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
parserOptions: {
ecmaVersion: 'ESNext', // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
ecmaFeatures: {
jsx: true, // Allows for the parsing of JSX
},
},
rules: {
// 'import/no-unresolved': ['error', { ignore: ['^@plone/'] }],
// 'import/extensions': 'off',
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
},
settings: {
react: {
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
// node: {
// extensions: ['.js', '.jsx', '.ts', '.tsx'],
// },
typescript: {
alwaysTryTypes: true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`

// use an array of glob patterns
project: [
'packages/*/tsconfig.json',
// 'other-packages/*/tsconfig.json',
],
},
},
},
},
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
plugins: ['@typescript-eslint', 'import'],
extends: [
'plugin:react/recommended',
// 'plugin:@typescript-eslint/eslint-recommended',
// 'plugin:@typescript-eslint/recommended',
// 'plugin:import/recommended',
'plugin:import/typescript',
'plugin:prettier/recommended',
'plugin:react/jsx-runtime',
// 'plugin:storybook/recommended',
],
},
{
files: ['**/*.js', '**/*.jsx'],
plugins: ['import'],
extends: [
'plugin:react/recommended',
// 'plugin:import/recommended',
'plugin:prettier/recommended',
'plugin:react/jsx-runtime',
// 'plugin:storybook/recommended',
],
rules: {
'react/prop-types': 0,
'react/no-unescaped-entities': 0,
},
},
],
};

module.exports = config;
Loading

0 comments on commit b21b016

Please sign in to comment.