Skip to content

Commit

Permalink
Upgrade and fix lint deps
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Oct 21, 2023
1 parent 1861ff4 commit fd2823c
Show file tree
Hide file tree
Showing 6 changed files with 381 additions and 286 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
/blueprints/*/files/
/vendor/

# to use these, we require prettier-plugin-ember-template-tag to use content-tag
*.gjs
*.gts

# compiled output
/dist/
/lib/
Expand Down
19 changes: 9 additions & 10 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@

module.exports = {
root: true,
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 2018,
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
legacyDecorators: true,
requireConfigFile: false,
babelOptions: {
plugins: [
['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }],
],
},
},
plugins: ['ember'],
Expand Down Expand Up @@ -50,12 +53,8 @@ module.exports = {
browser: false,
node: true,
},
plugins: ['node'],
extends: ['plugin:node/recommended'],
rules: {
// this rule is broken
'node/no-missing-require': 'off',
},
plugins: ['n'],
extends: ['plugin:n/recommended'],
},
{
files: ['*.ts'],
Expand Down
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
/blueprints/*/files/
/vendor/

# to use these, we require prettier-plugin-ember-template-tag to use content-tag
*.gjs
*.gts

# compiled output
/dist/
/tmp/
Expand Down
4 changes: 2 additions & 2 deletions ember-addon-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {

let emberChecker = new VersionChecker(this.project).for('ember-source');
let emberCliHtmlBars = new VersionChecker(this.project).for(
'ember-cli-htmlbars'
'ember-cli-htmlbars',
);
let emberCliBabel = new VersionChecker(this.project).for('ember-cli-babel');

Expand All @@ -30,7 +30,7 @@ module.exports = {

if (errors.length > 0) {
throw new Error(
'ember-template-imports requires' + '\n\t' + errors.join('\n\t')
'ember-template-imports requires' + '\n\t' + errors.join('\n\t'),
);
}
},
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
},
"devDependencies": {
"@babel/core": "^7.22.20",
"@babel/eslint-parser": "^7.22.15",
"@ember/optional-features": "^2.0.0",
"@ember/string": "^3.0.1",
"@ember/test-helpers": "^3.2.0",
Expand All @@ -40,9 +41,8 @@
"@glimmer/syntax": "0.84.3",
"@glimmer/tracking": "^1.0.3",
"@release-it-plugins/lerna-changelog": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "^5.5.0",
"babel-eslint": "^10.1.0",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"ember-auto-import": "^2.6.3",
"ember-cli": "~4.12.1",
"ember-cli-babel": "^8.2.0",
Expand All @@ -56,14 +56,14 @@
"ember-source": "~4.8.2",
"ember-source-channel-url": "^3.0.0",
"ember-try": "^3.0.0",
"eslint": "^7.20.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-ember": "^10.2.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint": "^8.52.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-ember": "^11.11.1",
"eslint-plugin-n": "^16.2.0",
"eslint-plugin-prettier": "^5.0.1",
"loader.js": "^4.7.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.2.1",
"prettier": "^3.0.3",
"qunit": "^2.14.0",
"qunit-dom": "^3.0.0",
"release-it": "^16.2.1",
Expand Down
Loading

0 comments on commit fd2823c

Please sign in to comment.