-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8311af1
commit ec5c015
Showing
23 changed files
with
2,072 additions
and
391 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,21 +1,9 @@ | ||
# unconventional js | ||
/blueprints/*/files/ | ||
/vendor/ | ||
|
||
# compiled output | ||
/dist/ | ||
/tmp/ | ||
|
||
# dependencies | ||
/bower_components/ | ||
/node_modules/ | ||
/declarations/ | ||
|
||
# misc | ||
/coverage/ | ||
!.* | ||
.eslintcache | ||
|
||
# ember-try | ||
/.node_modules.ember-try/ | ||
/bower.json.ember-try | ||
/package.json.ember-try |
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,6 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
plugins: ['prettier-plugin-ember-template-tag'], | ||
singleQuote: true, | ||
}; |
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,5 +1,5 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
singleQuote: true, | ||
extends: 'recommended', | ||
}; |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"plugins": [ | ||
["@babel/plugin-transform-typescript", { "allExtensions": true, "onlyRemoveTypeImports": true, "allowDeclareFields": true }], | ||
"@embroider/addon-dev/template-colocation-plugin", | ||
["babel-plugin-ember-template-compilation", { | ||
"targetFormat": "hbs", | ||
"transforms": [] | ||
}], | ||
["module:decorator-transforms", { "runtime": { "import": "decorator-transforms/runtime" } }] | ||
] | ||
} |
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,142 @@ | ||
/** | ||
* Debugging: | ||
* https://eslint.org/docs/latest/use/configure/debug | ||
* ---------------------------------------------------- | ||
* | ||
* Print a file's calculated configuration | ||
* | ||
* npx eslint --print-config path/to/file.js | ||
* | ||
* Inspecting the config | ||
* | ||
* npx eslint --inspect-config | ||
* | ||
*/ | ||
import globals from 'globals'; | ||
import js from '@eslint/js'; | ||
|
||
import ts from 'typescript-eslint'; | ||
|
||
import ember from 'eslint-plugin-ember/recommended'; | ||
|
||
import prettier from 'eslint-plugin-prettier/recommended'; | ||
import qunit from 'eslint-plugin-qunit'; | ||
import n from 'eslint-plugin-n'; | ||
|
||
import babelParser from '@babel/eslint-parser'; | ||
|
||
const parserOptions = { | ||
esm: { | ||
js: { | ||
ecmaFeatures: { modules: true }, | ||
ecmaVersion: 'latest', | ||
requireConfigFile: false, | ||
babelOptions: { | ||
root: import.meta.dirname, | ||
}, | ||
}, | ||
ts: { | ||
projectService: true, | ||
tsconfigRootDir: import.meta.dirname, | ||
}, | ||
}, | ||
}; | ||
|
||
export default ts.config( | ||
js.configs.recommended, | ||
ember.configs.base, | ||
ember.configs.gjs, | ||
ember.configs.gts, | ||
prettier, | ||
/** | ||
* Ignores must be in their own object | ||
* https://eslint.org/docs/latest/use/configure/ignore | ||
*/ | ||
{ | ||
ignores: [ | ||
'dist/', | ||
'node_modules/', | ||
'coverage/', | ||
'!**/.*', | ||
'vendor/pikaday.js', | ||
], | ||
}, | ||
/** | ||
* https://eslint.org/docs/latest/use/configure/configuration-files#configuring-linter-options | ||
*/ | ||
{ | ||
linterOptions: { | ||
reportUnusedDisableDirectives: 'error', | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.js'], | ||
languageOptions: { | ||
parser: babelParser, | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.{js,gjs}'], | ||
languageOptions: { | ||
parserOptions: parserOptions.esm.js, | ||
globals: { | ||
...globals.browser, | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.{ts,gts}'], | ||
languageOptions: { | ||
parser: ember.parser, | ||
parserOptions: parserOptions.esm.ts, | ||
}, | ||
extends: [...ts.configs.recommendedTypeChecked, ember.configs.gts], | ||
}, | ||
{ | ||
files: ['test-app/tests/**/*-test.{js,gjs,ts,gts}'], | ||
plugins: { | ||
qunit, | ||
}, | ||
}, | ||
/** | ||
* CJS node files | ||
*/ | ||
{ | ||
files: [ | ||
'**/*.cjs', | ||
'test-app/config/**/*.js', | ||
'test-app/ember-cli-build.js', | ||
'test-app/scenarios.js', | ||
'test-app/testem.js', | ||
], | ||
plugins: { | ||
n, | ||
}, | ||
|
||
languageOptions: { | ||
sourceType: 'script', | ||
ecmaVersion: 'latest', | ||
globals: { | ||
...globals.node, | ||
}, | ||
}, | ||
}, | ||
/** | ||
* ESM node files | ||
*/ | ||
{ | ||
files: ['**/*.mjs'], | ||
plugins: { | ||
n, | ||
}, | ||
|
||
languageOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 'latest', | ||
parserOptions: parserOptions.esm.js, | ||
globals: { | ||
...globals.node, | ||
}, | ||
}, | ||
}, | ||
); |
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.