summaryrefslogtreecommitdiff
path: root/index.js
blob: 82bcdf71f427908db14930db174269daa990370d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import babelParser from '@babel/eslint-parser';
import globals from 'globals';

export default {
  languageOptions: {
    globals: {
      ...globals.browser
    },
    parser: babelParser,
    parserOptions: {
      ecmaFeatures: {
        globalReturn: true,
        generators: false,
        objectLiteralDuplicateProperties: false,
        experimentalObjectRestSpread: true,
      },
      ecmaVersion: 2017,
      sourceType: 'module',
      requireConfigFile: false,
    },
  },

  rules: {
    'no-console': 0,
    quotes: ['error', 'single'],
    semi: ['warn', 'always'],
    'comma-dangle': 0,
  },
};