Skip to content

Commit

Permalink
add stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgul4enko committed Sep 12, 2019
1 parent c077e5e commit 0883178
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 42 deletions.
4 changes: 0 additions & 4 deletions .sentrycliignore.js

This file was deleted.

41 changes: 27 additions & 14 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,41 @@
{
"extends": [
"stylelint-config-standard",
"stylelint-config-prettier"
"stylelint-config-standard"
],
"fix": true,
"formatter": "verbose",
"plugins": [
"stylelint-scss"
],
"rules": {
"indentation": 2,
"selector-list-comma-newline-after": "never-multi-line",
"rule-empty-line-before": "always",
"at-rule-whitelist": ["include", "import", "keyframes", "mixin", "extend"],
"selector-list-comma-newline-after": "always",
"selector-type-case": "lower",
"at-rule-no-unknown": null,
"scss/at-rule-no-unknown": true,
"declaration-empty-line-before": "never",
"no-missing-end-of-source-newline": true,
"no-descending-specificity": null,
"color-hex-case": "lower",
"color-hex-length": "short",
"declaration-block-no-duplicate-properties": null,
"no-duplicate-selectors": null,
"declaration-colon-space-after": "always-single-line"
"rule-empty-line-before": [ "always-multi-line", {
"except": ["inside-block"],
"ignore": ["after-comment"]
}],
"no-descending-specificity": true,
"declaration-block-no-duplicate-properties": true,
"declaration-colon-space-after": "always-single-line",
"at-rule-whitelist": ["include", "import", "keyframes", "mixin", "extend"],
"string-quotes": "double",
"no-duplicate-selectors": true,
"color-named": "never",
"selector-attribute-quotes": "always",
"declaration-block-trailing-semicolon": "always",
"declaration-colon-space-before": "never",
"property-no-vendor-prefix": true,
"value-no-vendor-prefix": true,
"number-leading-zero": "always",
"function-url-quotes": "always",
"font-family-name-quotes": "always-unless-keyword",
"at-rule-no-vendor-prefix": true,
"selector-no-vendor-prefix": true,
"media-feature-name-no-vendor-prefix": true,
"max-empty-lines": 2
},
"syntax": "scss"
}
}
6 changes: 0 additions & 6 deletions CHANGELOG.md

This file was deleted.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frontend-skeleton",
"version": "4.0.0-beta",
"version": "3.0.0-beta",
"description": "Yet another boilerplate created at first for using Angular/React in conjunction with Django.",
"author": "DjangoStars <[email protected]> (https://github.com/django-stars/)",
"contributors": [
Expand Down Expand Up @@ -30,6 +30,7 @@
"eslint:fix": "node linter --fix --verbose | snazzy",
"stylelint": "stylelint 'src/**/**.scss' --syntax scss",
"stylelint:fix": "stylelint 'src/**/**.scss' --syntax scss --fix",
"check_circular": "madge --circular src/app/index.js",
"test": "jest --config jest.conf.json -u"
},
"dependencies": {
Expand Down Expand Up @@ -90,9 +91,8 @@
"jest": "^24.1.0",
"jest-cli": "^24.1.0",
"jest-enzyme": "^7.0.1",
"postcss": "^7.0.17",
"madge": "^3.4.4",
"postcss-inline-svg": "^3.0.0",
"prettier": "^1.18.2",
"react-test-renderer": "^16.8.3",
"redux-mock-store": "^1.5.1",
"reload-html-webpack-plugin": "^0.1.2",
Expand Down
15 changes: 0 additions & 15 deletions webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import './init-env' // SHOULD BE FIRST
import path from 'path'
import CleanWebpackPlugin from 'clean-webpack-plugin'
import WriteFilePlugin from 'write-file-webpack-plugin'
import SentryWebpackPlugin from '@sentry/webpack-plugin'

// import ReloadPlugin from 'reload-html-webpack-plugin'

import {
Expand Down Expand Up @@ -93,19 +91,6 @@ module.exports = createConfig([
},
}),


env('production', [
addPlugins([
new SentryWebpackPlugin({
include: '.',
ignoreFile: '.sentrycliignore',
ignore: ['node_modules', 'webpack.config.babel.js', 'presets'],
configFile: 'sentry.properties',
}),
]),
]),


env('development', [
devServer({
contentBase: path.resolve(`${process.env.OUTPUT_PATH}`),
Expand Down

0 comments on commit 0883178

Please sign in to comment.