* refactor: 💡 Move e2e tests to new folder * refactor: 💡 Convert desktop tests to mjs and use es6 imports * refactor: 💡 Use module setting for e2e directory and remove mjs * refactor: 💡 Remove "e2e" in all scripts in package.json
69 lines
1.6 KiB
JavaScript
69 lines
1.6 KiB
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
module.exports = {
|
|
root: true,
|
|
parser: '@babel/eslint-parser',
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
// This is specific babel-config. If grows consider creating a babel config file
|
|
requireConfigFile: false,
|
|
babelOptions: {
|
|
plugins: [
|
|
['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }],
|
|
],
|
|
},
|
|
// end of babel-config
|
|
},
|
|
plugins: ['ember'],
|
|
extends: ['eslint:recommended', 'plugin:ember/recommended', 'prettier'],
|
|
env: {
|
|
browser: true,
|
|
},
|
|
rules: {
|
|
'ember/no-get': 'off',
|
|
'ember/no-get-with-default': 'off',
|
|
'ember/no-computed-properties-in-native-classes': 'off',
|
|
'ember/no-assignment-of-untracked-properties-used-in-tracking-contexts':
|
|
'off',
|
|
},
|
|
overrides: [
|
|
// node files
|
|
{
|
|
files: [
|
|
'./.eslintrc.js',
|
|
'./.prettierrc.js',
|
|
'./.stylelintrc.js',
|
|
'./.template-lintrc.js',
|
|
'./ember-cli-build.js',
|
|
'./testem.js',
|
|
'./blueprints/*/index.js',
|
|
'./config/**/*.js',
|
|
'./lib/*/index.js',
|
|
'./server/**/*.js',
|
|
],
|
|
parserOptions: {
|
|
sourceType: 'script',
|
|
},
|
|
env: {
|
|
browser: false,
|
|
node: true,
|
|
},
|
|
extends: ['plugin:n/recommended'],
|
|
},
|
|
{
|
|
// Test files:
|
|
files: ['tests/**/*-test.{js,ts}'],
|
|
extends: ['plugin:qunit/recommended'],
|
|
rules: {
|
|
'qunit/require-expect': [2, 'except-simple'],
|
|
},
|
|
},
|
|
],
|
|
};
|