Skip to content

Commit

Permalink
Fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tompahoward committed Dec 4, 2020
1 parent b597e4a commit 76da692
Show file tree
Hide file tree
Showing 41 changed files with 1,485 additions and 1,422 deletions.
6 changes: 3 additions & 3 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: '2'
version: "2"
checks:
argument-count:
enabled: false
Expand All @@ -26,7 +26,7 @@ plugins:
enabled: true
config:
config: .eslintrc.json
channel: 'eslint-7'
channel: "eslint-7"
# git-legal:
# enabled: true
duplication:
Expand All @@ -40,7 +40,7 @@ plugins:
# enabled: true
exclude_patterns:
- dist/
- '**/node_modules/'
- "**/node_modules/"
- coverage/
- test-results/
- scripts/
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
.nyc_output/**/*
node_modules/**/*
target/**/*
coverage/**
test-results/**
lib/**/*
dist/**
.env
out
out
report/**/*
81 changes: 81 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"plugins": [
"security",
"unicorn",
"promise",
"istanbul",
"jsdoc",
"markdown"
],
"extends": [
"standard",
"plugin:security/recommended",
"plugin:unicorn/recommended",
"plugin:jsdoc/recommended",
"plugin:md/recommended",
"plugin:json/recommended"
],
"env": {
"browser": false,
"node": true
},
"globals": {
"Promise": true
},
"rules": {
"node/shebang": [
"error",
{
"convertPath": {
"bin/**/*.js": ["^bin/(.+?)\\.js$", "lib/bin/$1.js"]
}
}
],
"node/no-unsupported-features/es-syntax": [
"error",
{
"ignores": ["modules"]
}
],
"istanbul/no-ignore-file": "error",
"istanbul/prefer-ignore-reason": "error",
"promise/no-callback-in-promise": "off",
"security/detect-object-injection": "off"
},
"overrides": [
{
"files": ["src/test/**", "cucumber.js"],
"plugins": ["chai-friendly"],
"extends": ["plugin:chai-friendly/recommended"],
"globals": {
"expect": true,
"PendingError": true
},
"rules": {
"security/detect-non-literal-fs-filename": "off",
"jsdoc/require-jsdoc": "off"
}
},
{
"files": ["scripts/**"],
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": true
},
"rules": {
"node/shebang": "off"
}
},
{
"files": ["*.md"],
"parser": "markdown-eslint-parser",
"rules": {
"unicorn/filename-case": "off"
}
}
]
}
72 changes: 0 additions & 72 deletions .eslintrc.yaml

This file was deleted.

Loading

0 comments on commit 76da692

Please sign in to comment.