Skip to content

Commit

Permalink
Introduced eslint@v9 and @ijlee2-frontend-configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ijlee2 committed Feb 10, 2025
1 parent de8103e commit 97a2665
Show file tree
Hide file tree
Showing 33 changed files with 89 additions and 159 deletions.
13 changes: 0 additions & 13 deletions .eslintignore

This file was deleted.

15 changes: 0 additions & 15 deletions .eslintrc.cjs

This file was deleted.

5 changes: 2 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@
/.DS_Store
/.env*
/.eslintcache
/.eslintignore
/.eslintrc.cjs
/.git/
/.github/
/.gitignore
/.pnpm-debug.log
/.prettierignore
/.prettierrc.cjs
/build.sh
/eslint.config.mjs
/prettier.config.mjs
/tests/
/update-blueprints.js
/update-test-fixtures.sh
3 changes: 0 additions & 3 deletions .prettierrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2024 Isaac J. Lee
Copyright (c) 2025 Isaac J. Lee

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
25 changes: 25 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import baseConfiguration from '@shared-configs/eslint-config-node/typescript';

export default [
{
ignores: [
'dist/',
'dist-for-testing/',
'node_modules/',
'src/blueprints/',
'tests/fixtures/',
'tmp/',
'.*/',
],
},
...baseConfiguration,
{
files: ['**/*.ts'],
rules: {
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
},
},
];
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blueprints-v2-addon",
"version": "0.5.0",
"version": "0.6.0",
"private": true,
"description": "Blueprints for v2 addons",
"keywords": [
Expand Down Expand Up @@ -31,29 +31,29 @@
"lint:js:fix": "eslint . --fix",
"lint:types": "tsc --noEmit",
"test": "./build.sh --test && mt dist-for-testing --quiet",
"update-blueprints": "./update-blueprints.js",
"update-blueprints": "./update-blueprints.mjs",
"update-test-fixtures": "./update-test-fixtures.sh"
},
"dependencies": {
"@codemod-utils/ast-javascript": "^1.2.9",
"@codemod-utils/blueprints": "^1.1.6",
"@codemod-utils/ember": "^2.0.1",
"@codemod-utils/files": "^2.0.5",
"@codemod-utils/json": "^1.1.10",
"@codemod-utils/ast-javascript": "^1.2.13",
"@codemod-utils/blueprints": "^1.1.9",
"@codemod-utils/ember": "^2.0.4",
"@codemod-utils/files": "^2.0.8",
"@codemod-utils/json": "^1.1.14",
"yargs": "^17.7.2"
},
"devDependencies": {
"@codemod-utils/tests": "^1.1.8",
"@codemod-utils/tests": "^1.1.11",
"@shared-configs/eslint-config-node": "workspace:*",
"@shared-configs/prettier": "workspace:*",
"@shared-configs/typescript": "workspace:*",
"@sondr3/minitest": "^0.1.2",
"@types/node": "^18.19.70",
"@types/node": "^18.19.75",
"@types/yargs": "^17.0.33",
"concurrently": "^9.1.2",
"eslint": "^8.57.1",
"eslint": "^9.20.0",
"git-diff-apply": "^6.0.6",
"prettier": "^3.4.2",
"prettier": "^3.5.0",
"typescript": "^5.7.3"
},
"engines": {
Expand Down
1 change: 1 addition & 0 deletions prettier.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@shared-configs/prettier';
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ module('Integration | Component | <%= options.entity.name %>', function (hooks)
setupRenderingTest(hooks);

test('it renders', async function (assert) {
await render(<template>
<<%= options.entity.pascalizedName %> />
</template>);
await render(<template><<%= options.entity.pascalizedName %> /></template>);

assert.dom().hasText('');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ module('Integration | Component | <%= options.entity.name %>', function (hooks)
setupRenderingTest(hooks);

test('it renders', async function (assert) {
await render(hbs`
<<%= options.entity.doubleColonizedName %> />
`);
await render(hbs`<<%= options.entity.doubleColonizedName %> />`);

assert.dom().hasText('');

Expand Down
11 changes: 0 additions & 11 deletions src/blueprints/run-new/__addonLocation__/.eslintignore

This file was deleted.

7 changes: 0 additions & 7 deletions src/blueprints/run-new/__addonLocation__/.eslintrc.js

This file was deleted.

3 changes: 0 additions & 3 deletions src/blueprints/run-new/__addonLocation__/.prettierrc.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/blueprints/run-new/__addonLocation__/.stylelintrc.js

This file was deleted.

1 change: 1 addition & 0 deletions src/blueprints/run-new/__addonLocation__/.stylelintrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@shared-configs/stylelint/css-modules';
1 change: 1 addition & 0 deletions src/blueprints/run-new/__addonLocation__/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@shared-configs/eslint-config-ember/v2-addon';
39 changes: 18 additions & 21 deletions src/blueprints/run-new/__addonLocation__/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,20 @@
"dependencies": {
"@embroider/addon-shim": "^1.9.0",
"decorator-transforms": "^2.3.0",
"embroider-css-modules": "^2.0.12"
"embroider-css-modules": "^2.0.14"
},
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/plugin-transform-typescript": "^7.26.5",
"@babel/runtime": "^7.26.0",
"@ember/test-helpers": "^4.0.4",
"@babel/core": "^7.26.8",
"@babel/plugin-transform-typescript": "^7.26.8",
"@babel/runtime": "^7.26.7",
"@ember/test-helpers": "^4.0.5",
"@embroider/addon-dev": "^7.1.1",
"@glimmer/component": "^2.0.0",
"@glimmer/tracking": "^1.1.2",
"@glint/core": "^1.5.1",
"@glint/environment-ember-loose": "^1.5.1",
"@glint/environment-ember-template-imports": "^1.5.1",
"@glint/template": "^1.5.1",
"@glint/core": "^1.5.2",
"@glint/environment-ember-loose": "^1.5.2",
"@glint/environment-ember-template-imports": "^1.5.2",
"@glint/template": "^1.5.2",
"@rollup/plugin-babel": "^6.0.4",
"@shared-configs/ember-template-lint": "workspace:*",
"@shared-configs/eslint-config-ember": "workspace:*",
Expand All @@ -75,20 +75,20 @@
"blueprints-v2-addon": "workspace:*",
"concurrently": "^9.1.2",
"ember-modifier": "^4.2.0",
"ember-source": "~6.1.0",
"ember-template-lint": "^6.0.0",
"eslint": "^8.57.1",
"postcss": "^8.4.49",
"prettier": "^3.4.2",
"ember-source": "~6.2.0",
"ember-template-lint": "^6.1.0",
"eslint": "^9.20.0",
"postcss": "^8.5.1",
"prettier": "^3.5.0",
"qunit-dom": "^3.4.0",
"rollup": "^4.30.1",
"rollup": "^4.34.6",
"rollup-plugin-postcss": "^4.0.2",
"stylelint": "^16.13.0",
"type-css-modules": "^1.0.14",
"stylelint": "^16.14.1",
"type-css-modules": "^1.0.16",
"typescript": "^5.7.3"
},
"peerDependencies": {
"@ember/test-helpers": "^3.2.0 || ^4.0.0",
"@ember/test-helpers": "^4.0.0 || ^5.0.0",
"qunit-dom": "^3.4.0"
},
"peerDependenciesMeta": {
Expand All @@ -102,9 +102,6 @@
"engines": {
"node": "18.* || >= 20"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"ember": {
"edition": "octane"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@shared-configs/prettier';
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ module('Integration | Component | my-component/glimmer-loose', function (hooks)
setupRenderingTest(hooks);

test('it renders', async function (assert) {
await render(<template>
<MyComponentGlimmerLoose />
</template>);
await render(<template><MyComponentGlimmerLoose /></template>);

assert.dom().hasText('');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ module('Integration | Component | my-component/glimmer-strict', function (hooks)
setupRenderingTest(hooks);

test('it renders', async function (assert) {
await render(<template>
<MyComponentGlimmerStrict />
</template>);
await render(<template><MyComponentGlimmerStrict /></template>);

assert.dom().hasText('');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ module('Integration | Component | my-component/template-only-loose', function (h
setupRenderingTest(hooks);

test('it renders', async function (assert) {
await render(<template>
<MyComponentTemplateOnlyLoose />
</template>);
await render(<template><MyComponentTemplateOnlyLoose /></template>);

assert.dom().hasText('');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ module('Integration | Component | my-component/template-only-strict', function (
setupRenderingTest(hooks);

test('it renders', async function (assert) {
await render(<template>
<MyComponentTemplateOnlyStrict />
</template>);
await render(<template><MyComponentTemplateOnlyStrict /></template>);

assert.dom().hasText('');

Expand Down
11 changes: 0 additions & 11 deletions tests/fixtures/run-new/output/packages/ui/form/.eslintignore

This file was deleted.

7 changes: 0 additions & 7 deletions tests/fixtures/run-new/output/packages/ui/form/.eslintrc.js

This file was deleted.

3 changes: 0 additions & 3 deletions tests/fixtures/run-new/output/packages/ui/form/.prettierrc.js

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@shared-configs/stylelint/css-modules';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@shared-configs/eslint-config-ember/v2-addon';
Loading

0 comments on commit 97a2665

Please sign in to comment.