-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
305 changed files
with
9,909 additions
and
9,898 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = tab | ||
tab_width = 2 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
max_line_length = 100 | ||
tab_width = 2 | ||
trim_trailing_whitespace = true | ||
|
||
[*.{md,mdx}] | ||
trim_trailing_whitespace = false | ||
indent_size = unset | ||
max_line_length = 100 | ||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ storybook-build | |
CHANGELOG.md | ||
!.eslintrc.js | ||
!.prettierrc.js | ||
!.storybook | ||
!.github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,76 @@ | ||
module.exports = { | ||
root: true, | ||
root: true, | ||
|
||
parserOptions: { | ||
project: './tsconfig.eslint.json', | ||
extraFileExtensions: ['.md', '.mdx'], | ||
}, | ||
parserOptions: { | ||
extraFileExtensions: ['.md', '.mdx'], | ||
}, | ||
|
||
overrides: [ | ||
{ | ||
files: ['*.js'], | ||
extends: ['@react-hookz/eslint-config/base.cjs'], | ||
}, | ||
{ | ||
files: ['*.jsx'], | ||
extends: ['@react-hookz/eslint-config/base.cjs', '@react-hookz/eslint-config/react.cjs'], | ||
}, | ||
{ | ||
files: ['*.ts'], | ||
extends: ['@react-hookz/eslint-config/typescript.cjs'], | ||
}, | ||
{ | ||
files: ['*.tsx'], | ||
extends: [ | ||
'@react-hookz/eslint-config/typescript.cjs', | ||
'@react-hookz/eslint-config/react.cjs', | ||
], | ||
}, | ||
{ | ||
files: ['**/__tests__/**/*.js'], | ||
extends: ['@react-hookz/eslint-config/base.cjs', '@react-hookz/eslint-config/jest.cjs'], | ||
}, | ||
{ | ||
files: ['**/__tests__/**/*.jsx'], | ||
extends: [ | ||
'@react-hookz/eslint-config/base.cjs', | ||
'@react-hookz/eslint-config/react.cjs', | ||
'@react-hookz/eslint-config/jest.cjs', | ||
], | ||
}, | ||
{ | ||
files: ['**/__tests__/**/*.ts'], | ||
extends: [ | ||
'@react-hookz/eslint-config/typescript-unsafe.cjs', | ||
'@react-hookz/eslint-config/jest.cjs', | ||
], | ||
}, | ||
{ | ||
files: ['**/__tests__/**/*.tsx'], | ||
extends: [ | ||
'@react-hookz/eslint-config/typescript-unsafe.cjs', | ||
'@react-hookz/eslint-config/react.cjs', | ||
'@react-hookz/eslint-config/jest.cjs', | ||
], | ||
}, | ||
{ | ||
files: ['*.md'], | ||
extends: ['@react-hookz/eslint-config/md.cjs'], | ||
}, | ||
{ | ||
files: ['*.mdx'], | ||
extends: ['@react-hookz/eslint-config/mdx.cjs'], | ||
}, | ||
], | ||
overrides: [ | ||
{ | ||
files: ['*.js'], | ||
extends: ['@react-hookz/eslint-config/base.cjs'], | ||
}, | ||
{ | ||
files: ['*.jsx'], | ||
extends: ['@react-hookz/eslint-config/base.cjs', '@react-hookz/eslint-config/react.cjs'], | ||
}, | ||
{ | ||
files: ['*.ts'], | ||
parserOptions: { | ||
project: './tsconfig.eslint.json', | ||
}, | ||
extends: ['@react-hookz/eslint-config/typescript.cjs'], | ||
}, | ||
{ | ||
files: ['*.tsx'], | ||
parserOptions: { | ||
project: './tsconfig.eslint.json', | ||
}, | ||
extends: [ | ||
'@react-hookz/eslint-config/typescript.cjs', | ||
'@react-hookz/eslint-config/react.cjs', | ||
], | ||
}, | ||
{ | ||
files: ['**/__tests__/**/*.js'], | ||
extends: ['@react-hookz/eslint-config/base.cjs', '@react-hookz/eslint-config/jest.cjs'], | ||
}, | ||
{ | ||
files: ['**/__tests__/**/*.jsx'], | ||
extends: [ | ||
'@react-hookz/eslint-config/base.cjs', | ||
'@react-hookz/eslint-config/react.cjs', | ||
'@react-hookz/eslint-config/jest.cjs', | ||
], | ||
}, | ||
{ | ||
files: ['**/__tests__/**/*.ts'], | ||
parserOptions: { | ||
project: './tsconfig.eslint.json', | ||
}, | ||
extends: [ | ||
'@react-hookz/eslint-config/typescript-unsafe.cjs', | ||
'@react-hookz/eslint-config/jest.cjs', | ||
], | ||
}, | ||
{ | ||
files: ['**/__tests__/**/*.tsx'], | ||
parserOptions: { | ||
project: './tsconfig.eslint.json', | ||
}, | ||
extends: [ | ||
'@react-hookz/eslint-config/typescript-unsafe.cjs', | ||
'@react-hookz/eslint-config/react.cjs', | ||
'@react-hookz/eslint-config/jest.cjs', | ||
], | ||
}, | ||
{ | ||
files: ['*.md'], | ||
extends: ['@react-hookz/eslint-config/md.cjs'], | ||
}, | ||
{ | ||
files: ['*.mdx'], | ||
extends: ['@react-hookz/eslint-config/mdx.cjs'], | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
module.exports = { | ||
core: { | ||
builder: 'webpack5', | ||
}, | ||
stories: ['../src/**/__docs__/*.mdx', '../src/**/__docs__/*.tsx'], | ||
addons: [ | ||
'@storybook/addon-postcss', | ||
'@storybook/addon-links', | ||
{ | ||
name: '@storybook/addon-essentials', | ||
options: { | ||
backgrounds: false, | ||
}, | ||
}, | ||
], | ||
reactOptions: { | ||
fastRefresh: true, | ||
}, | ||
staticDirs: ['./public'], | ||
managerWebpack(config, options) { | ||
options.cache.set = () => Promise.resolve(); | ||
core: { | ||
builder: 'webpack5', | ||
}, | ||
stories: ['../src/**/__docs__/*.mdx', '../src/**/__docs__/*.tsx'], | ||
addons: [ | ||
'@storybook/addon-postcss', | ||
'@storybook/addon-links', | ||
{ | ||
name: '@storybook/addon-essentials', | ||
options: { | ||
backgrounds: false, | ||
}, | ||
}, | ||
], | ||
reactOptions: { | ||
fastRefresh: true, | ||
}, | ||
staticDirs: ['./public'], | ||
managerWebpack(config, options) { | ||
options.cache.set = () => Promise.resolve(); | ||
|
||
return config; | ||
}, | ||
return config; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export const parameters = { | ||
layout: 'centered', | ||
viewMode: 'docs', | ||
layout: 'centered', | ||
viewMode: 'docs', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'footer-max-line-length': [1, 'always', 100], | ||
}, | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'footer-max-line-length': [1, 'always', 100], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
import { type Config } from 'jest'; | ||
|
||
const cfg: Config = { | ||
projects: [ | ||
{ | ||
displayName: 'dom', | ||
transform: { | ||
'\\.[jt]sx?$': '@swc/jest', | ||
}, | ||
testEnvironment: 'jsdom', | ||
testMatch: ['<rootDir>/src/**/__tests__/dom.[jt]s?(x)'], | ||
setupFiles: ['./src/__tests__/setup.ts'], | ||
}, | ||
projects: [ | ||
{ | ||
displayName: 'dom', | ||
transform: { | ||
'\\.[jt]sx?$': '@swc/jest', | ||
}, | ||
testEnvironment: 'jsdom', | ||
testMatch: ['<rootDir>/src/**/__tests__/dom.[jt]s?(x)'], | ||
setupFiles: ['./src/__tests__/setup.ts'], | ||
}, | ||
|
||
{ | ||
displayName: 'ssr', | ||
transform: { | ||
'\\.[jt]sx?$': '@swc/jest', | ||
}, | ||
testEnvironment: 'node', | ||
testMatch: ['<rootDir>/src/**/__tests__/ssr.[jt]s?(x)'], | ||
}, | ||
{ | ||
displayName: 'ssr', | ||
transform: { | ||
'\\.[jt]sx?$': '@swc/jest', | ||
}, | ||
testEnvironment: 'node', | ||
testMatch: ['<rootDir>/src/**/__tests__/ssr.[jt]s?(x)'], | ||
}, | ||
|
||
// Needed for output bundle testing | ||
{ | ||
displayName: 'dom-package', | ||
transformIgnorePatterns: [], | ||
transform: { | ||
'\\.[jt]sx?$': '@swc/jest', | ||
}, | ||
testEnvironment: 'jsdom', | ||
testMatch: ['<rootDir>/src/**/__tests__/dom.[jt]s?(x)'], | ||
setupFiles: ['./src/__tests__/setup.ts'], | ||
moduleNameMapper: { | ||
'^../..$': '<rootDir>', | ||
}, | ||
}, | ||
], | ||
collectCoverage: false, | ||
coverageDirectory: './coverage', | ||
collectCoverageFrom: ['./src/**/*.{ts,js,tsx,jsx}', '!**/__tests__/**', '!**/__docs__/**'], | ||
// Needed for output bundle testing | ||
{ | ||
displayName: 'dom-package', | ||
transformIgnorePatterns: [], | ||
transform: { | ||
'\\.[jt]sx?$': '@swc/jest', | ||
}, | ||
testEnvironment: 'jsdom', | ||
testMatch: ['<rootDir>/src/**/__tests__/dom.[jt]s?(x)'], | ||
setupFiles: ['./src/__tests__/setup.ts'], | ||
moduleNameMapper: { | ||
'^../..$': '<rootDir>', | ||
}, | ||
}, | ||
], | ||
collectCoverage: false, | ||
coverageDirectory: './coverage', | ||
collectCoverageFrom: ['./src/**/*.{ts,js,tsx,jsx}', '!**/__tests__/**', '!**/__docs__/**'], | ||
}; | ||
|
||
export default cfg; |
Oops, something went wrong.