Skip to content

Commit

Permalink
chore(lint): add internal import regex
Browse files Browse the repository at this point in the history
  • Loading branch information
anehx committed Feb 22, 2022
1 parent 8aa2dae commit f89f87d
Show file tree
Hide file tree
Showing 28 changed files with 58 additions and 28 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

module.exports = {
extends: ["@adfinis-sygroup/eslint-config/ember-addon"],
settings: {
"import/internal-regex": "^(ember-validated-form|dummy)/",
},
};
3 changes: 2 additions & 1 deletion tests/dummy/app/app.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import Application from "@ember/application";
import config from "dummy/config/environment";
import loadInitializers from "ember-load-initializers";
import Resolver from "ember-resolver";

import config from "dummy/config/environment";

export default class App extends Application {
modulePrefix = config.modulePrefix;
podModulePrefix = config.podModulePrefix;
Expand Down
3 changes: 2 additions & 1 deletion tests/dummy/app/controllers/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// BEGIN-SNIPPET quickstart-controller.js
import Controller from "@ember/controller";
import UserValidations from "dummy/validations/user";
import { task, timeout } from "ember-concurrency";

import UserValidations from "dummy/validations/user";

export default class IndexController extends Controller {
UserValidations = UserValidations;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-button/-themes/bootstrap/button",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-button/-themes/uikit/button",
function (hooks) {
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/components/validated-form-defaults-test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { set } from "@ember/object";
import { render } from "@ember/test-helpers";
import Component from "@glimmer/component";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module("Integration | Component | validated form defaults", function (hooks) {
setupRenderingTest(hooks);
setupConfigTest(hooks, {});
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/components/validated-form-test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import EmberObject from "@ember/object";
import { run } from "@ember/runloop";
import { render, click, blur, fillIn, focus } from "@ember/test-helpers";
import UserValidations from "dummy/validations/user";
import { validateLength } from "ember-changeset-validations/validators";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";
import { defer } from "rsvp";

import UserValidations from "dummy/validations/user";

module("Integration | Component | validated form", function (hooks) {
setupRenderingTest(hooks);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/-themes/bootstrap/error",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/-themes/bootstrap/hint",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/-themes/bootstrap/label",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/-themes/bootstrap/render",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/-themes/uikit/error",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/-themes/uikit/hint",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/-themes/uikit/label",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/-themes/uikit/render",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { hbs } from "ember-cli-htmlbars";
import { setupRenderingTest } from "ember-qunit";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/types/-themes/bootstrap/checkbox-group",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/types/-themes/bootstrap/checkbox",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/types/-themes/bootstrap/input",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/types/-themes/bootstrap/radio-group",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/types/-themes/bootstrap/select",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/types/-themes/bootstrap/textarea",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/types/-themes/uikit/checkbox-group",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/types/-themes/uikit/checkbox",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/types/-themes/uikit/input",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/types/-themes/uikit/radio-group",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/types/-themes/uikit/select",
function (hooks) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from "@ember/test-helpers";
import setupConfigTest from "dummy/tests/helpers/setup-config-test";
import { setupRenderingTest } from "ember-qunit";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";

import setupConfigTest from "dummy/tests/helpers/setup-config-test";

module(
"Integration | Component | validated-input/types/-themes/uikit/textarea",
function (hooks) {
Expand Down
5 changes: 3 additions & 2 deletions tests/test-helper.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { setApplication } from "@ember/test-helpers";
import Application from "dummy/app";
import config from "dummy/config/environment";
import { start } from "ember-qunit";
import * as QUnit from "qunit";
import { setup } from "qunit-dom";

import Application from "dummy/app";
import config from "dummy/config/environment";

setApplication(Application.create(config.APP));

setup(QUnit.assert);
Expand Down

0 comments on commit f89f87d

Please sign in to comment.