/
ESlint Rules (json)
ESlint Rules (json)
{ "parser": "babel-eslint", "extends": "@folio/eslint-config-stripes", "plugins": [ "filenames" ], "rules": { "filenames/match-exported": "error", "key-spacing": [ "error", { "beforeColon": false, "afterColon": true } ], "padding-line-between-statements": [ "error", { "blankLine": "always", "prev": "*", "next": "return" }, { "blankLine": "always", "prev": [ "const", "let", "var" ], "next": "*" }, { "blankLine": "any", "prev": [ "const", "let", "var" ], "next": [ "const", "let", "var" ] } ], "react/jsx-one-expression-per-line": false, "comma-dangle": [ "error", { "arrays": "always-multiline", "objects": "always-multiline", "imports": "always-multiline", "exports": "always-multiline", "functions": "always-multiline" } ], "max-len": [ "error", { "code": 120, "ignoreComments": true, "ignoreTrailingComments": true, "ignoreUrls": true, "ignoreStrings": true, "ignoreTemplateLiterals": true, "ignoreRegExpLiterals": true } ], "react/jsx-closing-bracket-location": [ "error", "tag-aligned" ], "react/jsx-closing-tag-location": [ "error", "tag-aligned" ], "react/jsx-wrap-multilines": [ "error", "parens-new-line" ], "no-this-before-super": "error", "prefer-destructuring": [ "warn", { "array": false, "object": true }, { "enforceForRenamedProperties": false } ], "prefer-object-spread": "error", "jsx-quotes": [ "error", "prefer-double" ], "prefer-const": "error", "react/sort-comp": [ "warn", { "order": [ "static-methods", "lifecycle", "render", "everything-else" ] } ], "react/jsx-curly-spacing": [ "error", { "when": "never", "children": true } ], "eol-last": ["error", "always"], "no-multiple-empty-lines": [ "error", { "max": 1, "maxEOF": 0, "maxBOF": 0 } ], "no-array-constructor": "error", "no-loop-func": "error", "no-new-func": "error", "max-lines": [ "error", 1000 ], "max-depth": [ "error", 3 ], "no-constant-condition": "error" } } }
, multiple selections available,
Related content
Script to update mapping rules with required condition for specified fields
Script to update mapping rules with required condition for specified fields
More like this
Permissions violations
Permissions violations
More like this
Script to update tenant mapping rules to include mapping for Canceled LCCN, Date type, Subject Source and Subject Type
Script to update tenant mapping rules to include mapping for Canceled LCCN, Date type, Subject Source and Subject Type
More like this
DR-000009 - Handle i18n where messages are generated
DR-000009 - Handle i18n where messages are generated
More like this
EDIFACT Field Mapping Tips and Examples
EDIFACT Field Mapping Tips and Examples
More like this
Developing UI Modules with Stripes (Work-in-progress)
Developing UI Modules with Stripes (Work-in-progress)
More like this