Skip to content

Commit

Permalink
refactor: define an ember-core eslint config for ember-app and ember-…
Browse files Browse the repository at this point in the history
…addon configs
  • Loading branch information
GreatWizard committed Feb 18, 2021
1 parent 46ca036 commit 6727b97
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 46 deletions.
24 changes: 1 addition & 23 deletions ember-addon.js
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
27 changes: 27 additions & 0 deletions ember-core.js
Original file line number Diff line number Diff line change
@@ -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"
}
}
24 changes: 1 addition & 23 deletions ember.js
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down

0 comments on commit 6727b97

Please sign in to comment.