eslint-config-is2ei
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -1,1 +0,1 @@ | ||
module.exports = require("./eslintrc") | ||
module.exports = require("./lib/base.js"); |
343
lib/base.js
@@ -0,57 +1,108 @@ | ||
/* eslint-disable no-magic-numbers */ | ||
module.exports = { | ||
"rules": { | ||
"for-direction": "error", | ||
"getter-return": "error", | ||
"no-async-promise-executor": "error", | ||
"no-await-in-loop": "error", | ||
"no-compare-neg-zero": "error", | ||
"no-cond-assign": "error", | ||
"no-console": "error", | ||
"no-constant-condition": "error", | ||
"no-control-regex": "error", | ||
"no-debugger": "error", | ||
"no-dupe-args": "error", | ||
"no-dupe-keys": "error", | ||
"no-duplicate-case": "error", | ||
"no-empty": "error", | ||
"no-empty-character-class": "error", | ||
"no-ex-assign": "error", | ||
"no-extra-boolean-cast": "error", | ||
"no-extra-parens": "error", | ||
"no-extra-semi": "error", | ||
"no-func-assign": "error", | ||
"no-inner-declarations": "error", | ||
"no-invalid-regexp": "error", | ||
"no-irregular-whitespace": "error", | ||
"no-misleading-character-class": "error", | ||
"no-obj-calls": "error", | ||
"no-prototype-builtins": "error", | ||
"no-regex-spaces": "error", | ||
"no-sparse-arrays": "error", | ||
"no-template-curly-in-string": "error", | ||
"no-unexpected-multiline": "error", | ||
"no-unreachable": "error", | ||
"no-unsafe-finally": "error", | ||
"no-unsafe-negation": "error", | ||
"require-atomic-updates": "error", | ||
"use-isnan": "error", | ||
"valid-typeof": "error", | ||
"accessor-pairs": "error", | ||
"array-bracket-newline": "error", | ||
"array-bracket-spacing": "error", | ||
"array-callback-return": "error", | ||
"array-element-newline": "error", | ||
"arrow-body-style": "error", | ||
"arrow-parens": "error", | ||
"arrow-spacing": "error", | ||
"block-scoped-var": "error", | ||
"block-spacing": "error", | ||
"brace-style": "error", | ||
"callback-return": "error", | ||
"camelcase": "error", | ||
"capitalized-comments": "error", | ||
"class-methods-use-this": "error", | ||
"comma-dangle": "error", | ||
"comma-spacing": "error", | ||
"comma-style": "error", | ||
"complexity": "error", | ||
"computed-property-spacing": "error", | ||
"consistent-return": "off", | ||
"consistent-this": "error", | ||
"constructor-super": "error", | ||
"curly": "error", | ||
"default-case": "error", | ||
"dot-location": ["error", "property"], | ||
"dot-location": [ | ||
"error", | ||
"property" | ||
], | ||
"dot-notation": "error", | ||
"eol-last": "error", | ||
"eqeqeq": "error", | ||
"for-direction": "error", | ||
"func-call-spacing": "error", | ||
"func-name-matching": "error", | ||
"func-names": [ | ||
"error", | ||
"as-needed", | ||
{"generators": "as-needed"} | ||
], | ||
"func-style": "off", | ||
"function-paren-newline": "error", | ||
"generator-star-spacing": "error", | ||
"getter-return": "error", | ||
"global-require": "error", | ||
"guard-for-in": "error", | ||
"handle-callback-err": "error", | ||
"id-blacklist": "error", | ||
"id-length": "off", | ||
"id-match": "error", | ||
"implicit-arrow-linebreak": "error", | ||
"indent": "error", | ||
"init-declarations": "error", | ||
"jsx-quotes": "error", | ||
"key-spacing": "error", | ||
"keyword-spacing": "error", | ||
"line-comment-position": "error", | ||
"linebreak-style": "error", | ||
"lines-around-comment": "error", | ||
"lines-between-class-members": "error", | ||
"max-classes-per-file": "error", | ||
"max-depth": "error", | ||
"max-len": "error", | ||
"max-lines": "error", | ||
"max-lines-per-function": "error", | ||
"max-nested-callbacks": "error", | ||
"max-params": [ | ||
"error", | ||
4 | ||
], | ||
"max-statements": "error", | ||
"multiline-comment-style": "error", | ||
"multiline-ternary": "error", | ||
"new-cap": "error", | ||
"new-parens": "error", | ||
"newline-per-chained-call": "error", | ||
"no-alert": "error", | ||
"no-array-constructor": "error", | ||
"no-async-promise-executor": "error", | ||
"no-await-in-loop": "error", | ||
"no-bitwise": "error", | ||
"no-buffer-constructor": "error", | ||
"no-caller": "error", | ||
"no-case-declarations": "error", | ||
"no-class-assign": "error", | ||
"no-compare-neg-zero": "error", | ||
"no-cond-assign": "error", | ||
"no-confusing-arrow": "error", | ||
"no-console": "error", | ||
"no-const-assign": "error", | ||
"no-constant-condition": "error", | ||
"no-continue": "error", | ||
"no-control-regex": "error", | ||
"no-debugger": "error", | ||
"no-delete-var": "error", | ||
"no-div-regex": "error", | ||
"no-dupe-args": "error", | ||
"no-dupe-class-members": "error", | ||
"no-dupe-keys": "error", | ||
"no-duplicate-case": "error", | ||
"no-duplicate-imports": "error", | ||
"no-else-return": "error", | ||
"no-empty": "error", | ||
"no-empty-character-class": "error", | ||
"no-empty-function": "error", | ||
@@ -61,7 +112,12 @@ "no-empty-pattern": "error", | ||
"no-eval": "error", | ||
"no-ex-assign": "error", | ||
"no-extend-native": "error", | ||
"no-extra-bind": "error", | ||
"no-extra-boolean-cast": "error", | ||
"no-extra-label": "error", | ||
"no-extra-parens": "error", | ||
"no-extra-semi": "error", | ||
"no-fallthrough": "error", | ||
"no-floating-decimal": "error", | ||
"no-func-assign": "error", | ||
"no-global-assign": "error", | ||
@@ -71,19 +127,46 @@ "no-implicit-coercion": "error", | ||
"no-implied-eval": "error", | ||
"no-inline-comments": "error", | ||
"no-inner-declarations": "error", | ||
"no-invalid-regexp": "error", | ||
"no-invalid-this": "error", | ||
"no-irregular-whitespace": "error", | ||
"no-iterator": "error", | ||
"no-label-var": "error", | ||
"no-labels": "error", | ||
"no-lone-blocks": "error", | ||
"no-lonely-if": "error", | ||
"no-loop-func": "error", | ||
"no-magic-numbers": "error", | ||
"no-misleading-character-class": "error", | ||
"no-mixed-operators": "error", | ||
"no-mixed-requires": "error", | ||
"no-mixed-spaces-and-tabs": "error", | ||
"no-multi-assign": "error", | ||
"no-multi-spaces": "error", | ||
"no-multi-str": "error", | ||
"no-negated-condition": "error", | ||
"no-nested-ternary": "error", | ||
"no-new": "error", | ||
"no-new-func": "error", | ||
"no-new-object": "error", | ||
"no-new-require": "error", | ||
"no-new-symbol": "error", | ||
"no-new-wrappers": "error", | ||
"no-obj-calls": "error", | ||
"no-octal": "error", | ||
"no-octal-escape": "error", | ||
"no-param-reassign": "error", | ||
"no-path-concat": "error", | ||
"no-plusplus": "error", | ||
"no-process-env": "error", | ||
"no-process-exit": "error", | ||
"no-proto": "error", | ||
"no-prototype-builtins": "error", | ||
"no-redeclare": "error", | ||
"no-regex-spaces": "error", | ||
"no-restricted-globals": "error", | ||
"no-restricted-imports": "error", | ||
"no-restricted-modules": "error", | ||
"no-restricted-properties": "error", | ||
"no-restricted-syntax": "error", | ||
"no-return-assign": "error", | ||
@@ -95,105 +178,39 @@ "no-return-await": "error", | ||
"no-sequences": "error", | ||
"no-shadow": "error", | ||
"no-shadow-restricted-names": "error", | ||
"no-sparse-arrays": "error", | ||
"no-sync": "error", | ||
"no-tabs": "error", | ||
"no-template-curly-in-string": "error", | ||
"no-ternary": "error", | ||
"no-this-before-super": "error", | ||
"no-throw-literal": "error", | ||
"no-trailing-spaces": "error", | ||
"no-undef": "error", | ||
"no-undef-init": "error", | ||
"no-undefined": "error", | ||
"no-underscore-dangle": "off", | ||
"no-unexpected-multiline": "error", | ||
"no-unmodified-loop-condition": "error", | ||
"no-unneeded-ternary": "error", | ||
"no-unreachable": "error", | ||
"no-unsafe-finally": "error", | ||
"no-unsafe-negation": "error", | ||
"no-unused-expressions": "error", | ||
"no-unused-labels": "error", | ||
"no-unused-vars": "error", | ||
"no-use-before-define": "error", | ||
"no-useless-call": "error", | ||
"no-useless-catch": "error", | ||
"no-useless-computed-key": "error", | ||
"no-useless-concat": "error", | ||
"no-useless-constructor": "error", | ||
"no-useless-escape": "error", | ||
"no-useless-rename": "error", | ||
"no-useless-return": "error", | ||
"no-var": "off", | ||
"no-void": "error", | ||
"no-warning-comments": "error", | ||
"no-whitespace-before-property": "error", | ||
"no-with": "error", | ||
"prefer-promise-reject-errors": "error", | ||
"radix": "error", | ||
"require-await": "error", | ||
"require-unicode-regexp": "error", | ||
"vars-on-top": "error", | ||
"wrap-iife": "error", | ||
"yoda": "error", | ||
"strict": "error", | ||
"init-declarations": "error", | ||
"no-delete-var": "error", | ||
"no-label-var": "error", | ||
"no-restricted-globals": "error", | ||
"no-shadow": "error", | ||
"no-shadow-restricted-names": "error", | ||
"no-undef": "error", | ||
"no-undef-init": "error", | ||
"no-undefined": "error", | ||
"no-unused-vars": "error", | ||
"no-use-before-define": "error", | ||
"callback-return": "error", | ||
"global-require": "error", | ||
"handle-callback-err": "error", | ||
"no-buffer-constructor": "error", | ||
"no-mixed-requires": "error", | ||
"no-new-require": "error", | ||
"no-path-concat": "error", | ||
"no-process-env": "error", | ||
"no-process-exit": "error", | ||
"no-restricted-modules": "error", | ||
"no-sync": "error", | ||
"array-bracket-newline": "error", | ||
"array-bracket-spacing": "error", | ||
"array-element-newline": "error", | ||
"block-spacing": "error", | ||
"brace-style": "error", | ||
"camelcase": "error", | ||
"capitalized-comments": "error", | ||
"comma-dangle": "error", | ||
"comma-spacing": "error", | ||
"comma-style": "error", | ||
"computed-property-spacing": "error", | ||
"consistent-this": "error", | ||
"eol-last": "error", | ||
"func-call-spacing": "error", | ||
"func-name-matching": "error", | ||
"func-names": ["error", "as-needed", { "generators": "as-needed" }], | ||
"func-style": "off", | ||
"function-paren-newline": "error", | ||
"id-blacklist": "error", | ||
"id-length": "off", | ||
"id-match": "error", | ||
"implicit-arrow-linebreak": "error", | ||
"indent": "error", | ||
"jsx-quotes": "error", | ||
"key-spacing": "error", | ||
"keyword-spacing": "error", | ||
"line-comment-position": "error", | ||
"linebreak-style": "error", | ||
"lines-around-comment": "error", | ||
"lines-between-class-members": "error", | ||
"max-depth": "error", | ||
"max-len": "error", | ||
"max-lines": "error", | ||
"max-lines-per-function": "error", | ||
"max-nested-callbacks": "error", | ||
"max-params": ["error", 4], | ||
"max-statements": "error", | ||
"multiline-comment-style": "error", | ||
"multiline-ternary": "error", | ||
"new-cap": "error", | ||
"new-parens": "error", | ||
"newline-per-chained-call": "error", | ||
"no-array-constructor": "error", | ||
"no-bitwise": "error", | ||
"no-continue": "error", | ||
"no-inline-comments": "error", | ||
"no-lonely-if": "error", | ||
"no-mixed-operators": "error", | ||
"no-mixed-spaces-and-tabs": "error", | ||
"no-multi-assign": "error", | ||
"no-negated-condition": "error", | ||
"no-nested-ternary": "error", | ||
"no-new-object": "error", | ||
"no-plusplus": "error", | ||
"no-restricted-syntax": "error", | ||
"no-tabs": "error", | ||
"no-ternary": "error", | ||
"no-trailing-spaces": "error", | ||
"no-underscore-dangle": "off", | ||
"no-unneeded-ternary": "error", | ||
"no-whitespace-before-property": "error", | ||
"nonblock-statement-body-position": "error", | ||
@@ -203,2 +220,3 @@ "object-curly-newline": "error", | ||
"object-property-newline": "error", | ||
"object-shorthand": "error", | ||
"one-var": "error", | ||
@@ -208,10 +226,33 @@ "one-var-declaration-per-line": "error", | ||
"operator-linebreak": "error", | ||
"padded-blocks": ["error", {"classes": "always"}], | ||
"padded-blocks": [ | ||
"error", | ||
{"classes": "always"} | ||
], | ||
"padding-line-between-statements": "error", | ||
"prefer-arrow-callback": "off", | ||
"prefer-const": "off", | ||
"prefer-destructuring": "off", | ||
"prefer-numeric-literals": "error", | ||
"prefer-object-spread": "error", | ||
"prefer-promise-reject-errors": "error", | ||
"prefer-rest-params": "error", | ||
"prefer-spread": "error", | ||
"prefer-template": "error", | ||
"quote-props": "error", | ||
"quotes": ["error", "double", {"avoidEscape": true, "allowTemplateLiterals": true}], | ||
"quotes": [ | ||
"error", | ||
"double", | ||
{"allowTemplateLiterals": true, | ||
"avoidEscape": true} | ||
], | ||
"radix": "error", | ||
"require-atomic-updates": "error", | ||
"require-await": "error", | ||
"require-unicode-regexp": "error", | ||
"require-yield": "error", | ||
"rest-spread-spacing": "error", | ||
"semi": "error", | ||
"semi-spacing": "error", | ||
"semi-style": "error", | ||
"sort-imports": "error", | ||
"sort-keys": "error", | ||
@@ -225,38 +266,16 @@ "sort-vars": "error", | ||
"spaced-comment": "error", | ||
"strict": "error", | ||
"switch-colon-spacing": "error", | ||
"symbol-description": "error", | ||
"template-curly-spacing": "error", | ||
"template-tag-spacing": "error", | ||
"unicode-bom": "error", | ||
"use-isnan": "error", | ||
"valid-typeof": "error", | ||
"vars-on-top": "error", | ||
"wrap-iife": "error", | ||
"wrap-regex": "error", | ||
"arrow-body-style": "error", | ||
"arrow-parens": "error", | ||
"arrow-spacing": "error", | ||
"constructor-super": "error", | ||
"generator-star-spacing": "error", | ||
"no-class-assign": "error", | ||
"no-confusing-arrow": "error", | ||
"no-const-assign": "error", | ||
"no-dupe-class-members": "error", | ||
"no-duplicate-imports": "error", | ||
"no-new-symbol": "error", | ||
"no-restricted-imports": "error", | ||
"no-this-before-super": "error", | ||
"no-useless-computed-key": "error", | ||
"no-useless-constructor": "error", | ||
"no-useless-rename": "error", | ||
"no-var": "off", | ||
"object-shorthand": "error", | ||
"prefer-arrow-callback": "off", | ||
"prefer-const": "off", | ||
"prefer-destructuring": "off", | ||
"prefer-numeric-literals": "error", | ||
"prefer-rest-params": "error", | ||
"prefer-spread": "error", | ||
"prefer-template": "error", | ||
"require-yield": "error", | ||
"rest-spread-spacing": "error", | ||
"sort-imports": "error", | ||
"symbol-description": "error", | ||
"template-curly-spacing": "error", | ||
"yield-star-spacing": "error" | ||
"yield-star-spacing": "error", | ||
"yoda": "error" | ||
} | ||
} | ||
}; |
{ | ||
"name": "eslint-config-is2ei", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "ESLint Shareable Config", | ||
@@ -16,2 +16,5 @@ "keywords": [ | ||
}, | ||
"scripts": { | ||
"test": "eslint ./" | ||
}, | ||
"engines": { | ||
@@ -18,0 +21,0 @@ "node": ">= 4" |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11569
276