2017-09-19 14:47:10 +00:00
|
|
|
module.exports = {
|
|
|
|
globals: {
|
|
|
|
server: true,
|
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es6: true,
|
|
|
|
},
|
|
|
|
extends: 'eslint:recommended',
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2017,
|
|
|
|
sourceType: 'module',
|
2018-07-24 02:06:15 +00:00
|
|
|
ecmaFeatures: {
|
|
|
|
experimentalObjectRestSpread: true,
|
|
|
|
},
|
2017-09-19 14:47:10 +00:00
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
indent: ['error', 2, { SwitchCase: 1 }],
|
|
|
|
'linebreak-style': ['error', 'unix'],
|
|
|
|
quotes: ['error', 'single', 'avoid-escape'],
|
|
|
|
semi: ['error', 'always'],
|
2017-11-15 21:55:30 +00:00
|
|
|
'no-constant-condition': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
checkLoops: false,
|
|
|
|
},
|
|
|
|
],
|
2017-09-19 14:47:10 +00:00
|
|
|
},
|
2019-03-12 23:42:47 +00:00
|
|
|
overrides: [
|
|
|
|
// node files
|
|
|
|
{
|
|
|
|
files: [
|
|
|
|
'ember-cli-build.js',
|
|
|
|
'testem.js',
|
|
|
|
'config/**/*.js',
|
|
|
|
'lib/*/index.js'
|
|
|
|
],
|
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'script',
|
|
|
|
ecmaVersion: 2015
|
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: false,
|
|
|
|
node: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2017-09-19 14:47:10 +00:00
|
|
|
};
|