Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,20 @@ export default [
},
},
},
{
files: ['**/*.cjs'],
languageOptions: {
sourceType: 'script',
},
},
{ languageOptions: { globals: globals.node } },
pluginJs.configs.recommended,
eslintConfigPrettier,
{
ignores: ['tests/fixture/*', 'tests/fixture-ts/*', 'files/ember-cli-build.js'],
ignores: [
'tests/fixture/*',
'tests/fixture-ts/*',
'files/ember-cli-build.cjs',
],
},
];
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 1 addition & 10 deletions files/_js_eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,7 @@ export default [
* CJS node files
*/
{
files: [
'**/*.cjs',
'config/**/*.js',
'testem.js',
'testem*.js',
'.prettierrc.js',
'.stylelintrc.js',
'.template-lintrc.js',
'ember-cli-build.js',
],
files: ['**/*.cjs'],
plugins: {
n,
},
Expand Down
11 changes: 1 addition & 10 deletions files/_ts_eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,7 @@ export default ts.config(
* CJS node files
*/
{
files: [
'**/*.cjs',
'config/**/*.js',
'testem.js',
'testem*.js',
'.prettierrc.js',
'.stylelintrc.js',
'.template-lintrc.js',
'ember-cli-build.js',
],
files: ['**/*.cjs'],
plugins: {
n,
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions files/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"description": "Small description for <%= name %> goes here",
"repository": "",
"type": "module",
"license": "MIT",
"author": "",
"directories": {
Expand Down
6 changes: 3 additions & 3 deletions tests/default.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ describe('basic functionality', function () {
});

writeFileSync(
join(project.dir(), 'testem-dev.js'),
join(project.dir(), 'testem-dev.cjs'),
`module.exports = {
test_page: 'tests/index.html?hidepassed',
disable_watching: true,
Expand All @@ -115,7 +115,7 @@ describe('basic functionality', function () {
},
},
middleware: [
require(__dirname + '/testem-proxy.js')('${appURL}')
require(__dirname + '/testem-proxy.cjs')('${appURL}')
],
};
`,
Expand All @@ -124,7 +124,7 @@ describe('basic functionality', function () {
let testResult = await project.execa('pnpm', [
'testem',
'--file',
'testem-dev.js',
'testem-dev.cjs',
'ci',
]);
expect(testResult.exitCode).to.eq(0, testResult.output);
Expand Down
File renamed without changes.
File renamed without changes.