Skip to content

Commit f663389

Browse files
committed
chore: bump @glimmer/component to ^2.0.0
1 parent cd2bdc2 commit f663389

16 files changed

+2552
-1446
lines changed

.eslintignore

Lines changed: 0 additions & 17 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 94 deletions
This file was deleted.

.npmignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
/.ember-cli
88
/.env*
99
/.eslintcache
10-
/.eslintignore
11-
/.eslintrc.js
1210
/.git/
1311
/.github/
1412
/.gitignore
@@ -20,6 +18,7 @@
2018
/.watchmanconfig
2119
/CONTRIBUTING.md
2220
/ember-cli-build.js
21+
/eslint.config.mjs
2322
/testem.js
2423
/tests/
2524
/tsconfig.declarations.json

.prettierignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
/coverage/
99
!.*
1010
.*/
11-
12-
# ember-try
13-
/.node_modules.ember-try/
11+
/pnpm-lock.yaml
12+
ember-cli-update.json
13+
*.html

.prettierrc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
'use strict';
22

33
module.exports = {
4+
plugins: ['prettier-plugin-ember-template-tag'],
45
overrides: [
56
{
6-
files: '*.{js,ts}',
7+
files: '*.{js,gjs,ts,gts,mjs,mts,cjs,cts}',
78
options: {
89
singleQuote: true,
10+
templateSingleQuote: false,
911
},
1012
},
1113
],

.stylelintignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@
33

44
# compiled output
55
/dist/
6-
7-
# addons
8-
/.node_modules.ember-try/

.stylelintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
22

33
module.exports = {
4-
extends: ['stylelint-config-standard', 'stylelint-prettier/recommended'],
4+
extends: ['stylelint-config-standard'],
55
};

.template-lintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ module.exports = {
1414
'no-yield-only': false,
1515
'require-button-type': false,
1616
'require-input-label': false,
17+
'no-at-ember-render-modifiers': false,
18+
'no-builtin-form-components': false
1719
},
1820
};

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ ember-cli-addon-docs
99
Compatibility
1010
------------------------------------------------------------------------------
1111

12-
* Ember.js v4.4 or above
13-
* Ember CLI v4.4 or above
12+
* Ember.js v5.4 or above
13+
* Ember CLI v5.4 or above
1414
* Node.js v18 or above
1515

1616
The original maintainers of AddonDocs have moved on, but this addon is still very much actively maintained and is still being used by many addons.

eslint.config.mjs

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
/**
2+
* Debugging:
3+
* https://eslint.org/docs/latest/use/configure/debug
4+
* ----------------------------------------------------
5+
*
6+
* Print a file's calculated configuration
7+
*
8+
* npx eslint --print-config path/to/file.js
9+
*
10+
* Inspecting the config
11+
*
12+
* npx eslint --inspect-config
13+
*
14+
*/
15+
import globals from 'globals';
16+
import js from '@eslint/js';
17+
18+
import ember from 'eslint-plugin-ember/recommended';
19+
import eslintConfigPrettier from 'eslint-config-prettier';
20+
import qunit from 'eslint-plugin-qunit';
21+
import n from 'eslint-plugin-n';
22+
23+
import babelParser from '@babel/eslint-parser';
24+
25+
const esmParserOptions = {
26+
ecmaFeatures: { modules: true },
27+
ecmaVersion: 'latest',
28+
requireConfigFile: false,
29+
babelOptions: {
30+
plugins: [
31+
['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }],
32+
],
33+
},
34+
};
35+
36+
export default [
37+
js.configs.recommended,
38+
eslintConfigPrettier,
39+
ember.configs.base,
40+
ember.configs.gjs,
41+
/**
42+
* Ignores must be in their own object
43+
* https://eslint.org/docs/latest/use/configure/ignore
44+
*/
45+
{
46+
ignores: ['dist/', 'node_modules/', 'coverage/', '!**/.*', 'test-apps/'],
47+
},
48+
/**
49+
* https://eslint.org/docs/latest/use/configure/configuration-files#configuring-linter-options
50+
*/
51+
{
52+
linterOptions: {
53+
reportUnusedDisableDirectives: 'error',
54+
},
55+
},
56+
{
57+
files: ['**/*.js'],
58+
languageOptions: {
59+
parser: babelParser,
60+
},
61+
},
62+
{
63+
files: ['**/*.{js,gjs}'],
64+
languageOptions: {
65+
parserOptions: esmParserOptions,
66+
globals: {
67+
...globals.browser,
68+
},
69+
},
70+
},
71+
{
72+
files: ['tests/**/*-test.{js,gjs}'],
73+
plugins: {
74+
qunit,
75+
},
76+
},
77+
/**
78+
* CJS node files
79+
*/
80+
{
81+
files: [
82+
'**/*.cjs',
83+
'config/**/*.js',
84+
'tests/dummy/config/**/*.js',
85+
'testem.js',
86+
'testem*.js',
87+
'index.js',
88+
'.prettierrc.js',
89+
'.stylelintrc.js',
90+
'.template-lintrc.js',
91+
'ember-cli-build.js',
92+
],
93+
plugins: {
94+
n,
95+
},
96+
97+
languageOptions: {
98+
sourceType: 'script',
99+
ecmaVersion: 'latest',
100+
globals: {
101+
...globals.node,
102+
},
103+
},
104+
},
105+
/**
106+
* ESM node files
107+
*/
108+
{
109+
files: ['**/*.mjs'],
110+
plugins: {
111+
n,
112+
},
113+
114+
languageOptions: {
115+
sourceType: 'module',
116+
ecmaVersion: 'latest',
117+
parserOptions: esmParserOptions,
118+
globals: {
119+
...globals.node,
120+
},
121+
},
122+
},
123+
];

0 commit comments

Comments
 (0)