From 6727b979f8557c23b71d1ef55bf49a1b96b516f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20G=C3=A9rard?= Date: Mon, 4 Jan 2021 12:09:33 +0100 Subject: [PATCH] refactor: define an ember-core eslint config for ember-app and ember-addon configs --- ember-addon.js | 24 +----------------------- ember-core.js | 27 +++++++++++++++++++++++++++ ember.js | 24 +----------------------- 3 files changed, 29 insertions(+), 46 deletions(-) create mode 100644 ember-core.js diff --git a/ember-addon.js b/ember-addon.js index 0ad44c3..47c3bcd 100644 --- a/ember-addon.js +++ b/ember-addon.js @@ -1,29 +1,7 @@ module.exports = { - parser: "babel-eslint", - parserOptions: { - ecmaVersion: 2018, - sourceType: "module", - ecmaFeatures: { - legacyDecorators: true - } - }, - plugins: [ - "ember", - "ember-suave" - ], extends: [ - "eslint:recommended", - "plugin:ember/recommended", - "plugin:ember-suave/recommended", - "./core.js" + "./ember-core.js" ], - env: { - browser: true - }, - rules: { - "ember/no-jquery": "warn", - "ember-suave/require-access-in-comments": "off" - }, overrides: [ // node files { diff --git a/ember-core.js b/ember-core.js new file mode 100644 index 0000000..c2f1c91 --- /dev/null +++ b/ember-core.js @@ -0,0 +1,27 @@ +module.exports = { + parser: "babel-eslint", + parserOptions: { + ecmaVersion: 2018, + sourceType: "module", + ecmaFeatures: { + legacyDecorators: true + } + }, + plugins: [ + "ember", + "ember-suave" + ], + extends: [ + "eslint:recommended", + "plugin:ember/recommended", + "plugin:ember-suave/recommended", + "./core.js" + ], + env: { + browser: true + }, + rules: { + "ember/no-jquery": "warn", + "ember-suave/require-access-in-comments": "off" + } +} diff --git a/ember.js b/ember.js index 7d0e1d8..22cb9de 100644 --- a/ember.js +++ b/ember.js @@ -1,29 +1,7 @@ module.exports = { - parser: "babel-eslint", - parserOptions: { - ecmaVersion: 2018, - sourceType: "module", - ecmaFeatures: { - legacyDecorators: true - } - }, - plugins: [ - "ember", - "ember-suave" - ], extends: [ - "eslint:recommended", - "plugin:ember/recommended", - "plugin:ember-suave/recommended", - "./core.js" + "./ember-core.js" ], - env: { - browser: true - }, - rules: { - "ember/no-jquery": "warn", - "ember-suave/require-access-in-comments": "off" - }, overrides: [ // node files {