eslint-config-wikimedia
Version:
ESLint config following Wikimedia code conventions.
37 lines (36 loc) • 1.27 kB
JSON
{
"plugins": [ "unicorn" ],
"rules": {
"arrow-parens": "error",
"arrow-spacing": "error",
"default-param-last": "error",
"lines-between-class-members": "error",
"no-constructor-return": "error",
"no-misleading-character-class": "error",
"no-new-require": "error",
"no-promise-executor-return": "error",
"no-useless-computed-key": "error",
"template-curly-spacing": [ "error", "always" ],
"no-var": "error",
"one-var": "off",
"vars-on-top": "off",
"prefer-const": "error",
"prefer-arrow-callback": "error",
"implicit-arrow-linebreak": "error",
"arrow-body-style": "error",
"unicorn/no-useless-promise-resolve-reject": "error",
"es-x/no-symbol-prototype-description": "off",
"es-x/no-resizable-and-growable-arraybuffers": "off",
"es-x/no-iterator-prototype-drop": "off",
"es-x/no-iterator-prototype-every": "off",
"es-x/no-iterator-prototype-filter": "off",
"es-x/no-iterator-prototype-find": "off",
"es-x/no-iterator-prototype-flatmap": "off",
"es-x/no-iterator-prototype-foreach": "off",
"es-x/no-iterator-prototype-map": "off",
"es-x/no-iterator-prototype-reduce": "off",
"es-x/no-iterator-prototype-some": "off",
"es-x/no-iterator-prototype-take": "off",
"es-x/no-iterator-prototype-toarray": "off"
}
}