Skip to content

Commit

Permalink
chore: Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
andreidmt committed Jan 2, 2021
1 parent 80f9349 commit 8f52283
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 18 deletions.
5 changes: 1 addition & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"root": true,
"extends": [
"./node_modules/eslint-config.xyz/targets/node",
"@asd14/eslint-config/targets/node",
],
"parserOptions": {
"ecmaVersion": 9
},
"env": {
"node": true
},
"rules": {
},
"settings": {
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,5 @@ compile/

# Flow type
flow-typed/

tags
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

const { isEmpty } = require("m.xyz")
const { isEmpty } = require("@asd14/m")

// First args will always be the node path followed by interpreted file
const params = require("minimist")(process.argv.slice(2), {
Expand Down
2 changes: 1 addition & 1 deletion src/core.hooks/use-scanner/scanner.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

const dependencyTree = require("dependency-tree")
const { forEach } = require("m.xyz")
const { forEach } = require("@asd14/m")

process.on(
"message",
Expand Down
2 changes: 1 addition & 1 deletion src/core.libs/depends-on.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const espree = require("espree")
const fs = require("fs")
const path = require("path")
const { pipe, filterWith, startsWith, map, read } = require("m.xyz")
const { pipe, filterWith, startsWith, map, read } = require("@asd14/m")

const scanRequiredFiles = source => {
const content = fs.readFileSync(source, "utf8")
Expand Down
2 changes: 1 addition & 1 deletion src/core.ui/loader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const blessed = require("neo-blessed")
const { is } = require("m.xyz")
const { is } = require("@asd14/m")

const asciiFrames = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"]

Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const blessed = require("neo-blessed")
const { reduce, forEach } = require("m.xyz")
const { reduce, forEach } = require("@asd14/m")

const projectPkg = require(`${process.cwd()}/package.json`)

Expand All @@ -13,8 +13,8 @@ const { useRunner } = require("./core.hooks/use-runner/runner.hook")
/**
* Main app function, called from "bin/cli.js"
*
* @param {String[]} props.requireModules asd
* @param {String[]} props.fileGlob asd
* @param {string[]} props.requireModules asd
* @param {string[]} props.fileGlob asd
*/
module.exports = ({ requireModules, fileGlob }) => {
const testRunArgs = reduce(
Expand Down
2 changes: 1 addition & 1 deletion src/index.state.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const glob = require("glob")
const { sep } = require("path")
const { buildList } = require("just-a-list.redux")
const { createStore, combineReducers } = require("redux")
const { flatten, distinct, split, last, map, pipe } = require("m.xyz")
const { flatten, distinct, split, last, map, pipe } = require("@asd14/m")

/**
*
Expand Down
2 changes: 1 addition & 1 deletion src/page.home/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const {
push,
contains,
filterWith,
} = require("m.xyz")
} = require("@asd14/m")

const { store, FileList } = require("../index.state")

Expand Down
2 changes: 1 addition & 1 deletion src/page.home/ui/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const commandUI = ({
if (value === "") {
onCancel()
} else {
onChange(value.substr(0, value.length - 1))
onChange(value.slice(0, Math.max(0, value.length - 1)))
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/page.home/ui/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const {
findIndexWith,
contains,
is,
} = require("m.xyz")
} = require("@asd14/m")

const { loaderUI } = require("../../core.ui/loader")

Expand Down
2 changes: 1 addition & 1 deletion src/page.home/ui/help.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const blessed = require("neo-blessed")
const { map, pipe, join } = require("m.xyz")
const { map, pipe, join } = require("@asd14/m")

const helpUI = ({ parent, width, left, bottom }) => {
const shortcutList = [
Expand Down
2 changes: 1 addition & 1 deletion src/page.home/ui/tabs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const blessed = require("neo-blessed")
const { map, reduce } = require("m.xyz")
const { map, reduce } = require("@asd14/m")

const tabsUI = ({ parent, top, tabs }) => {
const props = { tabs }
Expand Down
2 changes: 1 addition & 1 deletion src/page.loader/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const {
all,
hasKey,
pipe,
} = require("m.xyz")
} = require("@asd14/m")

const { FileList, store } = require("../index.state")

Expand Down

0 comments on commit 8f52283

Please sign in to comment.