2020-07-09 16:37:00 +00:00
|
|
|
'use strict';
|
|
|
|
|
2017-09-19 14:47:10 +00:00
|
|
|
module.exports = {
|
2019-10-15 18:32:58 +00:00
|
|
|
root: true,
|
2017-09-19 14:47:10 +00:00
|
|
|
globals: {
|
|
|
|
server: true,
|
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es6: true,
|
|
|
|
},
|
2020-06-09 21:03:28 +00:00
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:ember/recommended',
|
|
|
|
],
|
2020-05-26 14:56:25 +00:00
|
|
|
parser: 'babel-eslint',
|
2017-09-19 14:47:10 +00:00
|
|
|
parserOptions: {
|
2019-04-02 22:59:16 +00:00
|
|
|
ecmaVersion: 2018,
|
2017-09-19 14:47:10 +00:00
|
|
|
sourceType: 'module',
|
2020-06-10 13:49:16 +00:00
|
|
|
ecmaFeatures: {
|
|
|
|
legacyDecorators: true,
|
|
|
|
},
|
2017-09-19 14:47:10 +00:00
|
|
|
},
|
2020-06-09 21:03:28 +00:00
|
|
|
plugins: [
|
|
|
|
'ember'
|
|
|
|
],
|
2017-09-19 14:47:10 +00:00
|
|
|
rules: {
|
|
|
|
indent: ['error', 2, { SwitchCase: 1 }],
|
|
|
|
'linebreak-style': ['error', 'unix'],
|
|
|
|
quotes: ['error', 'single', 'avoid-escape'],
|
|
|
|
semi: ['error', 'always'],
|
2017-11-15 21:55:30 +00:00
|
|
|
'no-constant-condition': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
checkLoops: false,
|
|
|
|
},
|
|
|
|
],
|
2020-06-22 15:48:53 +00:00
|
|
|
'ember/classic-decorator-hooks': 'error',
|
|
|
|
'ember/classic-decorator-no-classic-methods': 'error',
|
2021-02-17 21:01:44 +00:00
|
|
|
'ember/no-get': 'off',
|
|
|
|
'ember/no-mixins': 'off',
|
2017-09-19 14:47:10 +00:00
|
|
|
},
|
2019-03-12 23:42:47 +00:00
|
|
|
overrides: [
|
|
|
|
// node files
|
|
|
|
{
|
|
|
|
files: [
|
2019-03-13 00:40:39 +00:00
|
|
|
'.eslintrc.js',
|
2019-03-15 20:26:18 +00:00
|
|
|
'.template-lintrc.js',
|
2019-03-12 23:42:47 +00:00
|
|
|
'ember-cli-build.js',
|
|
|
|
'testem.js',
|
2019-03-15 20:26:18 +00:00
|
|
|
'blueprints/*/index.js',
|
2019-03-12 23:42:47 +00:00
|
|
|
'config/**/*.js',
|
2019-10-08 18:44:19 +00:00
|
|
|
'server/**/*.js',
|
2019-03-13 00:40:39 +00:00
|
|
|
'lib/*/index.js',
|
2019-03-12 23:42:47 +00:00
|
|
|
],
|
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'script',
|
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: false,
|
2019-03-13 00:40:39 +00:00
|
|
|
node: true,
|
|
|
|
},
|
2019-10-15 18:32:58 +00:00
|
|
|
plugins: ['node'],
|
2021-02-17 21:01:44 +00:00
|
|
|
rules: {
|
2019-10-15 18:32:58 +00:00
|
|
|
'node/no-unpublished-require': 'off'
|
2021-02-17 21:01:44 +00:00
|
|
|
},
|
2019-03-13 00:40:39 +00:00
|
|
|
},
|
2020-01-21 21:46:32 +00:00
|
|
|
{
|
|
|
|
files: [
|
|
|
|
'stories/**/*.js'
|
|
|
|
],
|
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'module',
|
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: false,
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
plugins: ['node'],
|
|
|
|
},
|
2019-03-13 00:40:39 +00:00
|
|
|
],
|
2017-09-19 14:47:10 +00:00
|
|
|
};
|