2017-09-19 14:47:10 +00:00
|
|
|
module.exports = {
|
|
|
|
globals: {
|
|
|
|
server: true,
|
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es6: true,
|
|
|
|
},
|
|
|
|
extends: 'eslint:recommended',
|
|
|
|
parserOptions: {
|
2019-04-02 22:59:16 +00:00
|
|
|
ecmaVersion: 2018,
|
2017-09-19 14:47:10 +00:00
|
|
|
sourceType: 'module',
|
|
|
|
},
|
|
|
|
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: [
|
2019-03-13 00:40:39 +00:00
|
|
|
'.eslintrc.js',
|
2019-03-15 20:26:18 +00:00
|
|
|
'.template-lintrc.js',
|
2019-03-12 23:42:47 +00:00
|
|
|
'ember-cli-build.js',
|
|
|
|
'testem.js',
|
2019-03-15 20:26:18 +00:00
|
|
|
'blueprints/*/index.js',
|
2019-03-12 23:42:47 +00:00
|
|
|
'config/**/*.js',
|
2019-03-13 00:40:39 +00:00
|
|
|
'lib/*/index.js',
|
2019-03-12 23:42:47 +00:00
|
|
|
],
|
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'script',
|
2019-03-13 00:40:39 +00:00
|
|
|
ecmaVersion: 2015,
|
2019-03-12 23:42:47 +00:00
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: false,
|
2019-03-13 00:40:39 +00:00
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2017-09-19 14:47:10 +00:00
|
|
|
};
|