Skip to content

Commit 41d02bc

Browse files
authored
Merge pull request #188 from forumone/2.x-RC
2.1.0
2 parents 24778f7 + 1097179 commit 41d02bc

File tree

65 files changed

+2159
-2504
lines changed

Some content is hidden

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

65 files changed

+2159
-2504
lines changed

.eslintrc.json

Lines changed: 0 additions & 65 deletions
This file was deleted.

.stylelintrc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ rules:
2323
- ignore:
2424
- 'inside-function'
2525
custom-property-empty-line-before: null
26+
declaration-property-value-no-unknown:
27+
- true
28+
- ignoreProperties:
29+
'/.+/': '/rem-convert/'
2630
function-no-unknown:
2731
- true
2832
- ignoreFunctions:
@@ -31,6 +35,7 @@ rules:
3135
- 'responsive-font-size'
3236
- 'rem-convert'
3337
import-notation: string
38+
layer-name-pattern: null
3439
max-nesting-depth: 4
3540
number-max-precision: null
3641
order/order:

eslint.config.mjs

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
import { FlatCompat } from '@eslint/eslintrc';
2+
import f1BaseConfig from '@forumone/eslint-config-es5';
3+
import f1ReactConfig from '@forumone/eslint-config-react';
4+
import { defineConfig, globalIgnores } from 'eslint/config';
5+
6+
const compat = new FlatCompat({
7+
// import.meta.dirname is available after Node.js v20.11.0
8+
baseDirectory: import.meta.dirname,
9+
});
10+
11+
const config = defineConfig([
12+
globalIgnores(['**/Icon/icons/*.tsx']),
13+
compat.config({
14+
extends: ['plugin:@next/next/recommended'],
15+
}),
16+
f1BaseConfig,
17+
{
18+
files: ['*.tsx', '*.jsx'],
19+
extends: [f1ReactConfig],
20+
},
21+
{
22+
files: ['**/*.stories.tsx', '**/*Args.tsx'],
23+
rules: {
24+
'@next/next/no-img-element': 'off',
25+
'@typescript-eslint/no-unsafe-assignment': 'off',
26+
'@typescript-eslint/no-unsafe-argument': 'off',
27+
'@typescript-eslint/no-unsafe-call': 'off',
28+
'@typescript-eslint/no-unsafe-member-access': 'off',
29+
},
30+
},
31+
{
32+
files: ['next.config.js', '.storybook/**/*.js'],
33+
rules: {
34+
'@typescript-eslint/no-var-requires': 'off',
35+
},
36+
},
37+
{
38+
files: [
39+
'lib/drupal/generate-graphql-types.ts',
40+
'util/drupal/prepMenuItems.ts',
41+
],
42+
rules: {
43+
'@typescript-eslint/ban-ts-comment': 'off',
44+
},
45+
},
46+
]);
47+
48+
export default config;

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

0 commit comments

Comments
 (0)