42 lines
791 B
JavaScript
42 lines
791 B
JavaScript
|
module.exports = {
|
||
|
root: true,
|
||
|
parserOptions: {
|
||
|
ecmaVersion: 2017,
|
||
|
sourceType: 'module',
|
||
|
ecmaFeatures: {
|
||
|
experimentalObjectRestSpread: true
|
||
|
}
|
||
|
},
|
||
|
plugins: ['ember'],
|
||
|
extends: ['eslint:recommended', 'plugin:ember/recommended'],
|
||
|
env: {
|
||
|
browser: true,
|
||
|
},
|
||
|
rules: {
|
||
|
'no-unused-vars': ['error', { args: 'none' }]
|
||
|
},
|
||
|
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,
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
};
|