Skip to content

Commit

Permalink
Separate options from config
Browse files Browse the repository at this point in the history
  • Loading branch information
canmingir committed Apr 12, 2023
1 parent 1f5aa34 commit 70618ed
Show file tree
Hide file tree
Showing 18 changed files with 732 additions and 489 deletions.
20 changes: 0 additions & 20 deletions .eslintrc.js

This file was deleted.

20 changes: 20 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"env": {
"es6": true,
"node": true,
"mocha": true
},
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"ignorePatterns": "/node_modules",
"rules": {
"eqeqeq": ["error", "always"],
"no-console": "off",
"no-eval": "error",
"no-var": "error",
"prefer-arrow-callback": "error"
}
}
3 changes: 2 additions & 1 deletion bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ require("yargs")
desc: "Clear data",
builder: () => {},
handler: () => {
require("./src/lib/data").clear();
const datastore = require("@nucleoidjs/datastore");
datastore.clear();
console.log("Data is cleared");
},
})
Expand Down

0 comments on commit 70618ed

Please sign in to comment.