2017-03-19 11:37:18 +00:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
parserOptions: {
|
2019-08-28 12:57:02 +01:00
|
|
|
ecmaVersion: 2018,
|
2017-03-19 11:37:18 +00:00
|
|
|
sourceType: 'module'
|
|
|
|
},
|
2018-01-22 10:31:03 +00:00
|
|
|
plugins: [
|
|
|
|
'ember'
|
|
|
|
],
|
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:ember/recommended'
|
|
|
|
],
|
2017-03-19 11:37:18 +00:00
|
|
|
env: {
|
2018-01-22 10:31:03 +00:00
|
|
|
browser: true
|
2017-03-19 11:37:18 +00:00
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
},
|
2018-01-22 10:31:03 +00:00
|
|
|
overrides: [
|
|
|
|
// node files
|
|
|
|
{
|
|
|
|
files: [
|
2018-12-08 15:35:41 +00:00
|
|
|
'.eslintrc.js',
|
|
|
|
'.template-lintrc.js',
|
2018-01-22 10:31:03 +00:00
|
|
|
'ember-cli-build.js',
|
2018-12-08 15:57:58 +00:00
|
|
|
'testem.js',
|
2019-05-16 12:49:27 +01:00
|
|
|
'blueprints/*/index.js',
|
|
|
|
'config/**/*.js',
|
|
|
|
'lib/*/index.js',
|
|
|
|
'server/**/*.js'
|
2018-01-22 10:31:03 +00:00
|
|
|
],
|
|
|
|
parserOptions: {
|
2019-08-28 12:57:02 +01:00
|
|
|
sourceType: 'script'
|
2018-01-22 10:31:03 +00:00
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: false,
|
|
|
|
node: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
// test files
|
|
|
|
{
|
|
|
|
files: ['tests/**/*.js'],
|
|
|
|
excludedFiles: ['tests/dummy/**/*.js'],
|
|
|
|
env: {
|
|
|
|
embertest: true
|
2019-05-16 12:49:27 +01:00
|
|
|
},
|
|
|
|
plugins: ['node'],
|
|
|
|
rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, {
|
|
|
|
// add your custom rules and overrides for node files here
|
|
|
|
|
|
|
|
// this can be removed once the following is fixed
|
|
|
|
// https://github.com/mysticatea/eslint-plugin-node/issues/77
|
|
|
|
'node/no-unpublished-require': 'off'
|
|
|
|
})
|
2018-01-22 10:31:03 +00:00
|
|
|
}
|
|
|
|
],
|
2017-03-19 11:37:18 +00:00
|
|
|
globals: {
|
2018-02-07 13:44:18 +00:00
|
|
|
"mermaid": true,
|
|
|
|
"_": true,
|
|
|
|
"tinymce": true,
|
|
|
|
"CodeMirror": true,
|
|
|
|
"Mousetrap": true,
|
|
|
|
"Sortable": true,
|
|
|
|
"moment": true,
|
|
|
|
"Dropzone": true,
|
|
|
|
"server": true,
|
|
|
|
"authenticateUser": true,
|
|
|
|
"stubAudit": true,
|
|
|
|
"stubUserNotification": true,
|
|
|
|
"userLogin": true,
|
|
|
|
"Keycloak": true,
|
|
|
|
"slug": true,
|
2019-03-01 14:28:18 +00:00
|
|
|
"iziToast": true,
|
|
|
|
"Papa": true,
|
2019-03-13 11:40:36 +00:00
|
|
|
"Popper": true,
|
2019-06-05 12:52:15 +01:00
|
|
|
"ClipboardJS": true
|
2018-02-07 13:44:18 +00:00
|
|
|
}
|
2017-03-19 11:37:18 +00:00
|
|
|
};
|