-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #201 from hipstersmoothie/dev-setup
Dev setup
- Loading branch information
Showing
16 changed files
with
7,274 additions
and
3,731 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,35 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
tsconfigRootDir: __dirname, | ||
project: ['./tsconfig.json'], | ||
ecmaVersion: 12, | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
env: { browser: true }, | ||
ignorePatterns: ['node_modules', 'dist', '.eslintrc.js'], | ||
extends: [ | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@typescript-eslint/recommended-requiring-type-checking', | ||
'xo/browser', | ||
'xo-react/space', | ||
'prettier', | ||
], | ||
plugins: ['@typescript-eslint'], | ||
rules: { | ||
camelcase: 0, | ||
'@typescript-eslint/camelcase': 0, | ||
'@typescript-eslint/indent': 0, | ||
'@typescript-eslint/explicit-function-return-type': 0, | ||
'lines-between-class-members': 0, | ||
'capitalized-comments': 0, | ||
'react/prop-types': 0, | ||
'react/jsx-tag-spacing': 0, | ||
'react/jsx-curly-newline': 0, | ||
'react/jsx-closing-tag-location': 0, | ||
'react/no-danger': 0, | ||
'@typescript-eslint/explicit-member-accessibility': 0, | ||
}, | ||
}; |
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,7 @@ | ||
node_modules/ | ||
coverage | ||
dist/ | ||
yarn-error.log | ||
|
||
# IDE files | ||
.idea/ |
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 @@ | ||
module.exports = { | ||
stories: ['../src/**/*.stories.tsx'], | ||
addons: ['../../../preset.js'], | ||
framework: '@storybook/react', | ||
}; |
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,11 @@ | ||
{ | ||
"name": "basic", | ||
"private": true, | ||
"scripts": { | ||
"start": "../../node_modules/.bin/start-storybook", | ||
"storybook": "start-storybook -p 6006", | ||
"build-storybook": "build-storybook" | ||
}, | ||
"devDependencies": {}, | ||
"dependencies": {} | ||
} |
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 @@ | ||
/// <reference types="react" /> | ||
declare const _default: { | ||
title: string; | ||
}; | ||
export default _default; | ||
export declare function Basic(): JSX.Element; |
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,9 @@ | ||
import * as React from 'react'; | ||
|
||
export default { | ||
title: 'Button', | ||
}; | ||
|
||
export function Basic() { | ||
return <button type="button">Click me</button>; | ||
} |
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
Oops, something went wrong.