diff options
author | geireann <60007097+geireann@users.noreply.github.com> | 2022-06-05 15:27:23 +0100 |
---|---|---|
committer | geireann <60007097+geireann@users.noreply.github.com> | 2022-06-05 15:27:23 +0100 |
commit | a96858e3a83606d69a691d251f01f54ef39924e9 (patch) | |
tree | 6ab65b3d9248d703ac854daf0b1473b2a3fc5e98 | |
parent | 57dd31eac1f399ff4dcec510df48496ada007e53 (diff) |
added eslint and prettier
removed tslint formatter
-rw-r--r-- | .eslintrc.json | 13 | ||||
-rw-r--r-- | .prettierrc.json | 6 | ||||
-rw-r--r-- | tslint.json | 32 |
3 files changed, 19 insertions, 32 deletions
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 |