Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d932454
commit f1a33a6
Showing
25 changed files
with
135 additions
and
197 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,98 +1,56 @@ | ||
module.exports = { | ||
root: true, | ||
parserOptions: { | ||
ecmaVersion: 6, | ||
ecmaVersion: 2017, | ||
sourceType: 'module' | ||
}, | ||
extends: 'eslint:recommended', | ||
plugins: [ | ||
'ember' | ||
], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:ember/recommended' | ||
], | ||
env: { | ||
browser: false, | ||
node: true, | ||
}, | ||
globals: { | ||
browser: true | ||
}, | ||
rules: { | ||
/*** Possible Errors ***/ | ||
|
||
'no-console': 0, | ||
'no-template-curly-in-string': 2, | ||
'no-unsafe-negation': 2, | ||
|
||
/*** Best Practices ***/ | ||
|
||
'curly': 2, | ||
'eqeqeq': 2, | ||
'guard-for-in': 0, | ||
'no-caller': 2, | ||
'no-eq-null': 2, | ||
'no-eval': 2, | ||
'no-multi-spaces': [2, { | ||
'exceptions': { | ||
'ObjectExpression': true, | ||
'Property': true, | ||
}, | ||
}], | ||
'no-new': 0, | ||
'no-unused-expressions': [2, { | ||
allowShortCircuit: true, | ||
allowTernary: true, | ||
}], | ||
'wrap-iife': 0, | ||
'yoda': 2, | ||
|
||
/*** Strict Mode ***/ | ||
|
||
'strict': [2, 'global'], | ||
|
||
/*** Variables ***/ | ||
|
||
'no-undef': 2, | ||
'no-unused-vars': 2, | ||
'no-use-before-define': [2, 'nofunc'], | ||
|
||
/*** Stylistic Issues ***/ | ||
|
||
'array-bracket-spacing': 2, | ||
'block-spacing': 2, | ||
'brace-style': [2, '1tbs', { | ||
'allowSingleLine': true, | ||
}], | ||
'camelcase': 2, | ||
'comma-dangle': 0, | ||
'comma-spacing': 2, | ||
'comma-style': 2, | ||
'eol-last': 2, | ||
'func-call-spacing': 2, | ||
'indent': [2, 2, { | ||
'SwitchCase': 1, | ||
'VariableDeclarator': { 'var': 2, 'let': 2, 'const': 3 } | ||
}], | ||
'key-spacing': 2, | ||
'keyword-spacing': 2, | ||
'linebreak-style': [2, 'unix'], | ||
'new-cap': [2, { | ||
properties: false, | ||
}], | ||
'new-parens': 2, | ||
'no-array-constructor': 2, | ||
'no-bitwise': 2, | ||
'no-lonely-if': 2, | ||
'no-mixed-operators': 2, | ||
'no-plusplus': 0, | ||
'no-trailing-spaces': 2, | ||
'no-unneeded-ternary': 2, | ||
'no-whitespace-before-property': 2, | ||
'object-curly-spacing': [2, 'always'], | ||
'semi-spacing': 2, | ||
'semi': 2, | ||
'space-before-blocks': 2, | ||
'space-before-function-paren': [2, 'never'], | ||
'space-in-parens': 2, | ||
'space-infix-ops': 2, | ||
'space-unary-ops': 2, | ||
'quotes': [2, 'single', { | ||
'allowTemplateLiterals': true, | ||
}], | ||
'semi': [2, 'always'], | ||
'wrap-regex': 2 | ||
}, | ||
overrides: [ | ||
// node files | ||
{ | ||
files: [ | ||
'index.js', | ||
'testem.js', | ||
'ember-cli-build.js', | ||
'config/**/*.js', | ||
'tests/dummy/config/**/*.js' | ||
], | ||
excludedFiles: [ | ||
'app/**', | ||
'addon/**' | ||
], | ||
parserOptions: { | ||
sourceType: 'script', | ||
ecmaVersion: 2015 | ||
}, | ||
env: { | ||
browser: false, | ||
node: true | ||
}, | ||
plugins: ['node'], | ||
rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, { | ||
// add your custom rules and overrides for node files here | ||
}) | ||
}, | ||
|
||
// test files | ||
{ | ||
files: ['tests/**/*.js'], | ||
excludedFiles: ['tests/dummy/**/*.js'], | ||
env: { | ||
embertest: true | ||
} | ||
} | ||
] | ||
}; |
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 |
---|---|---|
@@ -1,25 +1,26 @@ | ||
bower_components/ | ||
config/ | ||
dist/ | ||
test/ | ||
tests/ | ||
tmp/ | ||
/bower_components | ||
/config/ember-try.js | ||
/dist | ||
/tests | ||
/tmp | ||
**/.gitkeep | ||
.bowerrc | ||
.codeclimate.yml | ||
.editorconfig | ||
.ember-cli | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
.jscsrc | ||
.jshintrc | ||
.travis.yml | ||
.watchmanconfig | ||
.travis.yml | ||
bower.json | ||
ember-cli-build.js | ||
testem.js | ||
all-commands.sh | ||
smoke-test.sh | ||
testem.json | ||
upload-coverage.sh | ||
|
||
# ember-try | ||
.node_modules.ember-try/ | ||
bower.json.ember-try | ||
package.json.ember-try |
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 |
---|---|---|
@@ -1,7 +0,0 @@ | ||
{ | ||
"name": "ember-try", | ||
"dependencies": { | ||
"ember": "~2.8.0", | ||
"ember-cli-shims": "0.1.1" | ||
} | ||
} | ||
Empty file.
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,4 +1,3 @@ | ||
/*jshint node:true*/ | ||
'use strict'; | ||
|
||
module.exports = function(/* environment, appConfig */) { | ||
|
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/* jshint node: true */ | ||
'use strict'; | ||
|
||
module.exports = { | ||
|
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/*jshint node:true*/ | ||
module.exports = { | ||
test_page: 'tests/index.html?hidepassed', | ||
disable_watching: true, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<h2 id="title">Welcome to Ember</h2> | ||
|
||
{{outlet}} | ||
{{outlet}} |
Oops, something went wrong.