forked from ember-fastboot/ember-cli-fastboot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ember-fastboot#210 from ember-fastboot/add-eslint
Add Eslint to this project
- Loading branch information
Showing
16 changed files
with
624 additions
and
180 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
test/fixtures | ||
test/helpers |
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,22 @@ | ||
module.exports = { | ||
'env': { | ||
'browser': true, | ||
'node': true, | ||
'es6': true, | ||
}, | ||
'extends': ['eslint:recommended', 'plugin:node/recommended'], | ||
'parserOptions': { | ||
'ecmaVersion': 6 | ||
}, | ||
'rules': { | ||
'no-console': ['error', { 'allow': ['warn', 'error']}], | ||
'linebreak-style': [ | ||
'error', | ||
'unix' | ||
], | ||
'semi': [ | ||
'error', | ||
'always' | ||
] | ||
} | ||
}; |
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
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,45 @@ | ||
module.exports = { | ||
plugins: [ | ||
'chai-expect', | ||
'mocha' | ||
], | ||
env: { | ||
mocha: true, | ||
}, | ||
rules: { | ||
// JSHint "expr", disabled due to chai expect assertions | ||
'no-unused-expressions': 0, | ||
|
||
// disabled for easier asserting of file contents | ||
'quotes': 0, | ||
|
||
// disabled because describe(), it(), etc. should not use arrow functions | ||
'prefer-arrow-callback': 0, | ||
|
||
/*** chai-expect ***/ | ||
|
||
'chai-expect/missing-assertion': 2, | ||
'chai-expect/terminating-properties': 2, | ||
'chai-expect/no-inner-compare': 2, | ||
|
||
/*** mocha ***/ | ||
|
||
'mocha/no-exclusive-tests': 'error', | ||
'mocha/no-skipped-tests': 'off', | ||
'mocha/no-pending-tests': 'off', | ||
'mocha/handle-done-callback': 'error', | ||
'mocha/no-synchronous-tests': 'off', | ||
'mocha/no-global-tests': 'error', | ||
'mocha/no-return-and-callback': 'error', | ||
'mocha/valid-test-description': 'off', | ||
'mocha/valid-suite-description': 'off', | ||
'mocha/no-sibling-hooks': 'error', | ||
'mocha/no-mocha-arrows': 'error', | ||
'mocha/no-hooks': 'off', | ||
'mocha/no-hooks-for-single-case': 'off', | ||
'mocha/no-top-level-hooks': 'error', | ||
'mocha/no-identical-title': 'error', | ||
'mocha/max-top-level-suites': 'off', | ||
'mocha/no-nested-tests': 'error' | ||
} | ||
}; |
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
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
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
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.
Oops, something went wrong.