2018-04-03 14:16:57 +00:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
parserOptions: {
|
2019-04-19 01:50:05 +00:00
|
|
|
ecmaVersion: 2018,
|
2018-04-03 14:16:57 +00:00
|
|
|
sourceType: 'module',
|
|
|
|
},
|
2018-10-30 20:53:17 +00:00
|
|
|
plugins: ['ember', 'prettier'],
|
|
|
|
extends: ['eslint:recommended', 'plugin:ember/recommended', 'prettier'],
|
2018-04-03 14:16:57 +00:00
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es6: true,
|
|
|
|
},
|
|
|
|
rules: {
|
2018-07-18 14:13:39 +00:00
|
|
|
'no-unused-vars': ['error', { ignoreRestSiblings: true }],
|
2018-10-30 20:53:17 +00:00
|
|
|
'prettier/prettier': 'error',
|
2018-04-03 14:16:57 +00:00
|
|
|
},
|
|
|
|
globals: {
|
|
|
|
TextEncoderLite: true,
|
|
|
|
TextDecoderLite: true,
|
2018-07-18 14:13:39 +00:00
|
|
|
},
|
2018-09-25 16:28:26 +00:00
|
|
|
overrides: [
|
|
|
|
// node files
|
|
|
|
{
|
|
|
|
files: [
|
|
|
|
'.template-lintrc.js',
|
|
|
|
'ember-cli-build.js',
|
|
|
|
'testem.js',
|
|
|
|
'blueprints/*/index.js',
|
|
|
|
'config/**/*.js',
|
|
|
|
'lib/*/index.js',
|
|
|
|
'scripts/start-vault.js',
|
|
|
|
],
|
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'script',
|
2019-04-19 01:50:05 +00:00
|
|
|
ecmaVersion: 2018,
|
2018-09-25 16:28:26 +00:00
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: false,
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2018-04-03 14:16:57 +00:00
|
|
|
};
|