Skip to content

Commit

Permalink
Merge pull request #99 from ember-cli/migrate-to-eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue authored Oct 29, 2020
2 parents 57592c6 + 690d045 commit 1f5ab96
Show file tree
Hide file tree
Showing 5 changed files with 544 additions and 427 deletions.
14 changes: 12 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

module.exports = {
root: true,
parserOptions: {
Expand Down Expand Up @@ -65,7 +67,7 @@ module.exports = {
'func-call-spacing': 2,
'indent': [2, 2, {
'SwitchCase': 1,
'VariableDeclarator': { 'var': 2, 'let': 2, 'const': 3 }
'VariableDeclarator': { 'var': 2, 'let': 2, 'const': 3 },
}],
'key-spacing': 2,
'keyword-spacing': 2,
Expand All @@ -84,7 +86,6 @@ module.exports = {
'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,
Expand Down Expand Up @@ -117,4 +118,13 @@ module.exports = {
'template-curly-spacing': 2,
'yield-star-spacing': 2,
},
overrides: [
{
files: ['test/**/*.js'],

env: {
jest: true,
},
},
],
};
11 changes: 0 additions & 11 deletions jest.lint.config.js

This file was deleted.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "lib/auto-scenario-config-for-ember.js",
"scripts": {
"lint": "eslint .",
"test": "jest --projects jest.config.js jest.lint.config.js",
"test": "npm-run-all lint test:jest",
"test:jest": "jest --projects jest.config.js",
"preversion": "node bin/update-known-versions.js"
},
"repository": "ember-cli/ember-try-config",
Expand All @@ -15,8 +16,9 @@
"devDependencies": {
"codecov": "^3.7.1",
"glob": "^7.1.6",
"eslint": "^7.12.1",
"jest": "^24.9.0",
"jest-runner-eslint": "^0.7.4"
"npm-run-all": "^4.1.5"
},
"dependencies": {
"ember-source-channel-url": "^1.0.1",
Expand Down
6 changes: 0 additions & 6 deletions test/.eslintrc.js

This file was deleted.

Loading

0 comments on commit 1f5ab96

Please sign in to comment.