-
Notifications
You must be signed in to change notification settings - Fork 11
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
c905078
commit 28e657f
Showing
6 changed files
with
238 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,98 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
overrides: [ | ||
{ | ||
files: ['*.{js,ts,mjs,cjs}'], | ||
plugins: ['ember'], | ||
parser: '@typescript-eslint/parser', | ||
extends: ['eslint:recommended', 'plugin:ember/recommended'], | ||
}, | ||
{ | ||
files: ['*.gts'], | ||
parser: 'ember-eslint-parser', | ||
plugins: ['ember'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:ember/recommended', | ||
'plugin:ember/recommended-gts', | ||
], | ||
}, | ||
{ | ||
files: ['*.gjs'], | ||
parser: 'ember-eslint-parser', | ||
plugins: ['ember'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:ember/recommended', | ||
'plugin:ember/recommended-gjs', | ||
], | ||
}, | ||
// test files | ||
{ | ||
files: ['tests/**/*-test.{js,ts}'], | ||
plugins: ['ember'], | ||
parser: '@typescript-eslint/parser', | ||
extends: ['eslint:recommended', 'plugin:qunit/recommended'], | ||
}, | ||
{ | ||
files: ['tests/**/*-test.{gjs,gts}'], | ||
parser: 'ember-eslint-parser', | ||
plugins: ['ember'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:ember/recommended', | ||
'plugin:ember/recommended-gts', | ||
], | ||
}, | ||
{ | ||
files: ['*.gts', '*.ts'], | ||
plugins: ['no-relative-import-paths'], | ||
settings: { | ||
node: { | ||
tryExtensions: ['.gts', '.ts', '.js', '.module.css', '.css'], | ||
}, | ||
}, | ||
rules: { | ||
'no-relative-import-paths/no-relative-import-paths': [ | ||
'warn', | ||
{ allowSameFolder: true, rootDir: 'app', prefix: 'discord-clone' }, | ||
], | ||
'n/file-extension-in-import': [ | ||
'error', | ||
'always', | ||
{ | ||
'.css': 'always', | ||
'.module.css': 'always', | ||
'.gts': 'never', | ||
'.ts': 'never', | ||
'.js': 'never', | ||
}, | ||
], | ||
}, | ||
}, | ||
|
||
// node files | ||
{ | ||
files: [ | ||
'./.eslintrc.{js,cjs}', | ||
'./.prettierrc.{js,cjs}', | ||
'./.stylelintrc.{js,cjs}', | ||
'./.template-lintrc.{js,cjs}', | ||
'./ember-cli-build.js', | ||
'./testem.js', | ||
'./blueprints/*/index.js', | ||
'./config/**/*.js', | ||
'./lib/*/index.js', | ||
'./server/**/*.js', | ||
'*.mjs', | ||
'*.cjs', | ||
], | ||
env: { | ||
browser: false, | ||
node: true, | ||
}, | ||
extends: ['plugin:n/recommended'], | ||
}, | ||
], | ||
}; |
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,34 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
plugins: ['prettier-plugin-ember-template-tag'], | ||
overrides: [ | ||
{ | ||
files: ['*.js', '*.ts', '*.cjs', '.mjs', '.cts', '.mts', '.cts'], | ||
options: { | ||
singleQuote: true, | ||
trailingComma: 'es5', | ||
}, | ||
}, | ||
{ | ||
files: ['*.json'], | ||
options: { | ||
singleQuote: false, | ||
}, | ||
}, | ||
{ | ||
files: ['*.hbs'], | ||
options: { | ||
singleQuote: false, | ||
}, | ||
}, | ||
{ | ||
files: ['*.gjs', '*.gts'], | ||
options: { | ||
singleQuote: true, | ||
templateSingleQuote: false, | ||
trailingComma: 'es5', | ||
}, | ||
}, | ||
], | ||
}; |
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,46 @@ | ||
{ | ||
"extends": "@tsconfig/ember/tsconfig.json", | ||
"include": [ | ||
"app/**/*", | ||
"tests/**/*", | ||
], | ||
"glint": { | ||
"environment": [ | ||
"ember-loose", | ||
"ember-template-imports" | ||
] | ||
}, | ||
"compilerOptions": { | ||
"allowJs": true, | ||
/** | ||
https://www.typescriptlang.org/tsconfig#noEmitOnError | ||
Do not block emit on TS errors. | ||
*/ | ||
"noEmitOnError": false, | ||
|
||
"declaration": false, | ||
"declarationMap": false, | ||
|
||
/** | ||
https://www.typescriptlang.org/tsconfig#allowImportingTsExtensions | ||
We want our tooling to know how to resolve our custom files so the appropriate plugins | ||
can do the proper transformations on those files. | ||
*/ | ||
"allowImportingTsExtensions": true, | ||
"paths": { | ||
"<%= name %./tests/*": [ | ||
"./tests/*" | ||
], | ||
"<%= naem %./*": [ | ||
"./app/*" | ||
], | ||
"*": [ | ||
"./types/*" | ||
] | ||
}, | ||
"types": [ | ||
"ember-source/types" | ||
] | ||
}, | ||
} |
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