56 lines
1.2 KiB
JavaScript
56 lines
1.2 KiB
JavaScript
/* eslint-disable no-undef */
|
|
|
|
'use strict';
|
|
|
|
module.exports = {
|
|
parser: 'babel-eslint',
|
|
root: true,
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
sourceType: 'module',
|
|
ecmaFeatures: {
|
|
legacyDecorators: true,
|
|
},
|
|
},
|
|
plugins: ['ember', 'prettier'],
|
|
extends: ['eslint:recommended', 'plugin:ember/recommended', 'prettier'],
|
|
env: {
|
|
browser: true,
|
|
es6: true,
|
|
},
|
|
rules: {
|
|
// TODO revisit once figure out how to replace, added during upgrade to 3.20
|
|
'ember/no-new-mixins': 'off',
|
|
'ember/no-mixins': 'off',
|
|
},
|
|
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',
|
|
ecmaVersion: 2018,
|
|
},
|
|
env: {
|
|
browser: false,
|
|
node: true,
|
|
},
|
|
plugins: ['node'],
|
|
extends: ['plugin:node/recommended'],
|
|
rules: {
|
|
// this can be removed once the following is fixed
|
|
// https://github.com/mysticatea/eslint-plugin-node/issues/77
|
|
'node/no-unpublished-require': 'off',
|
|
},
|
|
},
|
|
],
|
|
};
|