forked from tracespace/tracespace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
35 lines (33 loc) · 788 Bytes
/
.eslintrc.js
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
32
33
34
35
'use strict'
// HACK: overriding parserOptions doesn't seem to do anything because
// eslint-config-standard specifies it; delete it as a workaround
const standard = require('eslint-config-standard')
delete standard.parserOptions
module.exports = {
parserOptions: {ecmaVersion: 5},
env: {es6: false},
extends: [
'standard',
'prettier',
'prettier/standard',
'plugin:prettier/recommended',
],
overrides: [
{
files: [
'.*.js',
'packages/cli/**/*.js',
'packages/fixtures/**/*.js',
'**/integration/**/*.js',
'**/example/**/*.js',
'**/scripts/**/*.js',
],
parserOptions: {ecmaVersion: 6},
env: {es6: true},
},
{
files: ['**/*test.js'],
env: {mocha: true},
},
],
}