Skip to content

Commit

Permalink
chore: release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Cherry committed Dec 17, 2023
1 parent 01a8cb4 commit 5867170
Show file tree
Hide file tree
Showing 8 changed files with 2,656 additions and 1,178 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ root = true
charset = utf-8
indent_style = tab
trim_trailing_whitespace = true
insert_final_newline = false
insert_final_newline = true
end_of_line = lf

[*.yml]
indent_style = space
indent_size = 2
indent_size = 2
7 changes: 5 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"root": true,
"extends": [
"@nodecraft/eslint-config"
]
}
],
"parserOptions": {
"sourceType": "module"
}
}
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18]
node: [18, 20]
name: Node ${{ matrix.node }} Lint
steps:
- uses: actions/checkout@v3
Expand All @@ -15,4 +15,4 @@ jobs:
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run lint && npm run test
- run: npm run lint && npm run test
86 changes: 73 additions & 13 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
'use strict';

module.exports = {
'extends': [
export default {
extends: [
'stylelint-config-standard',
'stylelint-stylistic/config',
],
'plugins': [
'stylelint-stylistic',
plugins: [
'stylelint-codeguide',
],
'rules': {
rules: {
'at-rule-no-unknown': [true, {
'ignoreAtRules': [
ignoreAtRules: [
'import-normalize', // postcss-normalize
'each', // postcss-each
'layer', // tailwindcss
Expand All @@ -22,15 +19,15 @@ module.exports = {
'custom-property-empty-line-before': 'never',
'media-feature-name-no-vendor-prefix': true,
'media-feature-name-no-unknown': [true, {
'ignoreMediaFeatureNames': [
ignoreMediaFeatureNames: [
'prefers-reduced-motion',
],
}],
'no-descending-specificity': null,
'property-no-vendor-prefix': true,
'selector-no-vendor-prefix': true,
'selector-pseudo-class-no-unknown': [true, {
'ignorePseudoClasses': [
ignorePseudoClasses: [
'increment',
'decrement',
'vertical',
Expand All @@ -42,7 +39,70 @@ module.exports = {
}],
'value-no-vendor-prefix': true,

'stylistic/indentation': 'tab',
'stylistic/selector-list-comma-space-after': 'always-single-line',
// stylistic rules
'codeguide/at-rule-name-case': 'lower',
'codeguide/at-rule-name-space-after': 'always-single-line',
'codeguide/at-rule-semicolon-newline-after': 'always',
'codeguide/block-closing-brace-empty-line-before': 'never',
'codeguide/block-closing-brace-newline-after': 'always',
'codeguide/block-closing-brace-newline-before': 'always-multi-line',
'codeguide/block-closing-brace-space-before': 'always-single-line',
'codeguide/block-opening-brace-newline-after': 'always-multi-line',
'codeguide/block-opening-brace-space-after': 'always-single-line',
'codeguide/block-opening-brace-space-before': 'always',
'codeguide/color-hex-case': 'lower',
'codeguide/declaration-bang-space-after': 'never',
'codeguide/declaration-bang-space-before': 'always',
'codeguide/declaration-block-semicolon-newline-after': 'always-multi-line',
'codeguide/declaration-block-semicolon-space-after': 'always-single-line',
'codeguide/declaration-block-semicolon-space-before': 'never',
'codeguide/declaration-block-trailing-semicolon': 'always',
'codeguide/declaration-colon-newline-after': 'always-multi-line',
'codeguide/declaration-colon-space-after': 'always-single-line',
'codeguide/declaration-colon-space-before': 'never',
'codeguide/function-comma-newline-after': 'always-multi-line',
'codeguide/function-comma-space-after': 'always-single-line',
'codeguide/function-comma-space-before': 'never',
'codeguide/function-max-empty-lines': 0,
'codeguide/function-parentheses-newline-inside': 'always-multi-line',
'codeguide/function-parentheses-space-inside': 'never-single-line',
'codeguide/function-whitespace-after': 'always',
'codeguide/indentation': 'tab',
'codeguide/max-empty-lines': 1,
'codeguide/max-line-length': 120,
'codeguide/media-feature-colon-space-after': 'always',
'codeguide/media-feature-colon-space-before': 'never',
'codeguide/media-feature-name-case': 'lower',
'codeguide/media-feature-parentheses-space-inside': 'never',
'codeguide/media-feature-range-operator-space-after': 'always',
'codeguide/media-feature-range-operator-space-before': 'always',
'codeguide/media-query-list-comma-newline-after': 'always-multi-line',
'codeguide/media-query-list-comma-space-after': 'always-single-line',
'codeguide/media-query-list-comma-space-before': 'never',
'codeguide/no-empty-first-line': true,
'codeguide/no-eol-whitespace': true,
'codeguide/no-extra-semicolons': true,
'codeguide/no-missing-end-of-source-newline': true,
'codeguide/number-leading-zero': 'always',
'codeguide/number-no-trailing-zeros': true,
'codeguide/property-case': 'lower',
'codeguide/selector-attribute-brackets-space-inside': 'never',
'codeguide/selector-attribute-operator-space-after': 'never',
'codeguide/selector-attribute-operator-space-before': 'never',
'codeguide/selector-combinator-space-after': 'always',
'codeguide/selector-combinator-space-before': 'always',
'codeguide/selector-descendant-combinator-no-non-space': true,
'codeguide/selector-list-comma-newline-after': 'always',
'codeguide/selector-list-comma-space-before': 'never',
'codeguide/selector-max-empty-lines': 0,
'codeguide/selector-pseudo-class-case': 'lower',
'codeguide/selector-pseudo-class-parentheses-space-inside': 'never',
'codeguide/selector-pseudo-element-case': 'lower',
'codeguide/string-quotes': 'double',
'codeguide/unit-case': 'lower',
'codeguide/value-list-comma-newline-after': 'always-multi-line',
'codeguide/value-list-comma-space-after': 'always-single-line',
'codeguide/value-list-comma-space-before': 'never',
'codeguide/value-list-max-empty-lines': 0,
},
};
Loading

0 comments on commit 5867170

Please sign in to comment.