Skip to content

Instantly share code, notes, and snippets.

@norbert-codes
Last active June 5, 2018 16:49
Show Gist options
  • Select an option

  • Save norbert-codes/0eafcd3b56e6a9af4d69d53e5fe35568 to your computer and use it in GitHub Desktop.

Select an option

Save norbert-codes/0eafcd3b56e6a9af4d69d53e5fe35568 to your computer and use it in GitHub Desktop.
Poor mans boilerplate for javascript (React) projects with x0 development server and styled-components to quickly prototype React projects or just components.
{
"processors": ["stylelint-processor-styled-components"],
"extends": [
"stylelint-config-standard",
"stylelint-config-styled-components"
],
"plugins": ["stylelint-order", "stylelint-no-unsupported-browser-features"],
"syntax": "scss",
"rules": {
"plugin/no-unsupported-browser-features": [
true,
{
"severity": "warning"
}
],
"indentation": 4,
"value-list-max-empty-lines": 999,
"color-hex-length": "long",
"order/properties-alphabetical-order": true,
"declaration-empty-line-before": [
"never",
{
"ignore": ["after-declaration"]
}
],
"declaration-colon-newline-after": null
}
}
{
"processors": ["stylelint-processor-styled-components"],
"extends": [
"stylelint-config-standard",
"stylelint-config-styled-components"
],
"plugins": ["stylelint-order", "stylelint-no-unsupported-browser-features"],
"syntax": "scss",
"rules": {
"plugin/no-unsupported-browser-features": [
true,
{
"severity": "warning"
}
],
"indentation": 4,
"value-list-max-empty-lines": 999,
"color-hex-length": "long",
"order/properties-alphabetical-order": true,
"declaration-empty-line-before": [
"never",
{
"ignore": ["after-declaration"]
}
],
"declaration-colon-newline-after": null
}
}
{
"name": "poormans-react-boilerplate",
"version": "1.0.0",
"description": "Poor mans boilerplate for javascript (React) projects with x0 development server and styled-components to quickly prototype React projects or just components.",
"main": "index.js",
"private": true,
"license": "UNLICENSED",
"author": "[email protected]",
"browserslist": [
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Edge versions",
"last 2 Safari versions",
"last 2 iOS major versions",
"last 2 ChromeAndroid versions"
],
"prettier": {
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "all"
},
"lint-staged": {
"*.{png,jpeg,jpg,gif,svg}": "imagemin-lint-staged",
"*.{css,scss}": "stylelint",
"*.{js,jsx}": [
"eslint --fix",
"stylelint"
]
},
"scripts": {
"lint:js": "eslint --fix --ext .jsx,.js ./**/",
"lint:css": "stylelint './**/*.jsx'",
"cleanup": "rm yarn.lock; rm -rf node_modules",
"reboot": "yarn cleanup; yarn install --production=false"
},
"dependencies": {
"react": "^16.4.0",
"styled-components": "^3.3.2"
},
"devDependencies": {
"babel-eslint": "^8.2.3",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-compat": "^2.3.0",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.9.1",
"eslint-plugin-unicorn": "^4.0.3",
"eslint": "^4.19.1",
"husky": "^0.14.3",
"imagemin-lint-staged": "^0.3.0",
"lint-staged": "^7.1.3",
"prettier": "^1.13.4",
"stylelint-config-standard": "^18.2.0",
"stylelint-config-styled-components": "^0.1.1",
"stylelint-no-unsupported-browser-features": "^3.0.0",
"stylelint-order": "^0.8.1",
"stylelint-processor-styled-components": "^1.3.1",
"stylelint": "^9.2.1",
"@compositor/x0": "^5.0.4"
},
"repository": {
"type": "git",
"url": ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment