eslint-config-generator icon indicating copy to clipboard operation
eslint-config-generator copied to clipboard

GUI for generating eslint config

Eslint Config Generator

App for quick generation eslint configuration file.

Uses this for config generation.

Try it out

https://awebdeveloper.github.io/eslint-config-generator/

Supported Properties

We support very few properties as of now. Send us a pr if you want a missing property to be added:

  • ParseOptions
    • ecmaVersion
    • sourceType
    • ecmaFeatures
    • env
  • Rules
:grey_question: ESLint Description
:x: comma-dangle disallow or enforce trailing commas (recommended)
:x: no-cond-assign disallow assignment in conditional expressions (recommended)
:x: no-console disallow use of console in the node environment (recommended)
:x: no-constant-condition disallow use of constant expressions in conditions (recommended)
:x: no-control-regex disallow control characters in regular expressions (recommended)
:x: no-debugger disallow use of debugger (recommended)
:x: no-dupe-args disallow duplicate arguments in functions (recommended)
:x: no-dupe-keys disallow duplicate keys when creating object literals (recommended)
:x: no-duplicate-case disallow a duplicate case label. (recommended)
:x: no-empty disallow empty statements (recommended)
:x: no-empty-character-class disallow the use of empty character classes in regular expressions (recommended)
:x: no-ex-assign disallow assigning to the exception in a catch block (recommended)
:x: no-extra-boolean-cast disallow double-negation boolean casts in a boolean context (recommended)
:x: no-extra-parens disallow unnecessary parentheses
:x: no-extra-semi disallow unnecessary semicolons (recommended)
:x: no-func-assign disallow overwriting functions written as function declarations (recommended)
:x: no-inner-declarations disallow function or variable declarations in nested blocks (recommended)
:x: no-invalid-regexp disallow invalid regular expression strings in the RegExp constructor (recommended)
:x: no-irregular-whitespace disallow irregular whitespace (recommended)
:x: no-negated-in-lhs disallow negation of the left operand of an in expression (recommended)
:x: no-obj-calls disallow the use of object properties of the global object (Math and JSON) as functions (recommended)
:x: no-regex-spaces disallow multiple spaces in a regular expression literal (recommended)
:x: no-sparse-arrays disallow sparse arrays (recommended)
:x: no-unexpected-multiline Avoid code that looks like two expressions but is actually one
:x: no-unreachable disallow unreachable statements after a return, throw, continue, or break statement (recommended)
:x: no-unsafe-finally disallow control flow statements in finally blocks (recommended)
:x: use-isnan disallow comparisons with the value NaN (recommended)
:x: valid-jsdoc enforce valid JSDoc comments
:x: valid-typeof Ensure that the results of typeof are compared against a valid string (recommended)
:x: accessor-pairs Enforces getter/setter pairs in objects
:x: array-callback-return Enforce return statements in callbacks of array’s methods
:x: block-scoped-var treat var statements as if they were block scoped
:x: complexity specify the maximum cyclomatic complexity allowed in a program
:x: consistent-return require return statements to either always or never specify values
:x: curly specify curly brace conventions for all control statements
:x: default-case require default case in switch statements
:x: dot-location enforces consistent newlines before or after dots
:x: dot-notation encourages use of dot notation whenever possible
:x: eqeqeq require the use of === and !==
:x: guard-for-in make sure for-in loops have an if statement
:x: no-alert disallow the use of alert, confirm, and prompt
:x: no-caller disallow use of arguments.caller or arguments.callee
:x: no-case-declarations disallow lexical declarations in case clauses
:x: no-div-regex disallow division operators explicitly at beginning of regular expression
:x: no-else-return disallow else after a return in an if
:x: no-empty-function disallow use of empty functions
:x: no-empty-pattern disallow use of empty destructuring patterns
:x: no-eq-null disallow comparisons to null without a type-checking operator
:x: no-eval disallow use of eval()
:x: no-extend-native disallow adding to native types
:x: no-extra-bind disallow unnecessary function binding
:x: no-extra-label disallow unnecessary labels
:x: no-fallthrough disallow fallthrough of case statements (recommended)
:x: no-floating-decimal disallow the use of leading or trailing decimal points in numeric literals
:x: no-implicit-coercion disallow the type conversions with shorter notations
:x: no-implicit-globals disallow var and named functions in global scope
:x: no-implied-eval disallow use of eval()-like methods
:x: no-invalid-this disallow this keywords outside of classes or class-like objects
:x: no-iterator disallow Usage of __iterator__ property
:x: no-labels disallow use of labeled statements
:x: no-lone-blocks disallow unnecessary nested blocks
:x: no-loop-func disallow creation of functions within loops
:x: no-magic-numbers disallow the use of magic numbers
:x: no-multi-spaces disallow use of multiple spaces
:x: no-multi-str disallow use of multiline strings
:x: no-native-reassign disallow reassignments of native objects
:x: no-new disallow use of the new operator when not part of an assignment or comparison
:x: no-new-func disallow use of new operator for Function object
:x: no-new-wrappers disallows creating new instances of String,Number, and Boolean
:x: no-octal disallow use of octal literals (recommended)
:x: no-octal-escape disallow use of octal escape sequences in string literals, such as var foo = ""Copyright \251",""`
:x: no-param-reassign disallow reassignment of function parameters
:x: no-proto disallow Usage of __proto__ property
:x: no-redeclare disallow declaring the same variable more than once (http://eslint.org/docs/rules/recommended)
:x: no-return-assign disallow use of assignment in return statement
:x: no-script-url disallow use of javascript: urls.
:x: no-self-assign disallow assignments where both sides are exactly the same
:x: no-self-compare disallow comparisons where both sides are exactly the same
:x: no-sequences disallow use of the comma operator
:x: no-throw-literal restrict what can be thrown as an exception
:x: no-unmodified-loop-condition disallow unmodified conditions of loops
:x: no-unused-expressions disallow Usage of expressions in statement position
:x: no-unused-labels disallow unused labels
:x: no-useless-call disallow unnecessary .call() and .apply()
:x: no-useless-concat disallow unnecessary concatenation of literals or template literals
:x: no-useless-escape disallow unnecessary usage of escape character
:x: no-void disallow use of the void operator
:x: no-warning-comments disallow Usage of configurable warning terms in comments e.g. TODO or FIXME
:x: no-with disallow use of the with statement
:x: radix require use of the second argument for parseInt()
:x: vars-on-top require declaration of all vars at the top of their containing scope
:x: wrap-iife require immediate function invocation to be wrapped in parentheses
:x: yoda require or disallow Yoda conditions
:x: init-declarations enforce or disallow variable initializations at definition
:x: no-catch-shadow disallow the catch clause parameter name being the same as a variable in the outer scope
:x: no-delete-var disallow deletion of variables (recommended)
:x: no-label-var disallow labels that share a name with a variable
:x: no-shadow disallow declaration of variables already declared in the outer scope
:x: no-shadow-restricted-names disallow shadowing of names such as arguments
:x: no-undef disallow use of undeclared variables unless mentioned in a /*global */ block (recommended)
:x: no-undef-init disallow use of undefined when initializing variables
:x: no-undefined disallow use of undefined variable
:x: no-unused-vars disallow unused variables (recommended).
:x: no-use-before-define disallow use of variables before they are defined
:x: callback-return enforce return after a callback
:x: global-require enforce require() on top-level module scope
:x: handle-callback-err enforce error handling in callbacks
:x: no-mixed-requires disallow mixing regular variable and require declarations
:x: no-new-require disallow use of new operator with the require function
:x: no-path-concat disallow string concatenation with __dirname and __filename
:x: no-process-env disallow use of process.env
:x: no-process-exit disallow process.exit()
:x: no-restricted-modules restrict Usage of specified node modules
:x: no-sync disallow use of synchronous methods
:x: array-bracket-spacing enforce consistent spacing inside array brackets
:x: block-spacing disallow or enforce spaces inside of single line blocks
:x: brace-style enforce one true brace style
:x: camelcase require camel case names
:x: comma-spacing enforce spacing before and after comma
:x: comma-style enforce one true comma style
:x: computed-property-spacing require or disallow padding inside computed properties
:x: consistent-this enforce consistent naming when capturing the current execution context
:x: eol-last enforce newline at the end of file, with no multiple empty lines
:x: func-call-spacing require or disallow spacing between function identifiers and their invocations
:x: func-names require function expressions to have a name
:x: func-style enforce use of function declarations or expressions
:x: id-blacklist disallow certain identifiers to prevent them being used
:x: id-length this option enforces minimum and maximum identifier lengths (variable names, property names etc.)
:x: id-match require identifiers to match the provided regular expression
:white_check_mark: indent enforce consistent indentation
:x: jsx-quotes specify whether double or single quotes should be used in JSX attributes
:x: key-spacing enforce spacing between keys and values in object literal properties
:x: keyword-spacing enforce spacing before and after keywords
:x: linebreak-style disallow mixed 'LF' and 'CRLF' as linebreaks
:x: lines-around-comment enforce empty lines around comments
:x: max-depth specify the maximum depth that blocks can be nested
:x: max-len enforce a maximum line length
:x: max-lines enforce a maximum number of lines per file
:x: max-nested-callbacks specify the maximum depth callbacks can be nested
:x: max-params specify the number of parameters that can be used in the function declaration
:x: max-statements specify the maximum number of statement allowed in a function
:x: max-statements-per-line specify the maximum number of statements allowed per line
:x: new-cap require a capital letter for constructors
:x: new-parens disallow the omission of parentheses when invoking a constructor with no arguments
:x: newline-after-var require or disallow an empty newline after variable declarations
:x: newline-before-return require newline before return statement
:x: newline-per-chained-call enforce newline after each call when chaining the calls
:x: no-array-constructor disallow use of the Array constructor
:x: no-bitwise disallows bitwise operators
:x: no-continue disallow use of the continue statement
:x: no-inline-comments disallow comments inline after code
:x: no-lonely-if disallow if as the only statement in an else block
:x: no-mixed-spaces-and-tabs disallow mixed spaces and tabs for indentation (recommended)
:x: no-multiple-empty-lines disallow multiple empty lines
:x: no-negated-condition disallow negated conditions
:x: no-nested-ternary disallow nested ternary expressions
:x: no-new-object disallow the use of the Object constructor
:x: no-restricted-syntax disallow use of certain syntax in code
:x: no-spaced-func disallow space between function identifier and application
:x: no-ternary disallow the use of ternary operators
:x: no-trailing-spaces disallow trailing whitespace at the end of lines
:x: no-underscore-dangle disallow dangling underscores in identifiers
:x: no-unneeded-ternary disallow the use of ternary operators when a simpler alternative exists
:x: no-whitespace-before-property disallow whitespace before properties
:x: object-curly-spacing require or disallow padding inside curly braces
:x: one-var require or disallow one variable declaration per function
:x: one-var-declaration-per-line require or disallow a newline around variable declarations
:x: operator-assignment require assignment operator shorthand where possible or prohibit it entirely
:x: operator-linebreak enforce operators to be placed before or after line breaks
:x: padded-blocks enforce padding within blocks
:x: quote-props require quotes around object literal property names
:x: quotes specify whether backticks, double or single quotes should be used
:x: require-jsdoc Require JSDoc comment
:x: semi require or disallow use of semicolons instead of ASI
:x: semi-spacing enforce spacing before and after semicolons
:x: sort-imports enforce sorting import declarations within module
:x: sort-vars sort variables within the same declaration block
:x: space-before-blocks require or disallow a space before blocks
:x: space-before-function-paren require or disallow a space before function opening parenthesis
:x: space-in-parens require or disallow spaces inside parentheses
:x: space-infix-ops require spaces around operators
:x: space-unary-ops require or disallow spaces before/after unary operators
:x: spaced-comment require or disallow a space immediately following the // or /* in a comment
:x: wrap-regex require regex literals to be wrapped in parentheses
:x: no-tabs disallow all tabs
:x: arrow-body-style require braces in arrow function body
:x: arrow-parens require parens in arrow function arguments
:x: arrow-spacing require space before/after arrow function's arrow
:x: constructor-super verify calls of super() in constructors
:x: generator-star-spacing enforce spacing around the * in generator functions
:x: no-class-assign disallow modifying variables of class declarations
:x: no-confusing-arrow disallow arrow functions where they could be confused with comparisons
:x: no-const-assign disallow modifying variables that are declared using const
:x: no-dupe-class-members disallow duplicate name in class members
:x: no-duplicate-imports disallow duplicate module imports
:x: no-new-symbol disallow use of the new operator with the Symbol object
:x: no-restricted-imports restrict usage of specified modules when loaded by import declaration
:x: no-this-before-super disallow use of this/super before calling super() in constructors.
:x: no-useless-constructor disallow unnecessary constructor
:x: no-var require let or const instead of var
:x: object-shorthand require method and property shorthand syntax for object literals
:x: prefer-arrow-callback require arrow functions as callbacks
:x: prefer-const suggest using const declaration for variables that are never modified after declared
:x: prefer-destructuring require using destructuring when assigning to variables from arrays and objects
:x: prefer-reflect suggest using Reflect methods where applicable
:x: prefer-rest-params suggest using the rest parameters instead of arguments
:x: prefer-spread suggest using the spread operator instead of .apply().
:x: prefer-template suggest using template literals instead of strings concatenation
:x: require-yield disallow generator functions that do not have yield
:x: template-curly-spacing enforce spacing around embedded expressions of template strings
:x: yield-star-spacing enforce spacing around the * in yield* expressions

Credits