1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- module.exports = {
- 'extends': [
- 'airbnb-base',
- 'plugin:promise/recommended'
- ],
- 'parserOptions': {
- 'ecmaVersion': 9,
- 'ecmaFeatures': {
- 'jsx': false
- },
- 'sourceType': 'module'
- },
- 'env': {
- 'es6': true,
- 'node': true,
- 'jest': true
- },
- 'plugins': [
- 'import',
- 'node',
- 'promise'
- ],
- 'rules': {
- 'arrow-parens': 'off',
- 'comma-dangle': [
- 'error',
- 'only-multiline'
- ],
- 'complexity': ['error', 20],
- 'func-names': 'off',
- 'global-require': 'off',
- 'handle-callback-err': [
- 'error',
- '^(err|error)$'
- ],
- 'import/no-unresolved': [
- 'error',
- {
- 'caseSensitive': true,
- 'commonjs': true,
- 'ignore': ['^[^.]']
- }
- ],
- 'import/prefer-default-export': 'off',
- 'linebreak-style': 'off',
- 'no-catch-shadow': 'error',
- 'no-continue': 'off',
- 'no-div-regex': 'warn',
- 'no-else-return': 'off',
- 'no-param-reassign': 'off',
- 'no-plusplus': 'off',
- 'no-shadow': 'off',
- 'no-multi-assign': 'off',
- 'no-underscore-dangle': 'off',
- 'node/no-deprecated-api': 'error',
- 'node/process-exit-as-throw': 'error',
- 'object-curly-spacing': [
- 'error',
- 'never'
- ],
- 'operator-linebreak': [
- 'error',
- 'after',
- {
- 'overrides': {
- ':': 'before',
- '?': 'before'
- }
- }
- ],
- 'prefer-arrow-callback': 'off',
- 'prefer-destructuring': 'off',
- 'prefer-template': 'off',
- 'quote-props': [
- 1,
- 'as-needed',
- {
- 'unnecessary': true
- }
- ],
- 'semi': [
- 'error',
- 'never'
- ],
- 'max-len': 'off',
- 'no-bitwise': 'off',
- 'no-mixed-operators': 'off',
- },
- 'globals': {
- 'window': true,
- 'document': true,
- 'App': true,
- 'Page': true,
- 'Component': true,
- 'Behavior': true
- }
- }
|