This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
ember-suave
with the Ember ESLint config
- Loading branch information
1 parent
967c976
commit 59a60e1
Showing
5 changed files
with
77 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,52 @@ | ||
module.exports = { | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:ember-suave/recommended' | ||
], | ||
root: true, | ||
parserOptions: { | ||
ecmaVersion: 2017, | ||
sourceType: 'module' | ||
}, | ||
plugins: ['ember'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:ember/recommended' | ||
], | ||
env: { | ||
'browser': true | ||
}, | ||
rules: { | ||
// Built-in Rule Config | ||
'prefer-const': 'error', | ||
'prefer-const': 'error' | ||
}, | ||
overrides: [ | ||
// node files | ||
{ | ||
files: [ | ||
'./index.js', | ||
'testem.js', | ||
'ember-cli-build.js', | ||
'config/**/*.js', | ||
'tests/dummy/config/**/*.js' | ||
], | ||
parserOptions: { | ||
sourceType: 'script', | ||
ecmaVersion: 2015 | ||
}, | ||
env: { | ||
browser: false, | ||
node: true | ||
} | ||
}, | ||
|
||
// Ember Suave Rule Config | ||
'ember-suave/no-const-outside-module-scope': 'off' | ||
} | ||
// test files | ||
{ | ||
files: ['tests/**/*.js'], | ||
excludedFiles: ['tests/dummy/**/*.js'], | ||
env: { | ||
embertest: true | ||
}, | ||
rules: { | ||
// Useful for testing; not worried about leaking state | ||
'ember/avoid-leaking-state-in-ember-objects': '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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import $ from 'jquery'; | ||
import jq from 'jquery'; | ||
import resolver from './helpers/resolver'; | ||
import { setResolver } from 'ember-mocha'; | ||
|
||
setResolver(resolver); | ||
|
||
if (window.location.search.indexOf('nocontainer') > -1) { | ||
$('#ember-testing-container').css({ visibility: 'hidden' }); | ||
jq('#ember-testing-container').css({ visibility: 'hidden' }); | ||
} |
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