d23bef606a
* switch to dynamic imports so that bundling doesn't include swagger-ui-dist in its vendor file * remove ember-ajax * delete comment * update comment about lazy loading in the engine index.js
46 lines
940 B
JavaScript
46 lines
940 B
JavaScript
module.exports = {
|
|
parser: 'babel-eslint',
|
|
root: true,
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
sourceType: 'module',
|
|
},
|
|
plugins: ['ember', 'prettier'],
|
|
extends: ['eslint:recommended', 'plugin:ember/recommended', 'prettier'],
|
|
env: {
|
|
browser: true,
|
|
es6: true,
|
|
},
|
|
rules: {
|
|
'no-unused-vars': ['error', { ignoreRestSiblings: true }],
|
|
'prettier/prettier': 'error',
|
|
'ember/no-jquery': 'error',
|
|
},
|
|
globals: {
|
|
TextEncoderLite: true,
|
|
TextDecoderLite: true,
|
|
},
|
|
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,
|
|
},
|
|
},
|
|
],
|
|
};
|