From a96858e3a83606d69a691d251f01f54ef39924e9 Mon Sep 17 00:00:00 2001 From: geireann <60007097+geireann@users.noreply.github.com> Date: Sun, 5 Jun 2022 15:27:23 +0100 Subject: added eslint and prettier removed tslint formatter --- .eslintrc.json | 13 +++++++++++++ .prettierrc.json | 6 ++++++ tslint.json | 32 -------------------------------- 3 files changed, 19 insertions(+), 32 deletions(-) create mode 100644 .eslintrc.json create mode 100644 .prettierrc.json delete mode 100644 tslint.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 000000000..5cc0ab6dc --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,13 @@ +{ + "extends": ["airbnb", "prettier", "plugin:node/recommended"], + "plugins": ["prettier"], + "rules": { + "prettier/prettier": "error", + "no-unused-vars": "warn", + "no-console": "off", + "func-names": "off", + "no-process-exit": "off", + "object-shorthand": "off", + "class-methods-use-this": "off" + } +} diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 000000000..a07280e32 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,6 @@ +{ + "trailingComma": "es5", + "tabWidth": 4, + "semi": false, + "singleQuote": false +} \ No newline at end of file diff --git a/tslint.json b/tslint.json deleted file mode 100644 index 83255a798..000000000 --- a/tslint.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "linterOptions": { - "exclude": [ - "./src/client/northstar/**", - "**/*.js" - ] - }, - "rules": { - "no-return-await": true, - "no-string-literal": true, - "prefer-object-spread": true, - "prefer-for-of": true, - "no-unnecessary-type-assertion": true, - "triple-equals": true, - "prefer-const": true, - "no-unnecessary-callback-wrapper": true, - "class-name": true, - "arrow-return-shorthand": true, - "semicolon": [ - true, - "always" - ], - "curly": [ - true, - "ignore-same-line" - ], - "no-tautology-expression": true, - "unnecessary-constructor": true - }, - "defaultSeverity": "warning", - "jsRules": {} -} \ No newline at end of file -- cgit v1.2.3-70-g09d2