Skip to content

Commit

Permalink
refactor(*): apply new lint rule set up and lint fix on new rules (sv…
Browse files Browse the repository at this point in the history
  • Loading branch information
sverweij authored Mar 14, 2020
1 parent 299df02 commit acf6b81
Show file tree
Hide file tree
Showing 93 changed files with 2,417 additions and 2,647 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"root": true,
"extends": ["./configs/eslint-config.json", "eslint-config-prettier"],
"extends": ["moving-meadow"],
"rules": {
"security/detect-non-literal-fs-filename": "off"
},
"overrides": [
{
"files": ["test/**/*.js"],
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ GENERATED_SOURCES=src/cli/init-config/config.js.template.js \
src/report/csv/csv.template.js \
src/report/dot/dot.template.js \
src/report/html/html.template.js \
src/report/err-html/err-html.template.js \
src/report/error-html/error-html.template.js \
src/schema/configuration.schema.json \
src/schema/cruise-result.schema.json

Expand Down
4 changes: 2 additions & 2 deletions bin/depcruise-fmt.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env node
const validateNodeEnv = require("../src/cli/validate-node-env");
const validateNodeEnvironment = require("../src/cli/validate-node-environment");

function formatError(pError) {
process.stderr.write(pError.message);
process.exitCode = 1;
}

try {
validateNodeEnv();
validateNodeEnvironment();

// importing things only after the validateNodeEnv check so we can show an understandable
// error. Otherwise, on unsupported platforms we would show a stack trace, which is
Expand Down
4 changes: 2 additions & 2 deletions bin/dependency-cruise.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env node
const validateNodeEnv = require("../src/cli/validate-node-env");
const validateNodeEnvironment = require("../src/cli/validate-node-environment");

try {
validateNodeEnv();
validateNodeEnvironment();

// importing things only after the validateNodeEnv check so we can show an understandable
// error. Otherwise, on unsupported platforms we would show a stack trace, which is
Expand Down
334 changes: 0 additions & 334 deletions configs/eslint-config.json

This file was deleted.

Loading

0 comments on commit acf6b81

Please sign in to comment.