-
Notifications
You must be signed in to change notification settings - Fork 2
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 #134 from universal-ember/modern-v2-addon--v3-addon
A proper single library -- a v2.1 addon.
- Loading branch information
Showing
145 changed files
with
1,609 additions
and
2,365 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"ignoreRules": ["no-resolution", "cjs-resolves-to-esm"], | ||
"excludeEntrypoints": ["webpack", "vite"] | ||
"ignoreRules": ["no-resolution", "cjs-resolves-to-esm", "internal-resolution-error"], | ||
"excludeEntrypoints": ["private/samples"] | ||
} |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
node_modules/ | ||
declarations/ | ||
dist/ | ||
coverage/ | ||
dist-typedoc/ | ||
*.yaml | ||
*.md | ||
|
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,38 +1,45 @@ | ||
'use strict'; | ||
|
||
const { configs } = require('@nullvoxpopuli/eslint-configs'); | ||
const { configBuilder: emberBuilder } = require('@nullvoxpopuli/eslint-configs/configs/ember'); | ||
const { configBuilder: nodeBuilder } = require('@nullvoxpopuli/eslint-configs/configs/node'); | ||
const { configFor, forFiles } = require('@nullvoxpopuli/eslint-configs/configs/-utils'); | ||
|
||
const node = configs.node(); | ||
const ember = emberBuilder(); | ||
const node = nodeBuilder(); | ||
|
||
module.exports = { | ||
root: true, | ||
overrides: [ | ||
...node.overrides, | ||
{ | ||
files: ['**/*.{ts,js}'], | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.test.{ts,js}'], | ||
rules: { | ||
'n/no-unpublished-import': 'off', | ||
}, | ||
module.exports = configFor([ | ||
// Browser / Runtime | ||
forFiles('src/browser/**/*.{gjs,js}', ember.modules.browser.js), | ||
forFiles('src/browser/**/*.{gts,ts}', ember.modules.browser.ts), | ||
forFiles('**/*.gts', { parser: 'ember-eslint-parser' }), | ||
forFiles('**/*.gjs', { parser: 'ember-eslint-parser' }), | ||
|
||
// Build | ||
forFiles('**/*.cjs', node.commonjs.js), | ||
forFiles('**/*.cts', node.commonjs.ts), | ||
forFiles('src/build/**/*.{js,mjs}', node.modules.js), | ||
forFiles(['src/build/**/*.{ts,mts}', 'src/types.ts'], node.modules.ts), | ||
|
||
// Supporting / internal | ||
forFiles('*.js', node.modules.js), | ||
forFiles('{vite,vitest}.config.ts', node.modules.ts), | ||
|
||
// Overrides | ||
forFiles('*.{gts,ts}', { | ||
rules: { | ||
// huge TODO | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
}, | ||
{ | ||
files: ['**/*.d.ts'], | ||
rules: { | ||
'n/no-unsupported-features/node-builtins': 'off', | ||
'n/no-missing-import': 'off', | ||
}, | ||
}), | ||
forFiles(['**/*.test.ts', '**/*.d.ts'], { | ||
rules: { | ||
'n/no-unpublished-import': 'off', | ||
'n/no-missing-import': 'off', | ||
}, | ||
{ | ||
files: ['src/browser/**/*', '**/*.test.ts', 'src/plugins/markdown-pages/types.ts'], | ||
rules: { | ||
'n/no-unpublished-import': 'off', | ||
'n/no-missing-import': 'off', | ||
}, | ||
}), | ||
forFiles('rollup.config.js', { | ||
rules: { | ||
'no-console': '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
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 |
---|---|---|
|
@@ -3,3 +3,7 @@ dist/ | |
dist-typedoc/ | ||
declarations/ | ||
.turbo/ | ||
|
||
# npm/pnpm/yarn pack output | ||
*.tgz | ||
.eslintcache |
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,8 +1,9 @@ | ||
node_modules/ | ||
coverage/ | ||
declarations/ | ||
dist/ | ||
dist-typedoc/ | ||
*.yaml | ||
*.md | ||
docs-app/ | ||
ui/ | ||
.lint-todo/ |
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
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,9 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2024 | ||
|
||
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: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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 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 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.