aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.cjs
blob: bf4517a988a1383fbacc920d7c61bbc8d966399c (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
30
31
module.exports = {
  root: true,
  extends: ['@hapi/eslint-config-hapi'],
  plugins: ['svelte3'],
  overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
  parser: 'babel-eslint',
  parserOptions: {
    sourceType: 'module',
    ecmaVersion: 2019
  },
  env: {
    browser: true,
    es2017: true,
    node: true
  },
  rules: {
    indent: [2, 2],
    'no-undef': 2,
    'require-yield': 0
  },
  globals: {
    jest: true,
    test: true,
    describe: true,
    expect: true,
    afterEach: true,
    afterAll: true,
    beforeEach: true,
    beforeAll: true
  }
};