diff options
Diffstat (limited to 'packages/eslint-config-base')
-rw-r--r-- | packages/eslint-config-base/.eslintrc.json | 10 | ||||
-rw-r--r-- | packages/eslint-config-base/index.js | 139 | ||||
-rw-r--r-- | packages/eslint-config-base/package.json | 8 |
3 files changed, 157 insertions, 0 deletions
diff --git a/packages/eslint-config-base/.eslintrc.json b/packages/eslint-config-base/.eslintrc.json new file mode 100644 index 0000000..d79f15b --- /dev/null +++ b/packages/eslint-config-base/.eslintrc.json @@ -0,0 +1,10 @@ +{ + "env": { + "es2021": true, + "node": true + }, + "parserOptions": { + "ecmaVersion": 12 + }, + "extends": "./index.js" +} diff --git a/packages/eslint-config-base/index.js b/packages/eslint-config-base/index.js new file mode 100644 index 0000000..bcd5f24 --- /dev/null +++ b/packages/eslint-config-base/index.js @@ -0,0 +1,139 @@ +module.exports = { + rules: { + "no-console": "off", + "no-debugger": "off", + "array-bracket-spacing": [ + "error", + "always" + ], + "array-bracket-newline": [ "warn", "consistent" ], + "array-element-newline": "off", + "arrow-body-style": "off", + "arrow-parens": [ + "error", + "as-needed" + ], + "arrow-spacing": [ + "error", + { + after: true, + before: true + } + ], + "brace-style": [ "error", "stroustrup", { allowSingleLine: false } ], + camelcase: "off", + "capitalized-comments": [ + "error", + "always" + ], + "comma-spacing": [ + "error", + { + after: true, + before: false + } + ], + "comma-style": [ + "error", + "last" + ], + "comma-dangle": [ "error", "never" ], + "computed-property-spacing": [ + "error", + "never" + ], + curly: [ "error", "all" ], + "dot-notation": "off", + "eol-last": [ + "error", + "never" + ], + eqeqeq: "error", + "func-names": "off", + "func-style": [ "error", "declaration" ], + "id-length": "off", + "implicit-arrow-linebreak": [ + "error", + "beside" + ], + indent: [ "warn", "tab" ], + "keyword-spacing": [ "error", { + before: false, + overrides: { + from: { before: true }, + for: { after: false }, + if: { after: false }, + throw: { after: false }, + while: { after: false } + } + } ], + "linebreak-style": [ + "error", + "unix" + ], + "line-comment-position": [ "error", { position: "above" } ], + "max-len": "off", + "max-lines": [ "error", 600 ], + "max-params": [ "error", 6 ], + "max-statements": "off", + "multiline-comment-style": [ "error", "bare-block" ], + "no-await-in-loop": "off", + "no-control-regex": "off", + "no-else-return": [ + "error", + { + allowElseIf: true + } + ], + "no-extra-parens": "off", + "no-magic-numbers": "off", + "no-tabs": "off", + "no-ternary": "off", + "no-underscore-dangle": [ "error", { allowAfterThis: true } ], + "no-var": "error", + "object-curly-spacing": [ + "error", + "always" + ], + "object-shorthand": "off", + "one-var": "off", + "padded-blocks": "off", + "prefer-arrow-callback": "off", + "prefer-const": "off", + "prefer-destructuring": "off", + "prefer-template": "off", + "quote-props": [ "error", "as-needed" ], + quotes: [ "error", "double" ], + semi: [ "error", "always" ], + "semi-style": [ + "error", + "last" + ], + "sort-keys": "off", + "space-before-function-paren": [ "error", "never" ], + "space-in-parens": [ + "error", + "never" + ], + "spaced-comment": [ + "error", + "always" + ], + strict: [ + "error", + "never" + ], + "template-curly-spacing": [ + "error", + "never" + ], + "unicode-bom": [ + "error", + "never" + ], + yoda: [ + "error", + "never" + ] + } +};
\ No newline at end of file diff --git a/packages/eslint-config-base/package.json b/packages/eslint-config-base/package.json new file mode 100644 index 0000000..51c3fcc --- /dev/null +++ b/packages/eslint-config-base/package.json @@ -0,0 +1,8 @@ +{ + "name": "eslint-config-base", + "version": "1.0.0", + "main": "index.js", + "author": "HampusMat", + "license": "MIT", + "private": true +} |