| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- ---
- extends:
- - 'eslint:recommended'
- parser: 'babel-eslint'
- parserOptions:
- ecmaVersion: 6
- sourceType: module
- ecmaFeatures:
- jsx: true
- experimentalObjectRestSpread: true
- env:
- browser: true
- node: true
- es6: true
- plugins:
- - react
- rules:
- # best practices section
- array-callback-return: error
- block-scoped-var: error
- consistent-return: error
- curly: [ error, 'multi-line' ]
- default-case: error
- dot-location:
- - error
- - property
- dot-notation: error
- eqeqeq: error
- no-alert: error
- no-div-regex: error
- no-else-return: error
- no-empty-function: error
- no-eq-null: error
- no-eval: error
- no-extend-native: error
- no-extra-bind: error
- no-extra-label: error
- no-floating-decimal: error
- no-global-assign: error
- no-implicit-coercion: error
- no-implicit-globals: error
- no-implied-eval: error
- no-iterator: error
- no-labels: error
- no-lone-blocks: error
- no-loop-func: error
- # no-multi-spaces: error
- no-multi-str: error
- no-new-func: error
- no-new-wrappers: error
- no-new: error
- no-octal-escape: error
- no-param-reassign: error
- no-proto: error
- no-return-assign: error
- no-script-url: error
- no-self-compare: error
- no-sequences: error
- no-throw-literal: error
- no-unmodified-loop-condition: error
- no-unused-expressions: error
- no-useless-call: error
- no-useless-concat: error
- no-useless-escape: error
- no-void: error
- no-with: error
- vars-on-top: error
- wrap-iife: error
- yoda: error
- # Variables section
- no-label-var: error
- no-shadow-restricted-names: error
- no-shadow: error
- no-undef-init: error
- # no-undefined: error
- no-use-before-define: error
- # Stylistic Issues section
- # array-bracket-spacing:
- # - error
- # - always
- block-spacing: error
- brace-style: error
- camelcase:
- - error
- - properties: never
- comma-dangle: error
- comma-spacing: error
- comma-style: error
- computed-property-spacing: error
- consistent-this: error
- eol-last: error
- func-call-spacing: error
- func-names: warn
- func-style:
- - warn
- - expression
- indent:
- - error
- - 2
- - SwitchCase: 1
- key-spacing: error
- keyword-spacing: error
- linebreak-style: error
- lines-around-comment: warn
- max-depth: warn
- max-lines: ["warn", {
- "max": 500,
- "skipComments": true
- }]
- max-len:
- - warn
- - 180
- max-nested-callbacks: warn
- # max-params: warn
- max-params: ["warn", 5]
- max-statements-per-line: warn
- max-statements:
- - warn
- - 50
- new-cap: warn
- new-parens: error
- # newline-after-var: warn
- no-array-constructor: error
- no-bitwise: error
- no-lonely-if: warn
- no-multiple-empty-lines: warn
- no-nested-ternary: error
- no-new-object: error
- no-plusplus: error
- no-tabs: error
- no-trailing-spaces: error
- # no-underscore-dangle: warn
- no-unneeded-ternary: warn
- no-whitespace-before-property: error
- object-curly-newline: error
- object-curly-spacing:
- - error
- - always
- one-var:
- - error
- - never
- operator-assignment: error
- operator-linebreak: error
- quote-props:
- - error
- - as-needed
- quotes:
- - error
- - single
- - avoid-escape
- semi-spacing: error
- semi: error
- space-before-blocks: error
- space-before-function-paren: error
- space-in-parens: error
- space-infix-ops: error
- space-unary-ops: error
- spaced-comment: warn
- unicode-bom: error
- wrap-regex: error
- # ECMAScript 6 / ES2015 Section
- arrow-body-style: error
- # arrow-parens: error
- arrow-spacing: error
- generator-star-spacing: warn
- # no-confusing-arrow: warn
- no-duplicate-imports: error
- no-useless-computed-key: warn
- no-useless-constructor: warn
- no-useless-rename: error
- no-var: error
- object-shorthand: error
- prefer-arrow-callback: warn
- # prefer-const: error
- # prefer-reflect: warn
- prefer-rest-params: warn
- prefer-spread: warn
- prefer-template: error
- rest-spread-spacing: error
- template-curly-spacing: error
- yield-star-spacing: error
- # JSX RULES
- # jsx-quotes:
- # - error
- # - prefer-single
- react/jsx-boolean-value: error
- # react/jsx-curly-spacing:
- # - error
- # - never
- react/jsx-equals-spacing:
- - error
- - never
- react/jsx-indent:
- - error
- - 2
- react/jsx-indent-props:
- - error
- - 2
- react/jsx-no-duplicate-props: error
- react/jsx-no-undef: error
- react/jsx-tag-spacing: error
- react/jsx-uses-react: error
- react/jsx-uses-vars: error
- # react/self-closing-comp: error
|