Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/eslint.config.mjs
blob: 4604545278b5b04d12eda90d61939f49b25dde0d (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 globals from 'globals'
import neostandard from 'neostandard'

export default [
  ...neostandard(), {

    languageOptions: {
      ecmaVersion: 2018,
      globals: {
        ...globals.browser,
        ...globals.commonjs,
        ...globals.jquery,
        Atomics: 'readonly',
        Plotly: true,
        SharedArrayBuffer: 'readonly',
        bootstrap: true,
        d3: true,
        moment: true,
        __dirname: true
      }
    },

    rules: {
      '@stylistic/space-before-function-paren': ['error', {anonymous: 'always', named: 'never', asyncArrow: 'always'}],
      '@stylistic/object-curly-spacing': ['error', 'never'],
    }

  }
]