Skip to content

Commit

Permalink
SImplify linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Jul 7, 2022
1 parent 298c6eb commit 0160f06
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/scss-tokenize.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ module.exports = function scssTokenize (input, options = {}) {

function nextToken (opts) {
if (returned.length) return returned.pop()
if (pos >= length) return
if (pos >= length) return undefined

let ignoreUnclosed = opts ? opts.ignoreUnclosed : false

Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@
"trailingComma": "none"
},
"eslintConfig": {
"extends": "@logux/eslint-config",
"rules": {
"consistent-return": "off"
}
"extends": "@logux/eslint-config"
},
"clean-publish": {
"cleanDocs": true
Expand Down
53 changes: 45 additions & 8 deletions pnpm-lock.yaml

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

0 comments on commit 0160f06

Please sign in to comment.