mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-25 23:16:43 +02:00
Add pre-commit hook to eslint javascript code; import nes.min.css globaly in stories;
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"extends": "airbnb-base"
|
"extends": "airbnb-base"
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
import { configure } from '@storybook/html';
|
import { configure } from '@storybook/html';
|
||||||
|
|
||||||
|
import '../css/nes.min.css'
|
||||||
|
|
||||||
// automatically import all files ending in *.stories.js
|
// automatically import all files ending in *.stories.js
|
||||||
const req = require.context('../docs', true, /.stories.js$/);
|
const req = require.context('../docs', true, /.stories.js$/);
|
||||||
function loadStories() {
|
function loadStories() {
|
||||||
|
@@ -1,6 +1,4 @@
|
|||||||
import { storiesOf } from '@storybook/html';
|
import { storiesOf } from '@storybook/html'; // eslint-disable-line import/no-extraneous-dependencies
|
||||||
|
|
||||||
import '../css/nes.css';
|
|
||||||
|
|
||||||
storiesOf('Balloons', module)
|
storiesOf('Balloons', module)
|
||||||
.add('.balloon.from-left', () => '<div class="balloon from-left"> <p>Hello NES.css</p> </div>')
|
.add('.balloon.from-left', () => '<div class="balloon from-left"> <p>Hello NES.css</p> </div>')
|
||||||
|
@@ -1,6 +1,4 @@
|
|||||||
import { storiesOf } from '@storybook/html';
|
import { storiesOf } from '@storybook/html'; // eslint-disable-line import/no-extraneous-dependencies
|
||||||
|
|
||||||
import '../css/nes.css';
|
|
||||||
|
|
||||||
storiesOf('Buttons', module)
|
storiesOf('Buttons', module)
|
||||||
.add('button.btn', () => ' <button type="button" class="btn">Normal</button>')
|
.add('button.btn', () => ' <button type="button" class="btn">Normal</button>')
|
||||||
|
@@ -1,6 +1,4 @@
|
|||||||
import { storiesOf } from '@storybook/html';
|
import { storiesOf } from '@storybook/html'; // eslint-disable-line import/no-extraneous-dependencies
|
||||||
|
|
||||||
import '../css/nes.css';
|
|
||||||
|
|
||||||
storiesOf('Containers', module)
|
storiesOf('Containers', module)
|
||||||
.add('.container.with-title', () => `<div class="container with-title">
|
.add('.container.with-title', () => `<div class="container with-title">
|
||||||
|
@@ -1,6 +1,4 @@
|
|||||||
import { storiesOf } from '@storybook/html';
|
import { storiesOf } from '@storybook/html'; // eslint-disable-line import/no-extraneous-dependencies
|
||||||
|
|
||||||
import '../css/nes.css';
|
|
||||||
|
|
||||||
storiesOf('Icons', module)
|
storiesOf('Icons', module)
|
||||||
.add('icon.twitter', () => '<i class="icon twitter"></i>')
|
.add('icon.twitter', () => '<i class="icon twitter"></i>')
|
||||||
|
@@ -1,6 +1,4 @@
|
|||||||
import { storiesOf } from '@storybook/html';
|
import { storiesOf } from '@storybook/html'; // eslint-disable-line import/no-extraneous-dependencies
|
||||||
|
|
||||||
import '../css/nes.css';
|
|
||||||
|
|
||||||
storiesOf('Inputs', module)
|
storiesOf('Inputs', module)
|
||||||
.add('input.radio', () => `
|
.add('input.radio', () => `
|
||||||
|
@@ -1,6 +1,4 @@
|
|||||||
import { storiesOf } from '@storybook/html';
|
import { storiesOf } from '@storybook/html'; // eslint-disable-line import/no-extraneous-dependencies
|
||||||
|
|
||||||
import '../css/nes.css';
|
|
||||||
|
|
||||||
storiesOf('Tables', module)
|
storiesOf('Tables', module)
|
||||||
.add('table.table', () => `
|
.add('table.table', () => `
|
||||||
|
@@ -33,6 +33,7 @@
|
|||||||
"homepage": "https://github.com/BcRikko/NES.css#readme",
|
"homepage": "https://github.com/BcRikko/NES.css#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@storybook/html": "^4.0.11",
|
"@storybook/html": "^4.0.11",
|
||||||
|
"babel-loader": "^8.0.4",
|
||||||
"autoprefixer": "^9.1.5",
|
"autoprefixer": "^9.1.5",
|
||||||
"clean-css-cli": "^4.2.1",
|
"clean-css-cli": "^4.2.1",
|
||||||
"eslint": "^5.9.0",
|
"eslint": "^5.9.0",
|
||||||
@@ -64,7 +65,8 @@
|
|||||||
"npm run build",
|
"npm run build",
|
||||||
"git add ./css",
|
"git add ./css",
|
||||||
"git add"
|
"git add"
|
||||||
]
|
],
|
||||||
|
"*.js": ["eslint .", "git add"]
|
||||||
},
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"printWidth": 100
|
"printWidth": 100
|
||||||
@@ -85,8 +87,5 @@
|
|||||||
"at-rule-no-unknown": null,
|
"at-rule-no-unknown": null,
|
||||||
"scss/at-rule-no-unknown": true
|
"scss/at-rule-no-unknown": true
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"babel-loader": "^8.0.4"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user