├── .editorconfig ├── .gitignore ├── .prettierrc.json ├── .stlintrc ├── .travis.yml ├── LICENSE ├── bin └── stlint ├── index.js ├── index.ts ├── package.json ├── readme.md ├── src ├── autocomplete │ └── index.ts ├── commander.ts ├── config.ts ├── core │ ├── ast │ │ ├── atrule.ts │ │ ├── binop.ts │ │ ├── block.ts │ │ ├── bool.ts │ │ ├── call.ts │ │ ├── comment.ts │ │ ├── condition.ts │ │ ├── each.ts │ │ ├── feature.ts │ │ ├── func.ts │ │ ├── group.ts │ │ ├── ident.ts │ │ ├── import.ts │ │ ├── index.ts │ │ ├── keyframes.ts │ │ ├── literal.ts │ │ ├── media.ts │ │ ├── member.ts │ │ ├── node.ts │ │ ├── obj.ts │ │ ├── params.ts │ │ ├── property.ts │ │ ├── query.ts │ │ ├── querylist.ts │ │ ├── return.ts │ │ ├── rgb.ts │ │ ├── selector.ts │ │ ├── supports.ts │ │ ├── ternary.ts │ │ ├── tree.ts │ │ ├── unaryop.ts │ │ ├── unit.ts │ │ └── value.ts │ ├── autocomplete.ts │ ├── baseConfig.ts │ ├── checker.ts │ ├── content.ts │ ├── documentator │ │ ├── documentator.ts │ │ └── readmePatcher.ts │ ├── helpers │ │ ├── calcPosition.ts │ │ ├── checkPrefix.ts │ │ ├── index.ts │ │ ├── isPlainObject.ts │ │ ├── lcfirst.ts │ │ ├── mergeArray.ts │ │ ├── objToHash.ts │ │ ├── shortcutColor.ts │ │ ├── splitAndStrip.ts │ │ ├── splitLines.ts │ │ └── unwrapObject.ts │ ├── line.ts │ ├── parser.ts │ ├── preprocessor.ts │ ├── reader.ts │ ├── reporter.ts │ ├── reporters │ │ ├── jsonReporter.ts │ │ ├── rawReporter.ts │ │ └── silentReporter.ts │ ├── rule.ts │ ├── runner.ts │ ├── translator.ts │ ├── types │ │ ├── IStats.ts │ │ ├── ast │ │ │ ├── node.ts │ │ │ └── snode.ts │ │ ├── autocomplete.ts │ │ ├── config.ts │ │ ├── content.ts │ │ ├── context.ts │ │ ├── line.ts │ │ ├── message.ts │ │ ├── reader.ts │ │ ├── reporter.ts │ │ ├── response.ts │ │ ├── rule.ts │ │ └── state.ts │ └── visitor.ts ├── data │ └── valid.json ├── defaultRules.json ├── doc.ts ├── linter.ts ├── preprocessors │ └── safeComments.ts ├── rules │ ├── brackets.ts │ ├── colons.ts │ ├── color.ts │ ├── commaInObject.ts │ ├── depthControl.ts │ ├── emptyLines.ts │ ├── index.ts │ ├── leadingZero.ts │ ├── mixedSpaces.ts │ ├── prefixVarsWithDollar.ts │ ├── quotePref.ts │ ├── semicolons.ts │ ├── sortOrder.ts │ └── useMixinInsteadUnit.ts └── typings.d.ts ├── test.styl ├── test2.styl ├── tests ├── beforeCheckNodeTest.ts ├── configTest.ts ├── extendsConfigTest.ts ├── extraRulesTest.ts ├── fixTest.ts ├── grepTest.ts ├── helpers │ ├── calcPositionTest.ts │ └── shortcutColorTest.ts ├── ignoreDirectivesTest.ts ├── rules │ ├── bracketsTest.ts │ ├── colonsTest.ts │ ├── colorTest.ts │ ├── commaInObjectTest.ts │ ├── depthControlTest.ts │ ├── emptyLinesTest.ts │ ├── leadingZeroTest.ts │ ├── mixedSpacesTest.ts │ ├── prefixVarsWithDollarTest.ts │ ├── quotePrefTest.ts │ ├── semicolonTest.ts │ ├── sortOrderTest.ts │ └── useMixinInsteadUnitTest.ts ├── smokeTest.ts └── staff │ ├── bootstrap.ts │ ├── config.json │ ├── disable-sort-order-rule.json │ ├── extends.js │ ├── extends.json │ ├── extra │ └── testRule.js │ ├── preprocessor.js │ ├── subfolder │ ├── extends.json │ └── preprocessors │ │ └── preprocessor.js │ └── test.styl ├── tsconfig.json ├── tslint.json └── webpack.config.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | node_modules/ 3 | .DS_Store 4 | 5 | 6 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /.stlintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": {} 3 | } 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/LICENSE -------------------------------------------------------------------------------- /bin/stlint: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/bin/stlint -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/index.js -------------------------------------------------------------------------------- /index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/index.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/readme.md -------------------------------------------------------------------------------- /src/autocomplete/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/autocomplete/index.ts -------------------------------------------------------------------------------- /src/commander.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/commander.ts -------------------------------------------------------------------------------- /src/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/config.ts -------------------------------------------------------------------------------- /src/core/ast/atrule.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/atrule.ts -------------------------------------------------------------------------------- /src/core/ast/binop.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/binop.ts -------------------------------------------------------------------------------- /src/core/ast/block.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/block.ts -------------------------------------------------------------------------------- /src/core/ast/bool.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/bool.ts -------------------------------------------------------------------------------- /src/core/ast/call.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/call.ts -------------------------------------------------------------------------------- /src/core/ast/comment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/comment.ts -------------------------------------------------------------------------------- /src/core/ast/condition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/condition.ts -------------------------------------------------------------------------------- /src/core/ast/each.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/each.ts -------------------------------------------------------------------------------- /src/core/ast/feature.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/feature.ts -------------------------------------------------------------------------------- /src/core/ast/func.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/func.ts -------------------------------------------------------------------------------- /src/core/ast/group.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/group.ts -------------------------------------------------------------------------------- /src/core/ast/ident.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/ident.ts -------------------------------------------------------------------------------- /src/core/ast/import.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/import.ts -------------------------------------------------------------------------------- /src/core/ast/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/index.ts -------------------------------------------------------------------------------- /src/core/ast/keyframes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/keyframes.ts -------------------------------------------------------------------------------- /src/core/ast/literal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/literal.ts -------------------------------------------------------------------------------- /src/core/ast/media.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/media.ts -------------------------------------------------------------------------------- /src/core/ast/member.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/member.ts -------------------------------------------------------------------------------- /src/core/ast/node.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/node.ts -------------------------------------------------------------------------------- /src/core/ast/obj.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/obj.ts -------------------------------------------------------------------------------- /src/core/ast/params.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/params.ts -------------------------------------------------------------------------------- /src/core/ast/property.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/property.ts -------------------------------------------------------------------------------- /src/core/ast/query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/query.ts -------------------------------------------------------------------------------- /src/core/ast/querylist.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/querylist.ts -------------------------------------------------------------------------------- /src/core/ast/return.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/return.ts -------------------------------------------------------------------------------- /src/core/ast/rgb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/rgb.ts -------------------------------------------------------------------------------- /src/core/ast/selector.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/selector.ts -------------------------------------------------------------------------------- /src/core/ast/supports.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/supports.ts -------------------------------------------------------------------------------- /src/core/ast/ternary.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/ternary.ts -------------------------------------------------------------------------------- /src/core/ast/tree.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/tree.ts -------------------------------------------------------------------------------- /src/core/ast/unaryop.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/unaryop.ts -------------------------------------------------------------------------------- /src/core/ast/unit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/unit.ts -------------------------------------------------------------------------------- /src/core/ast/value.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/ast/value.ts -------------------------------------------------------------------------------- /src/core/autocomplete.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/autocomplete.ts -------------------------------------------------------------------------------- /src/core/baseConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/baseConfig.ts -------------------------------------------------------------------------------- /src/core/checker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/checker.ts -------------------------------------------------------------------------------- /src/core/content.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/content.ts -------------------------------------------------------------------------------- /src/core/documentator/documentator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/documentator/documentator.ts -------------------------------------------------------------------------------- /src/core/documentator/readmePatcher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/documentator/readmePatcher.ts -------------------------------------------------------------------------------- /src/core/helpers/calcPosition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/helpers/calcPosition.ts -------------------------------------------------------------------------------- /src/core/helpers/checkPrefix.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/helpers/checkPrefix.ts -------------------------------------------------------------------------------- /src/core/helpers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/helpers/index.ts -------------------------------------------------------------------------------- /src/core/helpers/isPlainObject.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/helpers/isPlainObject.ts -------------------------------------------------------------------------------- /src/core/helpers/lcfirst.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/helpers/lcfirst.ts -------------------------------------------------------------------------------- /src/core/helpers/mergeArray.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/helpers/mergeArray.ts -------------------------------------------------------------------------------- /src/core/helpers/objToHash.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/helpers/objToHash.ts -------------------------------------------------------------------------------- /src/core/helpers/shortcutColor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/helpers/shortcutColor.ts -------------------------------------------------------------------------------- /src/core/helpers/splitAndStrip.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/helpers/splitAndStrip.ts -------------------------------------------------------------------------------- /src/core/helpers/splitLines.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/helpers/splitLines.ts -------------------------------------------------------------------------------- /src/core/helpers/unwrapObject.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/helpers/unwrapObject.ts -------------------------------------------------------------------------------- /src/core/line.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/line.ts -------------------------------------------------------------------------------- /src/core/parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/parser.ts -------------------------------------------------------------------------------- /src/core/preprocessor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/preprocessor.ts -------------------------------------------------------------------------------- /src/core/reader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/reader.ts -------------------------------------------------------------------------------- /src/core/reporter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/reporter.ts -------------------------------------------------------------------------------- /src/core/reporters/jsonReporter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/reporters/jsonReporter.ts -------------------------------------------------------------------------------- /src/core/reporters/rawReporter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/reporters/rawReporter.ts -------------------------------------------------------------------------------- /src/core/reporters/silentReporter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/reporters/silentReporter.ts -------------------------------------------------------------------------------- /src/core/rule.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/rule.ts -------------------------------------------------------------------------------- /src/core/runner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/runner.ts -------------------------------------------------------------------------------- /src/core/translator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/translator.ts -------------------------------------------------------------------------------- /src/core/types/IStats.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/types/IStats.ts -------------------------------------------------------------------------------- /src/core/types/ast/node.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/types/ast/node.ts -------------------------------------------------------------------------------- /src/core/types/ast/snode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/types/ast/snode.ts -------------------------------------------------------------------------------- /src/core/types/autocomplete.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/types/autocomplete.ts -------------------------------------------------------------------------------- /src/core/types/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/types/config.ts -------------------------------------------------------------------------------- /src/core/types/content.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/types/content.ts -------------------------------------------------------------------------------- /src/core/types/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/types/context.ts -------------------------------------------------------------------------------- /src/core/types/line.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/types/line.ts -------------------------------------------------------------------------------- /src/core/types/message.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/types/message.ts -------------------------------------------------------------------------------- /src/core/types/reader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/types/reader.ts -------------------------------------------------------------------------------- /src/core/types/reporter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/types/reporter.ts -------------------------------------------------------------------------------- /src/core/types/response.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/types/response.ts -------------------------------------------------------------------------------- /src/core/types/rule.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/types/rule.ts -------------------------------------------------------------------------------- /src/core/types/state.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/types/state.ts -------------------------------------------------------------------------------- /src/core/visitor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/core/visitor.ts -------------------------------------------------------------------------------- /src/data/valid.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/data/valid.json -------------------------------------------------------------------------------- /src/defaultRules.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/defaultRules.json -------------------------------------------------------------------------------- /src/doc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/doc.ts -------------------------------------------------------------------------------- /src/linter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/linter.ts -------------------------------------------------------------------------------- /src/preprocessors/safeComments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/preprocessors/safeComments.ts -------------------------------------------------------------------------------- /src/rules/brackets.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/rules/brackets.ts -------------------------------------------------------------------------------- /src/rules/colons.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/rules/colons.ts -------------------------------------------------------------------------------- /src/rules/color.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/rules/color.ts -------------------------------------------------------------------------------- /src/rules/commaInObject.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/rules/commaInObject.ts -------------------------------------------------------------------------------- /src/rules/depthControl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/rules/depthControl.ts -------------------------------------------------------------------------------- /src/rules/emptyLines.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/rules/emptyLines.ts -------------------------------------------------------------------------------- /src/rules/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/rules/index.ts -------------------------------------------------------------------------------- /src/rules/leadingZero.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/rules/leadingZero.ts -------------------------------------------------------------------------------- /src/rules/mixedSpaces.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/rules/mixedSpaces.ts -------------------------------------------------------------------------------- /src/rules/prefixVarsWithDollar.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/rules/prefixVarsWithDollar.ts -------------------------------------------------------------------------------- /src/rules/quotePref.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/rules/quotePref.ts -------------------------------------------------------------------------------- /src/rules/semicolons.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/rules/semicolons.ts -------------------------------------------------------------------------------- /src/rules/sortOrder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/rules/sortOrder.ts -------------------------------------------------------------------------------- /src/rules/useMixinInsteadUnit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/rules/useMixinInsteadUnit.ts -------------------------------------------------------------------------------- /src/typings.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/src/typings.d.ts -------------------------------------------------------------------------------- /test.styl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/test.styl -------------------------------------------------------------------------------- /test2.styl: -------------------------------------------------------------------------------- 1 | .tab 2 | color #DDD; 3 | -------------------------------------------------------------------------------- /tests/beforeCheckNodeTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/beforeCheckNodeTest.ts -------------------------------------------------------------------------------- /tests/configTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/configTest.ts -------------------------------------------------------------------------------- /tests/extendsConfigTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/extendsConfigTest.ts -------------------------------------------------------------------------------- /tests/extraRulesTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/extraRulesTest.ts -------------------------------------------------------------------------------- /tests/fixTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/fixTest.ts -------------------------------------------------------------------------------- /tests/grepTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/grepTest.ts -------------------------------------------------------------------------------- /tests/helpers/calcPositionTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/helpers/calcPositionTest.ts -------------------------------------------------------------------------------- /tests/helpers/shortcutColorTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/helpers/shortcutColorTest.ts -------------------------------------------------------------------------------- /tests/ignoreDirectivesTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/ignoreDirectivesTest.ts -------------------------------------------------------------------------------- /tests/rules/bracketsTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/rules/bracketsTest.ts -------------------------------------------------------------------------------- /tests/rules/colonsTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/rules/colonsTest.ts -------------------------------------------------------------------------------- /tests/rules/colorTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/rules/colorTest.ts -------------------------------------------------------------------------------- /tests/rules/commaInObjectTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/rules/commaInObjectTest.ts -------------------------------------------------------------------------------- /tests/rules/depthControlTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/rules/depthControlTest.ts -------------------------------------------------------------------------------- /tests/rules/emptyLinesTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/rules/emptyLinesTest.ts -------------------------------------------------------------------------------- /tests/rules/leadingZeroTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/rules/leadingZeroTest.ts -------------------------------------------------------------------------------- /tests/rules/mixedSpacesTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/rules/mixedSpacesTest.ts -------------------------------------------------------------------------------- /tests/rules/prefixVarsWithDollarTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/rules/prefixVarsWithDollarTest.ts -------------------------------------------------------------------------------- /tests/rules/quotePrefTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/rules/quotePrefTest.ts -------------------------------------------------------------------------------- /tests/rules/semicolonTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/rules/semicolonTest.ts -------------------------------------------------------------------------------- /tests/rules/sortOrderTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/rules/sortOrderTest.ts -------------------------------------------------------------------------------- /tests/rules/useMixinInsteadUnitTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/rules/useMixinInsteadUnitTest.ts -------------------------------------------------------------------------------- /tests/smokeTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/smokeTest.ts -------------------------------------------------------------------------------- /tests/staff/bootstrap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/staff/bootstrap.ts -------------------------------------------------------------------------------- /tests/staff/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/staff/config.json -------------------------------------------------------------------------------- /tests/staff/disable-sort-order-rule.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/staff/disable-sort-order-rule.json -------------------------------------------------------------------------------- /tests/staff/extends.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/staff/extends.js -------------------------------------------------------------------------------- /tests/staff/extends.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/staff/extends.json -------------------------------------------------------------------------------- /tests/staff/extra/testRule.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/staff/extra/testRule.js -------------------------------------------------------------------------------- /tests/staff/preprocessor.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/staff/preprocessor.js -------------------------------------------------------------------------------- /tests/staff/subfolder/extends.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/staff/subfolder/extends.json -------------------------------------------------------------------------------- /tests/staff/subfolder/preprocessors/preprocessor.js: -------------------------------------------------------------------------------- 1 | module.exports = function (str) { 2 | return str + 'i work'; 3 | }; 4 | -------------------------------------------------------------------------------- /tests/staff/test.styl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tests/staff/test.styl -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/tslint.json -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stylus/stlint/HEAD/webpack.config.js --------------------------------------------------------------------------------