Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/eslint-config / dist / generated.js
Size: Mime:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
    plugins: [
        'import',
        'html',
        'xod-fp',
        'destructuring',
        'better',
        'i18n',
        'jsx-a11y',
        'prettier',
        'react',
        'typescript',
    ],
    parser: 'typescript-eslint-parser',
    parserOptions: {
        ecmaVersion: 2019,
        sourceType: 'module',
        ecmaFeatures: {
            jsx: true,
            modules: true,
            impliedStrict: true,
        },
    },
    settings: {
        'import/ignore': [
            'src',
            'routes',
            'atoms',
            'layouts',
            'config',
            'widgets',
            'molecules',
            'organisms',
        ],
        'import/external-module-folders': [
            'src',
            'routes',
            'atoms',
            'layouts',
            'config',
            'widgets',
            'molecules',
            'organisms',
        ],
        react: {
            pragma: 'React',
            version: '16.6.0',
        },
    },
    rules: {
        'import/no-unresolved': 'OFF',
        'eol-last': 2,
        semi: ['error', 'never'],
        'no-multi-spaces': 0,
        'semi-spacing': 2,
        'key-spacing': [2],
        'comma-dangle': [
            'error',
            {
                arrays: 'always-multiline',
                objects: 'always-multiline',
                imports: 'always-multiline',
                exports: 'always-multiline',
                functions: 'never',
            },
        ],
        'padded-blocks': ['error', 'never'],
        'keyword-spacing': [
            2,
            {
                before: true,
                after: true,
            },
        ],
        'max-len': [
            'warn',
            {
                code: 80,
                ignoreComments: true,
                ignoreUrls: true,
                ignoreTemplateLiterals: true,
                ignoreRegExpLiterals: true,
            },
        ],
        'object-curly-spacing': ['error', 'always'],
        'array-bracket-spacing': ['error', 'never'],
        quotes: [
            1,
            'single',
            {
                allowTemplateLiterals: true,
                avoidEscape: true,
            },
        ],
        indent: 'OFF',
        'no-trailing-spaces': [
            'error',
            {
                skipBlankLines: true,
            },
        ],
        'space-infix-ops': 'OFF',
        'space-before-blocks': [
            'error',
            {
                functions: 'always',
                keywords: 'always',
                classes: 'always',
            },
        ],
        'no-invalid-regexp': 1,
        'no-unused-expressions': 1,
        // 'no-global-reassign': 1,
        'no-fallthrough': 1,
        'no-unreachable': 1,
        'no-shadow-restricted-names': 2,
        'no-new-require': 2,
        'no-mixed-spaces-and-tabs': 2,
        'no-empty': 2,
        'no-undef': 'off',
        'no-dupe-keys': 2,
        'no-empty-character-class': 2,
        'no-self-compare': 2,
        'no-unused-vars': 'off',
        'no-plusplus': [
            'error',
            {
                allowForLoopAfterthoughts: true,
            },
        ],
        'valid-typeof': 2,
        'handle-callback-err': 2,
        'better/no-nulls': 2,
        'max-depth': ['warn', 2],
        'max-statements-per-line': [
            'error',
            {
                max: 1,
            },
        ],
        'max-statements': ['error', 10],
        'destructuring/in-params': [
            'error',
            {
                'max-params': 0,
            },
        ],
        'function-paren-newline': 0,
        'brace-style': [
            'error',
            '1tbs',
            {
                allowSingleLine: false,
            },
        ],
        curly: ['error', 'all'],
        'import/no-extraneous-dependencies': 0,
        'arrow-spacing': [
            'error',
            {
                before: true,
                after: true,
            },
        ],
        'space-in-parens': ['error', 'never'],
        'space-before-function-paren': ['error', 'never'],
        'func-style': [
            'error',
            'declaration',
            {
                allowArrowFunctions: true,
            },
        ],
        'arrow-body-style': 'OFF',
        'arrow-parens': ['error', 'as-needed'],
        'no-return-assign': ['error', 'always'],
        'func-names': 'OFF',
        'template-tag-spacing': ['error', 'always'],
        'func-call-spacing': 2,
        'no-param-reassign': 1,
        'prefer-rest-params': 1,
        'import/extensions': 'OFF',
        'import/no-named-as-default': 'OFF',
        'import/export': 2,
        'jsx-a11y/accessible-emoji': 'warn',
        'jsx-a11y/alt-text': 'warn',
        'jsx-a11y/anchor-has-content': 'warn',
        'jsx-a11y/anchor-is-valid': 'warn',
        'jsx-a11y/aria-activedescendant-has-tabindex': 'warn',
        'jsx-a11y/aria-props': 'warn',
        'jsx-a11y/aria-proptypes': 'warn',
        'jsx-a11y/aria-role': 'warn',
        'jsx-a11y/aria-unsupported-elements': 'warn',
        'jsx-a11y/click-events-have-key-events': 'warn',
        'jsx-a11y/heading-has-content': 'warn',
        'jsx-a11y/html-has-lang': 'warn',
        'jsx-a11y/iframe-has-title': 'warn',
        'jsx-a11y/img-redundant-alt': 'warn',
        'jsx-a11y/interactive-supports-focus': [
            'warn',
            {
                tabbable: [
                    'button',
                    'checkbox',
                    'link',
                    'searchbox',
                    'spinbutton',
                    'switch',
                    'textbox',
                ],
            },
        ],
        'jsx-a11y/media-has-caption': 'warn',
        'jsx-a11y/mouse-events-have-key-events': 'warn',
        'jsx-a11y/no-access-key': 'warn',
        'jsx-a11y/no-autofocus': 'warn',
        'jsx-a11y/no-distracting-elements': 'warn',
        'jsx-a11y/no-interactive-element-to-noninteractive-role': [
            'warn',
            {
                tr: ['none', 'presentation'],
            },
        ],
        'jsx-a11y/no-noninteractive-element-interactions': [
            'warn',
            {
                handlers: [
                    'onClick',
                    'onMouseDown',
                    'onMouseUp',
                    'onKeyPress',
                    'onKeyDown',
                    'onKeyUp',
                ],
            },
        ],
        'jsx-a11y/no-noninteractive-element-to-interactive-role': [
            'warn',
            {
                ul: [
                    'listbox',
                    'menu',
                    'menubar',
                    'radiogroup',
                    'tablist',
                    'tree',
                    'treegrid',
                ],
                ol: [
                    'listbox',
                    'menu',
                    'menubar',
                    'radiogroup',
                    'tablist',
                    'tree',
                    'treegrid',
                ],
                li: ['menuitem', 'option', 'row', 'tab', 'treeitem'],
                table: ['grid'],
                td: ['gridcell'],
            },
        ],
        'jsx-a11y/no-noninteractive-tabindex': [
            'warn',
            {
                tags: [],
                roles: ['tabpanel'],
            },
        ],
        'jsx-a11y/no-onchange': 'warn',
        'jsx-a11y/no-redundant-roles': 'warn',
        'jsx-a11y/no-static-element-interactions': [
            'warn',
            {
                handlers: [
                    'onClick',
                    'onMouseDown',
                    'onMouseUp',
                    'onKeyPress',
                    'onKeyDown',
                    'onKeyUp',
                ],
            },
        ],
        'jsx-a11y/role-has-required-aria-props': 'warn',
        'jsx-a11y/role-supports-aria-props': 'warn',
        'jsx-a11y/scope': 'warn',
        'jsx-a11y/tabindex-no-positive': 'warn',
        'no-continue': 0,
        'no-loop-func': 2,
        camelcase: 2,
        'new-cap': 0,
        'id-length': [
            'error',
            {
                min: 2,
                properties: 'always',
                exceptions: ['x', 'i', 'R', '_'],
            },
        ],
        'id-blacklist': ['error', 'err', 'e', 'cb', 'callback', 'data'],
        'object-shorthand': [
            'warn',
            'always',
            {
                avoidQuotes: true,
            },
        ],
        'valid-jsdoc': ['off'],
        'no-case-declarations': 'OFF',
        strict: 'OFF',
        'no-underscore-dangle': 0,
        'no-mixed-requires': 0,
        'no-process-exit': 0,
        'no-warning-comments': 0,
        'no-alert': 1,
        'no-debugger': 1,
        'no-console': 0,
        'no-confusing-arrow': 'OFF',
        'require-jsdoc': 'OFF',
        'class-methods-use-this': 0,
        'no-process-env': 0,
        'prefer-reflect': 0,
        'nonblock-statement-body-position': 0,
        'prefer-destructuring': 0,
        'prefer-template': 0,
        'global-require': 0,
        'no-invalid-this': 'OFF',
        'prefer-const': 'error',
        'no-undefined': 'OFF',
        'prefer-spread': 'OFF',
        'no-implicit-coercion': 'OFF',
        'no-bitwise': 'OFF',
        'react/jsx-handler-names': [
            2,
            {
                eventHandlerPrefix: 'handle',
                eventHandlerPropPrefix: 'on',
            },
        ],
        'react/jsx-no-undef': 2,
        'react/no-multi-comp': 0,
        'react/jsx-wrap-multilines': [
            'error',
            {
                declaration: true,
                assignment: true,
                return: true,
                arrow: false,
            },
        ],
        'react/jsx-no-bind': [
            2,
            {
                ignoreRefs: false,
                allowArrowFunctions: false,
                allowBind: false,
            },
        ],
        'react/no-string-refs': 2,
        'react/no-direct-mutation-state': 2,
        'react/no-danger-with-children': 2,
        'react/jsx-pascal-case': [
            2,
            {
                allowAllCaps: true,
            },
        ],
        'react/jsx-key': 2,
        'react/prop-types': [
            'error',
            {
                ignore: ['children'],
                skipUndeclared: true,
            },
        ],
        'react/boolean-prop-naming': [
            'error',
            {
                rule: '^(is|has|should)[A-Z]([A-Za-z0-9]?)+',
            },
        ],
        'react/jsx-curly-spacing': [
            2,
            {
                when: 'never',
                spacing: {
                    objectLiterals: 'always',
                },
            },
        ],
        'react/require-default-props': 1,
        'react/jsx-equals-spacing': [2, 'never'],
        'react/jsx-no-target-blank': 2,
        'react/no-typos': 2,
        'react/no-unknown-property': [
            2,
            {
                ignore: [],
            },
        ],
        'react/no-array-index-key': 2,
        'react/jsx-uses-vars': 1,
        'react/react-in-jsx-scope': 2,
        'react/no-danger': 2,
        'react/no-did-update-set-state': 2,
        'react/no-did-mount-set-state': 2,
        'react/no-is-mounted': 2,
        'react/no-find-dom-node': 2,
        'react/display-name': 2,
        'react/no-set-state': 1,
        'react/require-render-return': 2,
        'react/sort-comp': [
            1,
            {
                order: ['static-methods', 'lifecycle', 'everything-else', 'render'],
                groups: {
                    lifecycle: [
                        'displayName',
                        'propTypes',
                        'defaultProps',
                        'contextTypes',
                        'childContextTypes',
                        'mixins',
                        'statics',
                        'defaultProps',
                        'constructor',
                        'getDefaultProps',
                        'getInitialState',
                        'state',
                        'getChildContext',
                        'componentWillMount',
                        'componentDidMount',
                        'componentWillReceiveProps',
                        'shouldComponentUpdate',
                        'componentWillUpdate',
                        'componentDidUpdate',
                        'componentWillUnmount',
                    ],
                },
            },
        ],
        'no-use-before-define': 'OFF',
        'import/no-duplicates': 'OFF',
        'no-duplicate-imports': 'OFF',
        'import/no-namespace': 'OFF',
    },
    globals: {
        styled: false,
        expect: true,
        test: true,
        before: true,
        beforeEach: true,
        after: true,
        afterEach: true,
        describe: true,
        it: true,
        context: true,
        jest: true,
        __webpack_require__: true,
        __DEV__: true,
        __LOCAL_PRODUCTION__: true,
        __PRODUCTION__: true,
        __TEST__: true,
        __PERF__: true,
        __DEBUG__: true,
        __SSR__: true,
        __COMPAT__: true,
        Null: true,
        Undefined: true,
        Any: true,
        Arguments: true,
        Iterator: true,
        AsyncFunction: true,
        GeneratorFunction: true,
        AsyncIterator: true,
        StringIterator: true,
        MapIterator: true,
        SetIterator: true,
        ArrayIterator: true,
        google: true,
    },
    env: {
        es6: true,
        node: true,
        browser: true,
        jest: true,
    },
};
//# sourceMappingURL=generated.js.map