Skip to content

Commit

Permalink
Update linting
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieTheWagner committed Dec 1, 2021
1 parent bd322f5 commit 142f98c
Show file tree
Hide file tree
Showing 6 changed files with 1,016 additions and 1,059 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ module.exports = {
server: true,
},
root: true,
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 2018,
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
legacyDecorators: true,
Expand Down
1 change: 1 addition & 0 deletions addon/components/docs-header/search-results/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable ember/require-computed-property-dependencies */
import { inject as service } from '@ember/service';
import Component from '@ember/component';
import { action } from '@ember/object';
Expand Down
12 changes: 12 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* eslint-env node */

module.exports = {
plugins: [
[
require('@babel/plugin-proposal-decorators').default,
{
legacy: true,
},
],
],
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
},
"devDependencies": {
"@babel/eslint-parser": "^7.16.0",
"@babel/plugin-proposal-decorators": "^7.16.0",
"@ember/optional-features": "^2.0.0",
"@ember/test-helpers": "^2.4.2",
"@embroider/test-setup": "^0.47.2",
Expand Down
7 changes: 4 additions & 3 deletions sandbox/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
module.exports = {
root: true,
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module'
ecmaVersion: 2020,
sourceType: 'module',
requireConfigFile: false
},
plugins: [
'ember'
Expand Down
Loading

0 comments on commit 142f98c

Please sign in to comment.