diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6f969b10..e00db0797 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,8 @@ jobs: - uses: ./.github/actions/pnpm - name: Lint run: pnpm lint + - name: Formatting + run: pnpm format:check build: diff --git a/docs-app/.eslintignore b/docs-app/.eslintignore index 4c20c318b..d474a40bd 100644 --- a/docs-app/.eslintignore +++ b/docs-app/.eslintignore @@ -23,7 +23,3 @@ /package.json.ember-try /package-lock.json.ember-try /yarn.lock.ember-try - -# until we have linting for gts set up -**/*.gts -**/*.gjs diff --git a/docs-app/.eslintrc.cjs b/docs-app/.eslintrc.cjs new file mode 100644 index 000000000..80b9caf93 --- /dev/null +++ b/docs-app/.eslintrc.cjs @@ -0,0 +1,6 @@ +'use strict'; + +const { configs } = require('@nullvoxpopuli/eslint-configs'); + +// accommodates: JS, TS, App, Addon, and V2 Addon +module.exports = configs.ember(); diff --git a/docs-app/.eslintrc.js b/docs-app/.eslintrc.js deleted file mode 100644 index 1467b45a2..000000000 --- a/docs-app/.eslintrc.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -const { configs } = require('@nullvoxpopuli/eslint-configs'); - -// accommodates: JS, TS, App, and Addon -const config = configs.ember(); - -module.exports = { - ...config, - overrides: [ - ...config.overrides, - { - files: ['tailwind.config.js'], - rules: { - // This ESLint plugin does not understand - // package.json#exports - 'node/no-missing-require': 'off', - }, - }, - ], -}; diff --git a/docs-app/.prettierrc.js b/docs-app/.prettierrc.js index 534e6d35a..5ee0a9ca7 100644 --- a/docs-app/.prettierrc.js +++ b/docs-app/.prettierrc.js @@ -1,5 +1,29 @@ 'use strict'; module.exports = { + plugins: ['prettier-plugin-ember-template-tag'], singleQuote: true, + templateSingleQuote: false, + // this was required to make the VSCode + Prettier work correctly with