-
Notifications
You must be signed in to change notification settings - Fork 37
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 #1147 from NullVoxPopuli/add-migration-codemod
Add v6 to v7 codemod
- Loading branch information
Showing
22 changed files
with
5,708 additions
and
15 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
'use strict'; | ||
|
||
const { configs } = require('@nullvoxpopuli/eslint-configs'); | ||
|
||
const config = configs.node(); | ||
|
||
module.exports = { | ||
...config, | ||
overrides: [ | ||
...config.overrides, | ||
{ | ||
files: ['**/*'], | ||
rules: { | ||
'n/no-process-exit': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.test.ts'], | ||
rules: { | ||
'n/no-unpublished-import': 'off', | ||
}, | ||
}, | ||
], | ||
}; |
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,30 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
plugins: ['prettier-plugin-ember-template-tag'], | ||
printWidth: 100, | ||
singleQuote: true, | ||
templateSingleQuote: false, | ||
// this was required to make the VSCode + Prettier work correctly with <template>, see https://github.com/gitKrystan/prettier-plugin-ember-template-tag/issues/38 | ||
// we should roll this back once that issue has been fixed! | ||
overrides: [ | ||
{ | ||
files: '*.hbs', | ||
options: { | ||
singleQuote: false, | ||
}, | ||
}, | ||
{ | ||
files: '*.gjs', | ||
options: { | ||
parser: 'ember-template-tag', | ||
}, | ||
}, | ||
{ | ||
files: '*.gts', | ||
options: { | ||
parser: 'ember-template-tag', | ||
}, | ||
}, | ||
], | ||
}; |
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,9 @@ | ||
#!/usr/bin/env node | ||
|
||
import { run } from './src/all.js'; | ||
import { sep, success } from './src/logging.js'; | ||
|
||
await run(); | ||
|
||
sep(); | ||
success(`✨ Done! ✨`); |
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,39 @@ | ||
{ | ||
"name": "ember-resources-codemod", | ||
"version": "0.0.3", | ||
"bin": "./bin.mjs", | ||
"type": "module", | ||
"files": [ | ||
"bin.mjs", | ||
"src" | ||
], | ||
"scripts": { | ||
"lint": "concurrently 'npm:lint:*(!fix)' --names 'lint:'", | ||
"lint:fix": "concurrently 'npm:lint:*:fix' --names 'fix:'", | ||
"lint:js": "eslint . --cache", | ||
"lint:prettier": "prettier --check '**/*.{js,ts}'", | ||
"lint:prettier:fix": "prettier --write '**/*.{js,ts}'", | ||
"lint:js:fix": "eslint . --fix" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.25.2", | ||
"@babel/eslint-parser": "^7.19.1", | ||
"@nullvoxpopuli/eslint-configs": "^3.2.0", | ||
"@tsconfig/node22": "^22.0.0", | ||
"@tsconfig/strictest": "^2.0.5", | ||
"@types/node": "^22.5.4", | ||
"@types/semver": "^7.5.8", | ||
"@typescript-eslint/eslint-plugin": "^6.0.0", | ||
"@typescript-eslint/parser": "^6.0.0", | ||
"concurrently": "^8.2.2", | ||
"eslint": "^8.35.0", | ||
"prettier": "^3.1.1", | ||
"typescript": "~5.5.0", | ||
"vitest": "^2.0.5" | ||
}, | ||
"dependencies": { | ||
"find-up": "^7.0.0", | ||
"globby": "^14.0.0", | ||
"semver": "^7.6.3" | ||
} | ||
} |
Oops, something went wrong.