From ab931f0d96cfef8b4edd2ec59f556afae4ced15e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6ran=20Sander?= Date: Wed, 8 Mar 2023 13:56:37 +0100 Subject: [PATCH] chore: Update code linting setup --- .eslintrc.yml | 25 ++++++++++++++++--------- .jshintrc | 19 +++++++++++++++++++ .prettierrc.yaml | 8 ++++---- 3 files changed, 39 insertions(+), 13 deletions(-) create mode 100644 .jshintrc diff --git a/.eslintrc.yml b/.eslintrc.yml index af4b2fd..70ebfba 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -1,14 +1,21 @@ env: - es6: true - es2021: true - node: true + es6: true + es2021: true + node: true extends: - - airbnb-base - - prettier + - airbnb-base + - prettier parserOptions: - ecmaVersion: 12 - sourceType: module + ecmaVersion: 12 + sourceType: module rules: - prettier/prettier: error + prettier/prettier: error plugins: - - prettier + - prettier +globals: + beforeAll: readonly + afterAll: readonly + describe: readonly + expect: readonly + test: readonly + it: readonly \ No newline at end of file diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..6eeb239 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,19 @@ +{ + "esversion": 9, + "asi": false, + "boss": true, + "curly": true, + "eqeqeq": true, + "eqnull": true, + "esnext": true, + "immed": true, + "latedef": false, + "laxcomma": false, + "mocha": true, + "newcap": true, + "noarg": true, + "node": true, + "sub": true, + "undef": true, + "unused": true + } \ No newline at end of file diff --git a/.prettierrc.yaml b/.prettierrc.yaml index 8dd284e..da1e754 100755 --- a/.prettierrc.yaml +++ b/.prettierrc.yaml @@ -1,10 +1,10 @@ -printWidth: 100 +printWidth: 140 tabWidth: 4 useTabs: false semi: true singleQuote: true -trailingComma: "es5" +trailingComma: 'es5' bracketSpacing: true -arrowParens: "always" +arrowParens: 'always' requirePragma: false -insertPragma: false +insertPragma: false \ No newline at end of file