UNPKG

@dailymotion/vmap

Version:
97 lines (96 loc) 2.91 kB
module.exports = { env: { browser: true, es6: true, node: true, jasmine: true, }, parser: '@babel/eslint-parser', parserOptions: { sourceType: 'module', }, globals: { readFixtures: false, }, plugins: ['import', 'no-for-of-loops'], settings: { 'import/extensions': ['.js'], }, root: true, rules: { 'func-style': ['error', 'declaration', { allowArrowFunctions: true }], 'import/named': ['error'], 'import/no-unresolved': ['error'], 'import/newline-after-import': ['warn'], 'linebreak-style': ['warn', 'unix'], 'eol-last': ['warn', 'always'], 'no-console': ['error'], 'no-else-return': ['warn'], 'no-for-of-loops/no-for-of-loops': ['error'], 'no-multi-spaces': [ 'warn', { exceptions: { VariableDeclarator: true, ImportDeclaration: true }, }, ], 'no-trailing-spaces': ['warn'], 'no-var': ['warn'], 'no-undef': ['error'], 'no-unused-vars': [ 'error', { argsIgnorePattern: '^_', ignoreRestSiblings: true, args: 'after-used' }, ], 'object-shorthand': ['warn'], 'prefer-template': ['warn'], 'prefer-const': ['warn'], 'prefer-rest-params': ['error'], 'prefer-spread': ['warn'], 'space-before-function-paren': ['warn', 'never'], 'no-debugger': ['error'], 'no-shadow': ['error'], 'getter-return': ['error'], 'no-extra-semi': ['warn'], 'no-unreachable': ['error'], 'valid-typeof': ['error'], eqeqeq: ['error'], 'no-alert': ['error'], 'no-self-assign': ['error'], 'no-self-compare': ['error'], 'no-useless-return': ['warn'], 'no-const-assign': ['error'], 'no-duplicate-imports': ['error'], 'no-multiple-empty-lines': ['warn'], 'no-restricted-globals': ['error', 'fdescribe', 'fit', 'xdescribe', 'xit'], 'no-constant-condition': ['error'], 'no-func-assign': ['error'], 'no-unexpected-multiline': ['error'], 'no-unsafe-finally': ['error'], 'no-unsafe-negation': ['error'], 'no-dupe-args': ['error'], 'no-dupe-keys': ['error'], 'no-duplicate-case': ['error'], 'no-ex-assign': ['error'], 'no-cond-assign': ['error'], 'no-compare-neg-zero': ['error'], 'no-control-regex': ['error'], 'no-invalid-regexp': ['error'], 'no-obj-calls': ['error'], 'no-sparse-arrays': ['error'], 'no-global-assign': ['error'], 'no-new-func': ['error'], 'no-new-wrappers': ['error'], 'no-param-reassign': ['error', { props: true }], 'no-proto': ['error'], 'no-redeclare': ['error'], 'no-return-assign': ['error'], 'no-octal': ['error'], 'no-sequences': ['error'], 'no-unmodified-loop-condition': ['error'], 'no-unused-expressions': ['error'], 'no-unused-labels': ['error'], 'no-useless-call': ['error'], 'no-useless-escape': ['error'], 'no-void': ['error'], 'no-with': ['error'], }, };