Skip to content

Commit

Permalink
clear up this idea
Browse files Browse the repository at this point in the history
  • Loading branch information
brekk committed Jan 3, 2019
1 parent 41f99b5 commit 2021f8f
Show file tree
Hide file tree
Showing 29 changed files with 4,258 additions and 4,375 deletions.
13 changes: 0 additions & 13 deletions .babelrc

This file was deleted.

74 changes: 11 additions & 63 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"root": true,
"env": {
"node": true,
"es6": true
Expand All @@ -9,35 +8,13 @@
"sourceType": "module"
},
"rules": {
"no-extra-semi": "error",
"complexity": [1, 4],

"valid-jsdoc": [2, {
"prefer": {
"return": "returns"
}
}],
"prettier/prettier": [2, {"semi": false }],
"no-extra-semi": 2,
"valid-jsdoc": "error",
"no-var": 2,
"no-constant-condition": 2,
"no-const-assign": 2,
"no-global-assign": 2,
"no-debugger": 2,
"no-prototype-builtins": 2,
"no-unreachable": 2,
"no-extra-bind": 2,
"no-extra-label": 2,
"no-else-return": 2,
"no-labels": 2,
"no-redeclare": 2,
"no-self-assign": 2,
"no-self-compare": 2,
"func-name-matching": 2,
"valid-typeof": 2,
"dot-location": [2, "property"],
"no-console": 2,
"eqeqeq": [2, "smart"],
"arrow-parens": [2, "always"],
"consistent-this": 2,
"arrow-parens": [2, "as-needed"],
"consistent-this": 0,
"func-names": [2],
"generator-star-spacing": [2, "after"],
"indent": [2, 2],
Expand All @@ -46,53 +23,24 @@
"max-len": [1, 100, 2],
"new-cap": [2, {"capIsNew": false}],
"no-trailing-spaces": [2, { "skipBlankLines": true }],
"no-unused-vars": [2, {
"vars": "all",
"varsIgnorePattern": "^style|^Inferno$"
}],
"no-unused-vars": [2, {"vars": "all", "varsIgnorePattern": "^___" }],
"object-curly-spacing": 0,
"one-var": 0,
"operator-linebreak": [2, "after"],
"operator-linebreak": [2, "before"],
"prefer-reflect": 0,
"prefer-destructuring": 2,
"space-before-function-paren": [2, "never"],
"strict": 0,
"no-shadow": [2, { "builtinGlobals": false, "hoist": "all" }],
"fp/no-class": 2,
"fp/no-delete": 2,
"fp/no-events": 2,
"fp/no-get-set": 2,
"fp/no-let": 2,
"fp/no-loops": 2,
"fp/no-mutating-assign": 2,
"fp/no-mutating-methods": [2, {
"allowedObjects": ["R", "ƒ"]
}],
"fp/no-mutation": [2, {
"commonjs": true
}],
"fp/no-proxy": 2,
"fp/no-rest-parameters": 2,
"fp/no-this": 0,
"fp/no-throw": 2,
"fp/no-unused-expression": 0,
"fp/no-valueof-field": 2,
"import/named": 2,
"import/no-mutable-exports": 2,
"import/order": 2,
"import/extensions": [2, {
"json": "always",
"js": "never",
"validation": "always",
"task": "always"
}],
"eslint-comments/disable-enable-pair": 2,
"eslint-comments/no-duplicate-disable": 2,
"eslint-comments/no-unlimited-disable": 2,
"eslint-comments/no-unused-disable": 2,
"eslint-comments/no-unused-enable": 2
}]
},
"extends": ["standard"],
"plugins": [
"babel", "better", "fp", "import", "eslint-comments"
]
"extends": ["standard", "prettier"],
"plugins": ["babel", "fp", "import", "prettier"]
}
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cache:
test:
script:
- yarn install
- node_modules/.bin/nps test
- node_modules/.bin/nps care

# test_db:
# script:
Expand Down
27 changes: 0 additions & 27 deletions .madgerc

This file was deleted.

4 changes: 4 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
presets: [`@babel/preset-env`],
plugins: [`@babel/plugin-transform-destructuring`]
}
68 changes: 34 additions & 34 deletions dependencies.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 8 additions & 20 deletions package-scripts.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
const germs = require(`germs`)
const pkg = require(`./package.json`)
const utils = require(`nps-utils`)
const allNPS = utils.concurrent.nps

const config = germs.build(pkg.name, {
readme: `documentation readme -s "API" src/*.js`,
test: {
description: `run all tests with coverage`,
script: `jest --coverage`
module.exports = {
scripts: {
build: `rollup -c rollup.config.js`,
test: `jest --verbose`,
lint: `eslint src/*.js --env jest --fix`,
doc: `documentation readme -s API src/*.js`,
care: `nps build test lint doc`
}
})

config.scripts.lint.project = `clinton`
config.scripts.lint = Object.assign(
{},
config.scripts.lint,
{script: allNPS(`lint.src`, `lint.jsdoc`, `lint.project`)}
)

module.exports = config
}
Loading

0 comments on commit 2021f8f

Please sign in to comment.