55 lines
976 B
JavaScript
55 lines
976 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
root: true,
|
|
parser: 'babel-eslint',
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
sourceType: 'module',
|
|
ecmaFeatures: {
|
|
legacyDecorators: true
|
|
}
|
|
},
|
|
plugins: [
|
|
'ember'
|
|
],
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:ember/recommended'
|
|
],
|
|
env: {
|
|
browser: true
|
|
},
|
|
rules: {},
|
|
overrides: [
|
|
// node files
|
|
{
|
|
files: [
|
|
'.eslintrc.js',
|
|
'.template-lintrc.js',
|
|
'ember-cli-build.js',
|
|
'index.js',
|
|
'testem.js',
|
|
'blueprints/*/index.js',
|
|
'config/**/*.js',
|
|
'tests/dummy/config/**/*.js'
|
|
],
|
|
excludedFiles: [
|
|
'addon/**',
|
|
'addon-test-support/**',
|
|
'app/**',
|
|
'tests/dummy/app/**'
|
|
],
|
|
parserOptions: {
|
|
sourceType: 'script'
|
|
},
|
|
env: {
|
|
browser: false,
|
|
node: true
|
|
},
|
|
plugins: ['node'],
|
|
extends: ['plugin:node/recommended']
|
|
}
|
|
]
|
|
};
|