-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: define an ember-core eslint config for ember-app and ember-…
…addon configs
- Loading branch information
1 parent
46ca036
commit 2fc93ac
Showing
3 changed files
with
62 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
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" | ||
}, | ||
overrides: [ | ||
// node files | ||
{ | ||
files: [ | ||
".eslintrc.js", | ||
".template-lintrc.js", | ||
"ember-cli-build.js", | ||
"testem.js", | ||
"config/**/*.js" | ||
], | ||
parserOptions: { | ||
sourceType: "script" | ||
}, | ||
env: { | ||
browser: false, | ||
node: true | ||
}, | ||
plugins: ["node"], | ||
extends: ['plugin:node/recommended'], | ||
rules: { | ||
// this can be removed once the following is fixed | ||
// https://github.com/mysticatea/eslint-plugin-node/issues/77 | ||
'node/no-unpublished-require': 'off' | ||
} | ||
}, | ||
// testem config file | ||
{ | ||
files: ["testem.js"], | ||
rules: { | ||
camelcase: "off" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters