2017-03-24 18:44:22 -07:00
|
|
|
module.exports = {
|
2018-01-20 00:46:47 -08:00
|
|
|
root: true,
|
2017-08-15 23:16:38 -07:00
|
|
|
globals: {
|
|
|
|
server: true,
|
2017-09-20 14:25:27 -07:00
|
|
|
define: true,
|
2017-08-15 23:16:38 -07:00
|
|
|
},
|
2017-08-27 04:22:07 -07:00
|
|
|
"extends": [
|
2018-01-20 00:46:47 -08:00
|
|
|
"prettier",
|
|
|
|
'plugin:ember/recommended'
|
2017-08-27 04:22:07 -07:00
|
|
|
],
|
2017-10-17 17:46:32 -07:00
|
|
|
"parser": "babel-eslint",
|
2018-01-20 00:46:47 -08:00
|
|
|
parserOptions: {
|
|
|
|
"ecmaVersion": 2017,
|
2017-08-04 17:29:34 -07:00
|
|
|
"sourceType": "module",
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"experimentalObjectRestSpread": true
|
|
|
|
}
|
2017-03-24 18:44:22 -07:00
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
2018-01-20 00:46:47 -08:00
|
|
|
"node": true
|
2017-03-24 18:44:22 -07:00
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"no-implicit-globals": [
|
|
|
|
1
|
2017-08-27 04:22:07 -07:00
|
|
|
],
|
|
|
|
"prettier/prettier": ["error", { "singleQuote": true, "printWidth": 120 }]
|
|
|
|
},
|
|
|
|
"plugins": [
|
2018-01-20 00:46:47 -08:00
|
|
|
"prettier",
|
|
|
|
'ember'
|
|
|
|
],
|
|
|
|
overrides: [
|
|
|
|
// node files
|
|
|
|
{
|
|
|
|
files: [
|
|
|
|
'testem.js',
|
|
|
|
'ember-cli-build.js',
|
|
|
|
'config/**/*.js'
|
|
|
|
],
|
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'script',
|
|
|
|
ecmaVersion: 2015
|
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: false,
|
|
|
|
node: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
// test files
|
|
|
|
{
|
|
|
|
files: ['tests/**/*.js'],
|
|
|
|
excludedFiles: ['tests/dummy/**/*.js'],
|
|
|
|
env: {
|
|
|
|
embertest: true
|
|
|
|
}
|
|
|
|
}
|
2017-08-27 04:22:07 -07:00
|
|
|
]
|
2017-03-24 18:44:22 -07:00
|
|
|
};
|