-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try
@guardian/source
package once more (#1435)
Co-authored-by: Oliver Abrahams <ollie.abrahams@guardian.co.uk> Co-authored-by: Alex Sanders <alex@sndrs.dev>
- Loading branch information
1 parent
cd5435c
commit e60f79e
Showing
38 changed files
with
1,727 additions
and
397 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@guardian/source': minor | ||
--- | ||
|
||
third attempt |
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
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
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
module.exports = { | ||
extends: ['../../../.eslintrc.cjs'], | ||
ignorePatterns: [ | ||
'!**/*', | ||
'node_modules', | ||
'jest.dist.*', // depends on build output, so don't lint it | ||
'.wireit', | ||
'dist', | ||
'storybook-static', | ||
], | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx'], | ||
parserOptions: { | ||
tsconfigRootDir: __dirname, | ||
}, | ||
rules: {}, | ||
}, | ||
{ | ||
files: ['*.js', '*.jsx'], | ||
rules: {}, | ||
}, | ||
{ | ||
files: ['**/*.test.*'], | ||
env: { | ||
jest: true, | ||
}, | ||
}, | ||
{ | ||
files: ['*.test.ts', '*.stories.*'], | ||
rules: { | ||
'@typescript-eslint/no-unsafe-call': 'off', | ||
'@typescript-eslint/no-unsafe-assignment': 'off', | ||
'@typescript-eslint/restrict-template-expressions': 'off', | ||
'@typescript-eslint/no-unsafe-member-access': 'off', | ||
}, | ||
}, | ||
{ | ||
// these are only internal files, so we don't need to check them so | ||
// rigorously they often use things like JSON which are `any`s too, | ||
// we can be more lenient | ||
files: ['scripts/**/*'], | ||
rules: { | ||
'@typescript-eslint/no-unsafe-assignment': 'off', | ||
'@typescript-eslint/no-unsafe-member-access': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/no-unsafe-return': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.stories.tsx'], | ||
rules: { | ||
// storybook require this | ||
'import/no-default-export': 'off', | ||
}, | ||
}, | ||
], | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const rootMain = require('../../../../.storybook/main'); | ||
|
||
// To customise your Storybook config for this project, update this file | ||
|
||
module.exports = { | ||
...rootMain, | ||
|
||
core: { ...rootMain.core }, | ||
|
||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'], | ||
addons: [...rootMain.addons], | ||
webpackFinal: async (config, { configType }) => { | ||
// apply any global webpack configs that might have been specified in .storybook/main.js | ||
if (rootMain.webpackFinal) { | ||
config = await rootMain.webpackFinal(config, { configType }); | ||
} | ||
|
||
// add your own webpack tweaks if needed | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { addons } from '@storybook/manager-api'; | ||
import { theme } from './theme'; | ||
|
||
addons.setConfig({ | ||
theme, | ||
}); |
Oops, something went wrong.