1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432 |
- module.exports = {
- root: true,
- parserOptions: {
- ecmaVersion: 10,
- sourceType: 'module',
-
- ecmaFeatures: {
- globalReturn: false,
- impliedStrict: false,
- jsx: true,
- experimentalObjectRestSpread: false
- },
-
- parser: 'babel-eslint'
- },
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- env: {
- browser: true,
- node: true,
- es6: true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- },
-
- globals: {
-
-
-
- uni: 'writable',
- UniApp: 'writable'
- },
-
-
- extends: [
- 'plugin:vue/recommended',
- 'eslint:recommended'
- ],
-
-
- rules: {
-
-
-
- 'vue/comment-directive': 'off',
- 'vue/jsx-uses-var': 'off',
-
- 'vue/multi-word-component-names': 'off',
- 'vue/no-arrow-functions-in-watch': 'error',
- 'vue/no-async-in-computed-properties': 'error',
- 'vue/no-child-content': 'error',
- 'vue/no-computed-properties-in-data': 'error',
- 'vue/no-dupe-keys': 'error',
- 'vue/no-dupe-v-else-if': 'error',
- 'vue/no-duplicate-attributes': ['error', {
- 'allowCoexistClass': true,
- 'allowCoexistStyle': true
- }],
- 'vue/no-export-in-script-setup': 'error',
- 'vue/no-mutating-props': 'error',
- 'vue/no-parsing-error': ['error', {
- 'abrupt-closing-of-empty-comment': true,
- 'absence-of-digits-in-numeric-character-reference': true,
- 'cdata-in-html-content': true,
- 'character-reference-outside-unicode-range': true,
- 'control-character-in-input-stream': true,
- 'control-character-reference': true,
- 'eof-before-tag-name': true,
- 'eof-in-cdata': true,
- 'eof-in-comment': true,
- 'eof-in-tag': true,
- 'incorrectly-closed-comment': true,
- 'incorrectly-opened-comment': true,
- 'invalid-first-character-of-tag-name': true,
- 'missing-attribute-value': true,
- 'missing-end-tag-name': true,
- 'missing-semicolon-after-character-reference': true,
- 'missing-whitespace-between-attributes': true,
- 'nested-comment': true,
- 'noncharacter-character-reference': true,
- 'noncharacter-in-input-stream': true,
- 'null-character-reference': true,
- 'surrogate-character-reference': true,
- 'surrogate-in-input-stream': true,
- 'unexpected-character-in-attribute-name': true,
- 'unexpected-character-in-unquoted-attribute-value': true,
- 'unexpected-equals-sign-before-attribute-name': true,
- 'unexpected-null-character': true,
- 'unexpected-question-mark-instead-of-tag-name': true,
- 'unexpected-solidus-in-tag': true,
- 'unknown-named-character-reference': true,
- 'end-tag-with-attributes': true,
- 'duplicate-attribute': true,
- 'end-tag-with-trailing-solidus': true,
- 'non-void-html-element-start-tag-with-trailing-solidus': false,
- 'x-invalid-end-tag': true,
- 'x-invalid-namespace': true
- }],
- 'vue/no-ref-as-operand': 'error',
- 'vue/no-reserved-component-names': 'error',
- 'vue/no-reserved-keys': 'error',
- 'vue/no-reserved-props': ['error', {
- 'vueVersion': 3
- }],
- 'vue/no-setup-props-destructure': 'error',
- 'vue/no-shared-component-data': 'error',
- 'vue/no-side-effects-in-computed-properties': 'warn',
- 'vue/no-template-key': 'error',
- 'vue/no-textarea-mustache': 'error',
- 'vue/no-unused-components': 'warn',
- 'vue/no-unused-vars': 'warn',
- 'vue/no-use-computed-property-like-method': 'off',
- 'vue/no-use-v-if-with-v-for': ['warn', {
- 'allowUsingIterationVar': false
- }],
- 'vue/no-v-text-v-html-on-component': 'off',
- 'vue/require-component-is': 'error',
- 'vue/require-prop-type-constructor': 'error',
- 'vue/require-render-return': 'error',
- 'vue/require-v-for-key': 'error',
- 'vue/require-valid-default-prop': 'error',
- 'vue/return-in-computed-property': ['error', {
- 'treatUndefinedAsUnspecified': true
- }],
- 'vue/return-in-emits-validator': 'error',
- 'vue/use-v-on-exact': 'error',
- 'vue/valid-attribute-name': 'error',
- 'vue/valid-define-emits': 'error',
- 'vue/valid-define-props': 'error',
- 'vue/valid-next-tick': 'error',
- 'vue/valid-template-root': 'error',
- 'vue/valid-v-bind': 'error',
- 'vue/valid-v-cloak': 'error',
- 'vue/valid-v-else-if': 'error',
- 'vue/valid-v-else': 'error',
- 'vue/valid-v-for': 'error',
- 'vue/valid-v-html': 'error',
- 'vue/valid-v-if': 'error',
- 'vue/valid-v-model': 'error',
- 'vue/valid-v-on': 'error',
- 'vue/valid-v-once': 'error',
- 'vue/valid-v-pre': 'error',
- 'vue/valid-v-show': 'error',
- 'vue/valid-v-slot': 'error',
- 'vue/valid-v-text': 'error',
-
- 'vue/no-deprecated-data-object-declaration': 'error',
- 'vue/no-deprecated-destroyed-lifecycle': 'off',
- 'vue/no-deprecated-dollar-listeners-api': 'error',
- 'vue/no-deprecated-dollar-scopedslots-api': 'error',
- 'vue/no-deprecated-events-api': 'error',
- 'vue/no-deprecated-filter': 'error',
- 'vue/no-deprecated-functional-template': 'error',
- 'vue/no-deprecated-html-element-is': 'error',
- 'vue/no-deprecated-inline-template': 'error',
- 'vue/no-deprecated-props-default-this': 'error',
- 'vue/no-deprecated-router-link-tag-prop': 'error',
- 'vue/no-deprecated-scope-attribute': 'error',
- 'vue/no-deprecated-slot-attribute': 'error',
- 'vue/no-deprecated-slot-scope-attribute': 'off',
- 'vue/no-deprecated-v-bind-sync': 'off',
- 'vue/no-deprecated-v-is': 'off',
- 'vue/no-deprecated-v-on-native-modifier': 'off',
- 'vue/no-deprecated-v-on-number-modifiers': 'off',
- 'vue/no-deprecated-vue-config-keycodes': 'error',
- 'vue/no-expose-after-await': 'error',
- 'vue/no-lifecycle-after-await': 'error',
- 'vue/no-v-for-template-key-on-child': 'off',
- 'vue/no-watch-after-await': 'error',
- 'vue/prefer-import-from-vue': 'error',
- 'vue/require-slots-as-functions': 'error',
- 'vue/require-toggle-inside-transition': 'error',
- 'vue/valid-v-is': 'error',
- 'vue/valid-v-memo': 'error',
-
- 'vue/no-custom-modifiers-on-v-model': 'error',
- 'vue/no-multiple-template-root': 'error',
- 'vue/no-v-for-template-key': 'error',
- 'vue/no-v-model-argument': 'off',
- 'vue/valid-model-definition': 'error',
- 'vue/valid-v-bind-sync': 'error',
-
- 'vue/attribute-hyphenation': ['error', 'always', {
- 'ignore': []
- }],
- 'vue/component-definition-name-casing': ['error', 'PascalCase'],
- 'vue/first-attribute-linebreak': ['error', {
- 'singleline': 'ignore',
- 'multiline': 'below'
- }],
- 'vue/html-closing-bracket-newline': ['error', {
- 'singleline': 'never',
- 'multiline': 'always'
- }],
- 'vue/html-closing-bracket-spacing': ['error', {
- 'startTag': 'never',
- 'endTag': 'never',
- 'selfClosingTag': 'always'
- }],
- 'vue/html-end-tags': 'error',
- 'vue/html-indent': ['error', 2, {
-
- 'attribute': 1,
- 'baseIndent': 1,
- 'closeBracket': 0,
- 'alignAttributesVertically': true,
- 'ignores': []
- }],
- 'vue/html-quotes': ['error', 'double', {
- 'avoidEscape': false
- }],
- 'vue/html-self-closing': ['error', {
- 'html': {
- 'void': 'any',
- 'normal': 'any',
- 'component': 'any'
- },
- 'svg': 'always',
- 'math': 'always'
- }],
- 'vue/max-attributes-per-line': [
- 'error',
- {
- singleline: {
- max: 8
- },
- multiline: {
- max: 4
- }
- }
- ],
- 'vue/multiline-html-element-content-newline': ['error', {
- 'ignoreWhenEmpty': true,
- 'ignores': ['pre', 'textarea'],
- 'allowEmptyLines': true
- }],
- 'vue/mustache-interpolation-spacing': ['error', 'always'],
- 'vue/no-multi-spaces': ['error', {
- 'ignoreProperties': false
- }],
- 'vue/no-spaces-around-equal-signs-in-attribute': 'error',
- 'vue/no-template-shadow': 'warn',
- 'vue/one-component-per-file': 'off',
- 'vue/prop-name-casing': ['error', 'camelCase'],
- 'vue/require-default-prop': 'off',
- 'vue/require-prop-types': 'error',
- 'vue/singleline-html-element-content-newline': 'off',
- 'vue/v-bind-style': ['error', 'shorthand'],
- 'vue/v-on-style': ['error', 'shorthand'],
- 'vue/v-slot-style': ['error', {
- 'atComponent': 'v-slot',
- 'default': 'shorthand',
- 'named': 'shorthand'
- }],
-
- 'vue/require-explicit-emits': ['error', {
- 'allowProps': false
- }],
- 'vue/v-on-event-hyphenation': ['warn', 'always', {
- 'autofix': false,
- 'ignore': []
- }],
-
- 'vue/attributes-order': ['error', {
- 'order': [
- 'DEFINITION',
- 'LIST_RENDERING',
- 'CONDITIONALS',
- 'RENDER_MODIFIERS',
- 'GLOBAL',
- ['UNIQUE', 'SLOT'],
- 'TWO_WAY_BINDING',
- 'OTHER_DIRECTIVES',
- 'OTHER_ATTR',
- 'EVENTS',
- 'CONTENT'
- ],
- 'alphabetical': false
- }],
- 'vue/component-tags-order': ['error', {
- 'order': [['script', 'template'], 'style']
- }],
- 'vue/no-lone-template': ['error', {
- 'ignoreAccessible': false
- }],
- 'vue/no-multiple-slot-args': 'error',
- 'vue/no-v-html': 'off',
- 'vue/order-in-components': ['error', {
- 'order': [
- 'el',
- 'name',
- 'key',
- 'parent',
- 'functional',
- ['delimiters', 'comments'],
- ['components', 'directives', 'filters'],
- 'extends',
- 'mixins',
- ['provide', 'inject'],
- 'ROUTER_GUARDS',
- 'layout',
- 'middleware',
- 'validate',
- 'scrollToTop',
- 'transition',
- 'loading',
- 'inheritAttrs',
- 'model',
- ['props', 'propsData'],
- 'emits',
- 'setup',
- 'asyncData',
- 'data',
- 'fetch',
- 'head',
- 'computed',
- 'watch',
- 'watchQuery',
- 'LIFECYCLE_HOOKS',
- 'methods',
- ['template', 'render'],
- 'renderError'
- ]
- }],
- 'vue/this-in-template': ['error', 'never'],
-
- 'vue/block-lang': ['error', {
- script: {
- lang: ['ts', 'js'],
- allowNoLang: true
- },
- style: {
- lang: ['less', 'sass', 'scss', 'css'],
- allowNoLang: true
- }
- }],
- 'vue/block-tag-newline': ['error', {
- 'singleline': 'consistent',
- 'multiline': 'consistent',
- 'maxEmptyLines': 1
- }],
- 'vue/component-api-style': ['error',
- ['script-setup', 'composition', 'composition-vue2', 'options']],
- 'vue/component-name-in-template-casing': ['error', 'PascalCase', {
- 'registeredComponentsOnly': true,
- 'ignores': []
- }],
- 'vue/component-options-name-casing': ['error', 'PascalCase'],
- 'vue/custom-event-name-casing': ['error', 'kebab-case', {
- 'ignores': []
- }],
- 'vue/define-emits-declaration': ['error', 'type-based'],
- 'vue/define-macros-order': ['error', {
- 'order': ['defineProps', 'defineEmits']
- }],
- 'vue/define-props-declaration': ['error', 'type-based'],
- 'vue/html-button-has-type': ['error', {
- 'button': true,
- 'submit': true,
- 'reset': true
- }],
- 'vue/html-comment-content-newline': ['error', {
- 'singleline': 'never',
- 'multiline': 'never'
- }, {
- 'exceptions': []
- }],
- 'vue/html-comment-content-spacing': ['error', 'always', {
- 'exceptions': []
- }],
- 'vue/html-comment-indent': ['error', 2],
- 'vue/match-component-file-name': ['error', {
- 'extensions': ['jsx', 'vue'],
- 'shouldMatchCase': false
- }],
- 'vue/match-component-import-name': 'warn',
- 'vue/new-line-between-multi-line-property': 'off',
- 'vue/next-tick-style': ['warn', 'callback'],
- 'vue/no-bare-strings-in-template': 'off',
- 'vue/no-boolean-default': 'off',
- 'vue/no-duplicate-attr-inheritance': 'error',
- 'vue/no-empty-component-block': 'off',
- 'vue/no-multiple-objects-in-class': 'error',
- 'vue/no-potential-component-option-typo': ['error', {
- 'presets': [ 'all' ],
- 'custom': [],
- 'threshold': 1
- }],
- 'vue/no-ref-object-destructure': 'warn',
- 'vue/no-required-prop-with-default': ['error', {
- 'autofix': true
- }],
- 'vue/no-restricted-block': 'off',
- 'vue/no-restricted-call-after-await': 'off',
- 'vue/no-restricted-class': 'off',
- 'vue/no-restricted-component-options': 'off',
- 'vue/no-restricted-custom-event': 'off',
- 'vue/no-restricted-html-elements': 'off',
- 'vue/no-restricted-props': 'off',
- 'vue/no-restricted-static-attribute': 'off',
- 'vue/no-restricted-v-bind': 'off',
- 'vue/no-static-inline-styles': 'off',
- 'vue/no-template-target-blank': ['error', {
- 'allowReferrer': true,
- 'enforceDynamicLinks': 'always'
- }],
- 'vue/no-this-in-before-route-enter': 'error',
- 'vue/no-undef-components': 'off',
- 'vue/no-undef-properties': ['warn', {
- 'ignores': [ '/^\\$/' ]
- }],
- 'vue/no-unsupported-features': 'off',
- 'vue/no-unused-properties': 'off',
- 'vue/no-unused-refs': 'off',
- 'vue/no-useless-mustaches': ['error', {
- 'ignoreIncludesComment': true,
- 'ignoreStringEscape': true
- }],
- 'vue/no-useless-v-bind': ['error', {
- 'ignoreIncludesComment': true,
- 'ignoreStringEscape': true
- }],
- 'vue/no-v-text': 'off',
- 'vue/padding-line-between-blocks': ['error', 'always'],
- 'vue/padding-line-between-tags': 'off',
- 'vue/prefer-prop-type-boolean-first': 'error',
- 'vue/prefer-separate-static-class': 'error',
- 'vue/prefer-true-attribute-shorthand': ['error', 'always'],
- 'vue/require-direct-export': 'error',
- 'vue/require-emit-validator': 'off',
- 'vue/require-expose': 'off',
- 'vue/require-name-property': 'error',
- 'vue/require-prop-comment': 'off',
- 'vue/script-indent': ['error', 2, {
- 'baseIndent': 0,
- 'switchCase': 1,
- 'ignores': []
- }],
- 'vue/sort-keys': 'off',
- 'vue/static-class-names-order': 'off',
- 'vue/v-for-delimiter-style': ['error', 'in'],
- 'vue/v-on-handler-style': ['warn', 'inline', {
- 'ignoreIncludesComment': false
- }],
-
- 'vue/array-bracket-newline': [2, 'consistent'],
- 'vue/array-bracket-spacing': [
- 2,
- 'never',
- {
- singleValue: true,
- objectsInArrays: false,
- arraysInArrays: false
- }
- ],
- 'vue/arrow-spacing': [
- 2,
- {
- before: true,
- after: true
- }
- ],
- 'vue/block-spacing': [2, 'always'],
- 'vue/brace-style': [
- 2,
- '1tbs',
- {
- allowSingleLine: true
- }
- ],
- 'vue/camelcase': 0,
- 'vue/comma-dangle': [2, 'never'],
- 'vue/comma-spacing': [
- 2,
- {
- before: false,
- after: true
- }
- ],
- 'vue/comma-style': [2, 'last'],
- 'vue/dot-location': [2, 'property'],
- 'vue/dot-notation': [
- 2,
- {
- allowKeywords: true
- }
- ],
- 'vue/eqeqeq': [2, 'always'],
- 'vue/func-call-spacing': 2,
- 'vue/key-spacing': [
- 2,
- {
- beforeColon: false,
- afterColon: true
- }
- ],
- 'vue/keyword-spacing': [
-
- 2,
- {
- before: true,
- after: true
- }
- ],
- 'vue/max-len': [
- 2,
- {
- code: 180,
- tabWidth: 2,
- comments: 180,
- ignoreComments: true,
- ignoreTrailingComments: false,
- ignoreUrls: false,
- ignoreStrings: false,
- ignoreTemplateLiterals: false,
- ignoreRegExpLiterals: false,
- ignoreHTMLAttributeValues: false,
- ignoreHTMLTextContents: false
- }
- ],
- 'vue/multiline-ternary': [2, 'always-multiline'],
- 'vue/no-constant-condition': 2,
- 'vue/no-empty-pattern': 2,
- 'vue/no-extra-parens': [
- 2,
- 'all',
- {
- conditionalAssign: false,
- returnAssign: false,
- nestedBinaryExpressions: false,
- ignoreJSX: 'all',
- enforceForArrowConditionals: false
- }
- ],
- 'vue/no-irregular-whitespace': 2,
-
- 'vue/no-restricted-syntax': 0,
- 'vue/no-sparse-arrays': 2,
- 'vue/no-useless-concat': 2,
- 'vue/object-curly-newline': [
- 2,
- {
- consistent: true
- }
- ],
- 'vue/object-curly-spacing': [
- 2,
- 'always',
- {
- arraysInObjects: true,
- objectsInObjects: true
- }
- ],
- 'vue/object-property-newline': [
- 2,
- {
- 'allowAllPropertiesOnSameLine': true
- }
- ],
- 'vue/object-shorthand': [2, 'always'],
- 'vue/operator-linebreak': [
- 2,
- 'after',
- {
- overrides: {
- '?': 'before',
- ':': 'before'
- }
- }
- ],
- 'vue/prefer-template': 0,
- 'vue/quote-props': [2, 'consistent'],
- 'vue/space-in-parens': [2, 'never'],
- 'vue/space-infix-ops': 2,
- 'vue/space-unary-ops': 2,
- 'vue/template-curly-spacing': [2, 'never'],
-
-
-
-
-
-
- 'for-direction': 2,
- 'getter-return': 2,
- 'no-async-promise-executor': 0,
- 'no-await-in-loop': 0,
- 'no-compare-neg-zero': 2,
- 'no-cond-assign': 2,
- 'no-console': 1,
- 'no-constant-condition': 2,
- 'no-control-regex': 2,
- 'no-debugger': 1,
- 'no-dupe-args': 2,
- 'no-dupe-keys': 2,
- 'no-duplicate-case': 2,
- 'no-empty': 1,
- 'no-empty-character-class': 2,
- 'no-ex-assign': 2,
- 'no-extra-boolean-cast': 2,
- 'no-extra-parens': [
-
- 2,
- 'all',
- {
- conditionalAssign: false,
- returnAssign: false,
- nestedBinaryExpressions: false,
- ignoreJSX: 'all',
- enforceForArrowConditionals: false
- }
- ],
- 'no-extra-semi': 2,
- 'no-func-assign': 2,
- 'no-inner-declarations': 1,
- 'no-invalid-regexp': 2,
- 'no-irregular-whitespace': 2,
- 'no-misleading-character-class': 2,
- 'no-obj-calls': 1,
- 'no-prototype-builtins': 1,
- 'no-regex-spaces': 2,
- 'no-sparse-arrays': 2,
- 'no-template-curly-in-string': 0,
- 'no-unexpected-multiline': 2,
- 'no-unreachable': 2,
- 'no-unsafe-finally': 2,
- 'no-unsafe-negation': 2,
- 'require-atomic-updates': 2,
- 'use-isnan': 2,
- 'valid-typeof': 2,
-
- 'accessor-pairs': 0,
- 'array-callback-return': 2,
- 'block-scoped-var': 0,
- 'class-methods-use-this': 0,
- 'complexity': [2,
- 11],
- 'consistent-return': 0,
- 'curly': [2,
- 'multi-line'],
- 'default-case': 0,
- 'dot-location': [2, 'property'],
- 'dot-notation': [
- 2,
- {
- allowKeywords: true
- }
- ],
- 'eqeqeq': [2,
- 'always'],
- 'guard-for-in': 0,
- 'max-classes-per-file': [2, 11],
- 'no-alert': 1,
- 'no-caller': 2,
- 'no-case-declarations': 2,
- 'eslint no-div-regex': 0,
- 'no-else-return': 2,
- 'no-empty-function': 1,
- 'no-empty-pattern': 2,
- 'no-eq-null': 2,
- 'no-eval': 2,
- 'no-extend-native': 2,
- 'no-extra-bind': 2,
- 'no-extra-label': 2,
- 'no-fallthrough': 2,
- 'no-floating-decimal': 2,
- 'no-global-assign': 2,
- 'no-implicit-coercion': 0,
- 'no-implicit-globals': 1,
- 'no-implied-eval': 2,
- 'no-invalid-this': 2,
- 'no-iterator': 0,
- 'no-labels': [
-
- 2,
- {
- allowLoop: false,
- allowSwitch: true
- }
- ],
- 'no-lone-blocks': 2,
- 'no-loop-func': 0,
- 'no-magic-numbers': 0,
- 'no-multi-spaces': [
- 2,
- {
- ignoreEOLComments: true
- }
- ],
- 'no-multi-str': 2,
- 'no-new': 0,
- 'no-new-func': 2,
- 'no-new-wrappers': 2,
- 'no-octal': 2,
- 'no-octal-escape': 0,
- 'no-param-reassign': 1,
- 'no-proto': 2,
- 'no-redeclare': 2,
- 'no-restricted-properties': 0,
- 'no-return-assign': [2,
- 'except-parens'],
- 'no-return-await': 0,
- 'no-script-url': 0,
- 'no-self-assign': 2,
- 'no-self-compare': 2,
- 'no-sequences': 2,
- 'no-throw-literal': 2,
- 'no-unmodified-loop-condition': 0,
- 'no-unused-expressions': 0,
- 'no-unused-labels': 2,
- 'no-useless-call': 0,
- 'no-useless-catch': 2,
- 'no-useless-concat': 2,
- 'no-useless-escape': 2,
- 'no-useless-return': 2,
- 'no-void': 2,
- 'no-warning-comments': 0,
- 'no-with': 2,
- 'prefer-named-capture-group': 0,
- 'prefer-promise-reject-errors': 0,
- 'radix': 1,
- 'require-await': 2,
- 'require-unicode-regexp': 0,
- 'vars-on-top': 0,
- 'wrap-iife': [2,
- 'any'],
- 'yoda': [2, 'never'],
-
- 'strict': [2, 'never'],
-
- 'init-declarations': 0,
- 'no-delete-var': 1,
- 'no-label-var': 1,
- 'no-restricted-globals': 0,
- 'no-shadow': 0,
- 'no-shadow-restricted-names': 2,
- 'no-undef': 2,
- 'no-undef-init': 2,
- 'no-undefined': 2,
- 'no-unused-vars': [
-
- 1,
-
- {
- vars: 'all',
- args: 'none'
- }
- ],
- 'no-use-before-define': 2,
-
- 'callback-return': 0,
- 'global-require': 0,
- 'handle-callback-err': [1,
- '^.*(e|E)rr'],
- 'no-buffer-constructor': 2,
- 'no-mixed-requires': 0,
- 'no-new-require': 2,
- 'no-path-concat': 0,
- 'no-process-env': 0,
- 'no-process-exit': 0,
- 'no-restricted-modules': 0,
- 'no-sync': 0,
-
- 'array-bracket-newline': [2,
- 'consistent'],
- 'array-bracket-spacing': [
-
- 2,
- 'never',
- {
- singleValue: true,
- objectsInArrays: false,
- arraysInArrays: false
- }
- ],
- 'array-element-newline': [2,
- 'consistent'],
- 'block-spacing': [2, 'always'],
- 'brace-style': [
-
- 2,
- '1tbs',
- {
- allowSingleLine: true
- }
- ],
- 'camelcase': 0,
- 'capitalized-comments': 0,
- 'comma-dangle': [2,
- 'never'],
- 'comma-spacing': [
-
- 2,
- {
- before: false,
- after: true
- }
- ],
- 'comma-style': [2,
- 'last'],
- 'computed-property-spacing': [2, 'never'],
- 'consistent-this': 0,
- 'eol-last': 2,
- 'func-call-spacing': 2,
- 'func-name-matching': 0,
- 'func-names': 0,
- 'func-style': 0,
- 'function-paren-newline': [2,
- 'multiline'],
- 'id-blacklist': 0,
- 'id-length': [
- 2,
- {
- min: 1,
- max: 36
- }
- ],
- 'id-match': 0,
- 'implicit-arrow-linebreak': [2,
- 'beside'],
- 'indent': [
-
- 2,
- 2,
- {
- SwitchCase: 1
- }
- ],
- 'jsx-quotes': [2, 'prefer-double'],
- 'key-spacing': [
-
- 2,
- {
-
- beforeColon: false,
- afterColon: true
- }
- ],
- 'keyword-spacing': [
-
- 2,
- {
- before: true,
- after: true
- }
- ],
- 'line-comment-position': 0,
- 'linebreak-style': [0, 'windows'],
- 'lines-around-comment': [
-
- 2,
- {
- beforeBlockComment: true,
- afterBlockComment: true,
- beforeLineComment: false,
- afterLineComment: false,
- allowBlockStart: true,
- allowBlockEnd: true,
- allowObjectStart: true,
- allowObjectEnd: true,
- allowArrayStart: true,
- allowArrayEnd: true,
- allowClassStart: true,
- allowClassEnd: true
- }
- ],
- 'lines-between-class-members': [
- 2,
- 'always',
- {
- exceptAfterSingleLine: false
- }
- ],
- 'max-depth': [2, 5],
- 'max-len': [
-
- 2,
- {
- code: 180,
- tabWidth: 2,
- comments: 180,
- ignoreComments: true,
- ignoreTrailingComments: false,
- ignoreUrls: false,
- ignoreStrings: false,
- ignoreTemplateLiterals: false,
- ignoreRegExpLiterals: false
- }
- ],
- 'max-lines': [
- 2,
- {
- max: 999,
- skipBlankLines: true,
- skipComments: true
- }
- ],
- 'max-lines-per-function': [
- 2,
- {
- max: 280,
- skipBlankLines: true,
- skipComments: true,
- IIFEs: true
- }
- ],
- 'max-nested-callbacks': [2, 5],
- 'max-params': [2, 6],
- 'max-statements': [2,
- 250],
- 'max-statements-per-line': [
- 2,
- {
- max: 3
- }
- ],
- 'multiline-comment-style': 0,
- 'multiline-ternary': [2,
- 'always-multiline'],
- 'new-cap': [
-
- 2,
- {
- newIsCap: true,
- capIsNew: false
- }
- ],
- 'new-parens': [2,
- 'always'],
- 'newline-per-chained-call': [
- 2,
- {
- ignoreChainWithDepth: 2
- }
- ],
- 'no-array-constructor': 0,
- 'no-bitwise': 2,
- 'no-continue': 0,
- 'no-inline-comments': 0,
- 'no-lonely-if': 2,
- 'no-mixed-operators': 0,
- 'no-mixed-spaces-and-tabs': 2,
- 'no-multi-assign': 0,
- 'no-multiple-empty-lines': [
- 2,
- {
- max: 1,
- maxEOF: 1,
- maxBOF: 0
- }
- ],
- 'no-negated-condition': 0,
- 'no-nested-ternary': 0,
- 'no-new-object': 0,
- 'no-plusplus': 0,
- 'no-restricted-syntax': 0,
- 'no-tabs': 0,
- 'no-ternary': 0,
- 'no-trailing-spaces': 2,
- 'no-underscore-dangle': 0,
- 'no-unneeded-ternary': [
- 2,
- {
- defaultAssignment: false
- }
- ],
- 'no-whitespace-before-property': 2,
- 'nonblock-statement-body-position': [2,
- 'beside'],
- 'object-curly-newline': [
- 2,
- {
- consistent: true
- }
- ],
- 'object-curly-spacing': [
-
- 2,
- 'always',
- {
- arraysInObjects: true,
- objectsInObjects: true
- }
- ],
- 'object-property-newline': [
- 2,
- {
- 'allowAllPropertiesOnSameLine': true
- }
- ],
- 'one-var': [
- 2,
- {
- initialized: 'never'
- }
- ],
- 'one-var-declaration-per-line': 2,
- 'operator-assignment': [0,
- 'always'],
- 'operator-linebreak': [
- 2,
- 'after',
- {
- overrides: {
- '?': 'before',
- ':': 'before'
- }
- }
- ],
- 'padded-blocks': [2,
- 'never'],
- 'padding-line-between-statements': 0,
- 'prefer-object-spread': 0,
- 'quote-props': [2,
- 'consistent'],
- 'quotes': [
- 2,
- 'single',
- {
- avoidEscape: true,
- allowTemplateLiterals: true
- }
- ],
- 'semi': [
- 2,
- 'never',
- {
- beforeStatementContinuationChars: 'always'
- }
- ],
- 'semi-spacing': [
- 2,
- {
- before: false,
- after: true
- }
- ],
- 'semi-style': [2, 'last'],
- 'sort-keys': 0,
- 'sort-vars': 0,
- 'space-before-blocks': [2, 'always'],
- 'space-before-function-paren': [
-
- 2,
- {
- anonymous: 'always',
- named: 'never',
- asyncArrow: 'always'
- }
- ],
- 'space-in-parens': [2, 'never'],
- 'space-infix-ops': 2,
- 'space-unary-ops': 2,
- 'spaced-comment': [
-
- 2,
- 'always',
- {
- markers: [
- 'global',
- 'globals',
- 'eslint',
- 'eslint-disable',
- '*package',
- '!',
- ',',
- '/',
- '*'
- ]
- }
- ],
- 'switch-colon-spacing': [
- 2,
- {
- after: true,
- before: false
- }
- ],
- 'template-tag-spacing': [2, 'never'],
- 'unicode-bom': [2, 'never'],
- 'wrap-regex': 0,
-
- 'arrow-body-style': [2,
- 'as-needed'],
- 'arrow-parens': [2, 'always'],
- 'arrow-spacing': [
- 2,
- {
- before: true,
- after: true
- }
- ],
- 'constructor-super': 2,
- 'generator-star-spacing': [
- 2,
- {
- before: true,
- after: true
- }
- ],
- 'no-class-assign': 2,
- 'no-confusing-arrow': 0,
- 'no-const-assign': 2,
- 'no-dupe-class-members': 2,
- 'no-duplicate-imports': 2,
- 'no-new-symbol': 2,
- 'no-restricted-imports': 0,
- 'no-this-before-super': 2,
- 'no-useless-computed-key': 2,
- 'no-useless-constructor': 2,
- 'no-useless-rename': 2,
- 'no-var': 0,
- 'object-shorthand': [2,
- 'always'],
- 'prefer-arrow-callback': 0,
- 'prefer-const': 2,
- 'prefer-destructuring': 0,
- 'prefer-numeric-literals': 1,
- 'prefer-rest-params': 0,
- 'prefer-spread': 0,
- 'prefer-template': 0,
- 'require-yield': 2,
- 'rest-spread-spacing': [2, 'never'],
- 'sort-imports': 0,
- 'symbol-description': 0,
- 'template-curly-spacing': [2, 'never'],
- 'yield-star-spacing': [
- 2,
- {
- before: true,
- after: true
- }
- ]
-
-
-
-
- }
- }
|