-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #866 from simonihmig/ember-gts
Migrate Ember component to gts
- Loading branch information
Showing
15 changed files
with
211 additions
and
203 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@responsive-image/ember': patch | ||
--- | ||
|
||
Migrate component to gts format |
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 |
---|---|---|
@@ -0,0 +1,104 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
root: true, | ||
// Only use overrides | ||
// https://github.com/ember-cli/eslint-plugin-ember?tab=readme-ov-file#gtsgjs | ||
overrides: [ | ||
{ | ||
files: ['**/*.js', '**/*.ts'], | ||
env: { browser: true }, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
babelOptions: { | ||
root: __dirname, | ||
}, | ||
}, | ||
plugins: ['ember', 'import'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:ember/recommended', | ||
'plugin:prettier/recommended', | ||
], | ||
rules: { | ||
// require relative imports use full extensions | ||
'import/extensions': ['error', 'always', { ignorePackages: true }], | ||
// Add any custom rules here | ||
}, | ||
}, | ||
// ts files | ||
{ | ||
files: ['**/*.ts'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:ember/recommended', | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:prettier/recommended', | ||
], | ||
rules: { | ||
// require relative imports use full extensions | ||
'import/extensions': ['error', 'always', { ignorePackages: true }], | ||
// Add any custom rules here | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.gts'], | ||
parser: 'ember-eslint-parser', | ||
plugins: ['ember', 'import'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:ember/recommended', | ||
'plugin:ember/recommended-gts', | ||
'plugin:prettier/recommended', | ||
], | ||
rules: { | ||
// require relative imports use full extensions | ||
'import/extensions': ['error', 'always', { ignorePackages: true }], | ||
// Add any custom rules here | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.gjs'], | ||
parser: 'ember-eslint-parser', | ||
plugins: ['ember', 'import'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:ember/recommended', | ||
'plugin:ember/recommended-gjs', | ||
'plugin:prettier/recommended', | ||
], | ||
rules: { | ||
// require relative imports use full extensions | ||
'import/extensions': ['error', 'always', { ignorePackages: true }], | ||
// Add any custom rules here | ||
}, | ||
}, | ||
// node files | ||
{ | ||
files: [ | ||
'./.eslintrc.cjs', | ||
'./.prettierrc.cjs', | ||
'./.template-lintrc.cjs', | ||
'./addon-main.cjs', | ||
], | ||
parserOptions: { | ||
sourceType: 'script', | ||
}, | ||
env: { | ||
browser: false, | ||
node: true, | ||
}, | ||
plugins: ['n'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:n/recommended', | ||
'plugin:prettier/recommended', | ||
], | ||
}, | ||
], | ||
}; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
plugins: ['prettier-plugin-ember-template-tag'], | ||
singleQuote: true, | ||
templateSingleQuote: false, | ||
}; |
File renamed without changes.
File renamed without changes.
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 was deleted.
Oops, something went wrong.
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 @@ | ||
export { default as ResponsiveImage } from './components/responsive-image.ts'; | ||
export { default as ResponsiveImage } from './components/responsive-image.gts'; | ||
export { default as resolve } from './helpers/responsive-image-resolve.ts'; | ||
export type { ImageData } from '@responsive-image/core'; |
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
Oops, something went wrong.