Skip to content

Commit

Permalink
Merge pull request #34 from imranhsayed/feature/setup-stylelint
Browse files Browse the repository at this point in the history
Setup stylelint -6
  • Loading branch information
imranhsayed authored Oct 11, 2020
2 parents 9507427 + 2e5897c commit 4691756
Show file tree
Hide file tree
Showing 33 changed files with 1,839 additions and 360 deletions.
59 changes: 54 additions & 5 deletions assets/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"extends": "wordpress",
"parser": "babel-eslint",
"extends": [
"plugin:@wordpress/eslint-plugin/recommended"
],
"plugins": [
"jsdoc"
],
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
Expand All @@ -13,6 +17,11 @@
},
"sourceType": "module"
},
"globals": {
"wp": false,
"hm": false,
"_": false
},
"env": {
"es6": true,
"browser": true,
Expand All @@ -35,9 +44,49 @@
"space-before-function-paren": 0,
"no-tabs": 0,
"prefer-destructuring": 0,
"no-undef": 0,
"no-param-reassign": 0,
"comma-dangle": 0,
"lines-around-comment": 0
"curly": "error",
"no-empty-function": "error",
"no-global-assign": "error",
"yoda": [ "error", "always" ],
"no-undefined":"error",
"comma-spacing": ["error", { "before": false, "after": true }],
"lines-between-class-members": ["error", "always"],
"arrow-spacing": "error",
"jsdoc/check-alignment": 1,
"jsdoc/check-param-names": 1,
"jsdoc/check-tag-names": 1,
"jsdoc/check-types": 0,
"jsdoc/implements-on-classes": 1,
"jsdoc/newline-after-description": 1,
"jsdoc/no-undefined-types": 0,
"jsdoc/require-jsdoc": 1,
"jsdoc/require-param": 1,
"jsdoc/require-param-description": 1,
"jsdoc/require-param-name": 1,
"jsdoc/require-param-type": 1,
"jsdoc/require-returns": 1,
"jsdoc/require-returns-check": 1,
"jsdoc/require-returns-description": 1,
"jsdoc/require-returns-type": 1,
"jsdoc/valid-types": 1,
"no-mixed-spaces-and-tabs": "off",
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": true,
"FunctionExpression": true
}
}]
},
"settings": {
"jsdoc": {
"tagNamePreference" : {
"param": "param",
"returns": "return"
}
}
}
}
1 change: 1 addition & 0 deletions assets/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12
27 changes: 27 additions & 0 deletions assets/.stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"extends": "stylelint-config-wordpress/scss",
"ignoreFiles": "",
"rules": {
"at-rule-empty-line-before": null,
"block-no-empty": true,
"color-hex-case": "lower",
"color-no-invalid-hex": true,
"comment-no-empty": true,
"declaration-block-no-shorthand-property-overrides": true,
"declaration-colon-space-before": "never",
"declaration-no-important": true,
"font-family-name-quotes": "always-where-recommended",
"font-weight-notation": "numeric",
"function-url-quotes": "always",
"indentation": "tab",
"max-empty-lines": 1,
"no-missing-end-of-source-newline": true,
"number-leading-zero": "always",
"rule-empty-line-before": null,
"selector-combinator-space-after": "always",
"selector-list-comma-newline-after": null,
"selector-max-specificity": "0,3,1",
"selector-pseudo-element-colon-notation": "double",
"unit-no-unknown": true
}
}
2 changes: 1 addition & 1 deletion assets/build/assets.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('js/main.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'd2a72a6fd7481a06db8417b2968f3cee'), 'js/single.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c189330732d608ff3f48cf8c50f11401'), 'js/editor.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b600979fc00a141d490c7095b99439be'), 'js/blocks.js' => array('dependencies' => array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-polyfill'), 'version' => 'c001b0eb0e00ad82a5f5f4ede2bbc8a9'));
<?php return array('js/main.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4698e5181087a60922655b73ad40a101'), 'js/single.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c189330732d608ff3f48cf8c50f11401'), 'js/editor.js' => array('dependencies' => array('wp-polyfill'), 'version' => '12ab3e60bdb8114ca8c19cb2ab3fe043'), 'js/blocks.js' => array('dependencies' => array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-polyfill'), 'version' => '08397384479650a051a6ec0cb1127672'));
2 changes: 1 addition & 1 deletion assets/build/css/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/build/js/blocks.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4691756

Please sign in to comment.