cpen321-recipe-roulette / .eslintrc.json
.eslintrc.json
Raw
{
	"extends": [
		"standard",
		"eslint:recommended",
		"plugin:security/recommended",
		"plugin:node/recommended",
		"plugin:regexp/recommended"
	],
	"env": {
		"es6": true,
		"node": true,
		"browser": true,
		"commonjs": true,
		"jquery": true,
		"phantomjs": true,
		"jasmine": true,
		"mocha": true,
		"amd": true,
		"worker": true,
		"qunit": true,
		"jest/globals": true
	},
	"plugins": ["eslint-plugin-node", "eslint-plugin-regexp", "eslint-plugin-security", "eslint-plugin-jest"],
	"parser": "@babel/eslint-parser",
	"parserOptions": {
		"requireConfigFile": false
	},
	"settings": {
		"jest": {
			"version": 27
		}
	},
	"rules": {
		"prettier/prettier": "off",

		"constructor-super": "error",
		"for-direction": "error",
		"getter-return": "error",
		"no-async-promise-executor": "error",
		"no-class-assign": "error",
		"no-compare-neg-zero": "error",
		"no-cond-assign": "error",
		"no-const-assign": "error",
		"no-constant-condition": "error",
		"no-control-regex": "error",
		"no-debugger": "error",
		"no-dupe-args": "error",
		"no-dupe-class-members": "error",
		"no-dupe-else-if": "error",
		"no-dupe-keys": "error",
		"no-duplicate-case": "error",
		"no-empty-character-class": "error",
		"no-empty-pattern": "error",
		"no-ex-assign": "error",
		"no-fallthrough": "error",
		"no-func-assign": "error",
		"no-import-assign": "error",
		"no-inner-declarations": "error",
		"no-invalid-regexp": "error",
		"no-irregular-whitespace": "error",
		"no-loss-of-precision": "error",
		"no-misleading-character-class": "error",
		"no-new-symbol": "error",
		"no-obj-calls": "error",
		"no-prototype-builtins": "error",
		"no-self-assign": "error",
		"no-setter-return": "error",
		"no-sparse-arrays": "error", 
		"no-this-before-super": "error",
		"no-unexpected-multiline": "error",
		"no-unreachable": "error",
		"no-unsafe-finally": "error",
		"no-unsafe-negation": "error",
		"no-unsafe-optional-chaining": "error",
		"no-unused-vars": "error",
		"no-useless-backreference": "error",
		"use-isnan": "error",
		"valid-typeof": "error",
		"no-case-declarations": "error",
		"no-delete-var": "error",
		"no-empty": "error",
		"no-extra-boolean-cast": "error",
		"no-extra-semi": "error",
		"no-nonoctal-decimal-escape": "error",
		"no-octal": "error",
		"no-redeclare": "error",
		"no-regex-spaces": "error",
		"no-shadow-restricted-names": "error",
		"no-unused-labels": "error",
		"no-useless-catch": "error",
		"no-useless-escape": "error",
		"no-with": "error",
		"require-yield": "error",
		"no-mixed-spaces-and-tabs": "error",
		"no-global-assign": "off",
		"no-undef": "error",
		"indent": "off",
		"no-tabs": "off",
		"quotes": "off",
		"quote-props": "off",
		"semi": "off",
		"key-spacing": "off",
		"object-curly-spacing": "off",
		"space-before-function-paren": "off",
		"arrow-spacing": "off",
		"space-before-blocks": "off",
		"eqeqeq": "off",
		"no-var": "off",
		"comma-spacing": "off",
		"object-curly-newline": "off",
		"keyword-spacing": "off",
		"no-trailing-spaces": "off",
		"camelcase": "off",
		"no-multiple-empty-lines": "off",
		"spaced-comment": "off",
		"space-infix-ops": "off",
		"space-in-parens": "off",
		"padded-blocks": "off",
		"semi-spacing": "off",
		"brace-style": "off",
		"no-multi-spaces": "off",
		"eol-last": "off",
		"no-template-curly-in-string": "off",
		"comma-dangle": "off",
		"prefer-const": "off",
		"no-useless-return": "off",
		"operator-linebreak": "off",
		"dot-notation": "off",
		"no-throw-literal": "off",
		"space-unary-ops": "off",
		"array-bracket-spacing": "off",
		"prefer-promise-reject-errors": "off",
		"func-call-spacing": "off",
		"object-property-newline": "off",
		"block-spacing": "off",
		"lines-between-class-members": "off",
		"no-whitespace-before-property": "off",
		"curly": "off",

		"node/no-exports-assign": "error",
		"node/no-extraneous-import": "error",
		"node/no-extraneous-require": "error",
		"node/no-missing-import": "error",
		"node/no-unpublished-bin": "error",
		"node/no-unpublished-import": "error",
		"node/no-unsupported-features/es-builtins": "error",
		"node/no-unsupported-features/es-syntax": "error",
		"node/process-exit-as-throw": "error",
		"node/shebang": "error",
		"node/no-deprecated-api": "error",
		"node/no-missing-require": "off",
		"node/no-unpublished-require": "off",
		"node/no-unsupported-features/node-builtins": "off",

		"regexp/no-dupe-disjunctions": "error",
		"regexp/no-empty-alternative": "error",
		"regexp/no-empty-capturing-group": "error",
		"regexp/no-empty-group": "error",
		"regexp/no-empty-lookarounds-assertion": "error",
		"regexp/no-escape-backspace": "error",
		"regexp/no-invalid-regexp": "error",
		"regexp/no-lazy-ends": "error",
		"regexp/no-optional-assertion": "error",
		"regexp/no-potentially-useless-backreference": "error",
		"regexp/no-super-linear-backtracking": "error",
		"regexp/no-useless-assertions": "error",
		"regexp/no-useless-dollar-replacements": "error",
		"regexp/strict": "error",
		"regexp/confusing-quantifier": "error",
		"regexp/control-character-escape": "error",
		"regexp/negation": "error",
		"regexp/no-dupe-characters-character-class": "error",
		"regexp/no-invisible-character": "error",
		"regexp/no-legacy-features": "error",
		"regexp/no-non-standard-flag": "error",
		"regexp/no-obscure-range": "error",
		"regexp/no-trivially-nested-assertion": "error",
		"regexp/no-trivially-nested-quantifier": "error",
		"regexp/no-unused-capturing-group": "error",
		"regexp/no-useless-character-class": "error",
		"regexp/no-useless-flag": "error", 
		"regexp/no-useless-lazy": "error",
		"regexp/no-useless-quantifier": "error",
		"regexp/no-useless-range": "error",
		"regexp/no-useless-two-nums-quantifier": "error",
		"regexp/no-zero-quantifier": "error",
		"regexp/optimal-lookaround-quantifier": "error", 
		"regexp/optimal-quantifier-concatenation": "error",
		"regexp/prefer-predefined-assertion": "error",
		"regexp/prefer-range": "error",
		"regexp/match-any": "error",
		"regexp/no-useless-escape": "error",
		"regexp/no-useless-non-capturing-group": "error",
		"regexp/prefer-character-class": "error",
		"regexp/prefer-d": "error",
		"regexp/prefer-plus-quantifier": "error",
		"regexp/prefer-question-quantifier": "error",
		"regexp/prefer-star-quantifier": "error",
		"regexp/prefer-unicode-codepoint-escapes": "error",
		"regexp/prefer-w": "error",
		"regexp/sort-flags": "error",

		"security/detect-disable-mustache-escape": "error",
		"security/detect-eval-with-expression": "error",
		"security/detect-no-csrf-before-method-override": "error",
		"security/detect-non-literal-fs-filename": "error",
		"security/detect-non-literal-regexp": "error",
		"security/detect-non-literal-require": "error",
		"security/detect-possible-timing-attacks": "error",
		"security/detect-pseudoRandomBytes": "error",
		"security/detect-unsafe-regex": "error",
		"security/detect-object-injection": "off"

	}
}