Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
32ddab4
Move handbook; remove ember-cli-addon-docs
fabmiz Mar 20, 2021
c61d5cb
Remove ember-oo-modifier; use ember-modifier; remove array helper
fabmiz Mar 22, 2021
2955c84
ember-cli-update to 3.20 lts
fabmiz Mar 25, 2021
bb11026
Silence type check error for now
fabmiz Mar 25, 2021
8879072
Upgrade ember-composable-helpers; fix conflict with ember's array helper
fabmiz Mar 24, 2021
28b7635
Upgrade ember-basic-dropdown #in-element deprecation
fabmiz Mar 16, 2021
a0cc78f
Upgrade ember-boostrap, ember-powerselect [deprecation id: glimmer.pr…
fabmiz Mar 16, 2021
2019d78
Upgrade ember-page-title [deprecation id: glimmer.private-in-element]
fabmiz Mar 16, 2021
c76705a
Upgrade ember-cli-meta-tags [deprecation id: glimmer.private-in-element]
fabmiz Mar 16, 2021
0da835f
Upgrade ember-cli-mirage to v2
fabmiz Mar 15, 2021
98b5555
Upgrade ember-intl
fabmiz Mar 16, 2021
b0fdb71
Remove unused ember-youtube addon
fabmiz Mar 24, 2021
7077163
Add ember-cli-deprecation-workflow
fabmiz Mar 25, 2021
37cb6e5
Upgrade ember-cli-typescript@latest
fabmiz Mar 25, 2021
3747967
Turn on skipLibCheck ¯\_(ツ)_/¯
fabmiz Mar 25, 2021
bf4b5e3
Remove defaultTo usage
fabmiz Mar 25, 2021
d681cd6
Fix broke types
fabmiz Mar 25, 2021
4984323
Upgrade ember-changeset; ember-changeset-validations; TODO: merge new…
fabmiz Mar 20, 2021
5666b56
Include/re-map app-components, config files; exclude handbook-docs
fabmiz Mar 25, 2021
cddcf79
Upgrade ember-qunit v5
fabmiz Mar 26, 2021
fd10ec6
Upgrade ec to v2; remove ember-concurrency-decorators
fabmiz Mar 29, 2021
1564cb0
ec-async, ec-ts, remove ec-test-waiter
fabmiz Mar 30, 2021
263c9c9
Include config files
fabmiz Apr 6, 2021
7283b27
Import hbs helper from ember-cli-htmlbars
fabmiz Apr 8, 2021
6dff433
Declare ec-async as a dependency in in-repo-addon/engine package.json
fabmiz Apr 8, 2021
d748d96
Use @ember/test-waiters waitFor
fabmiz Apr 8, 2021
21f6295
ember-bootstrap: remove use of ember-boostrap 3.x deprecated arguments
fabmiz Apr 9, 2021
c201178
ember-bootstrap: remove osf-button component
fabmiz Apr 9, 2021
f8f861b
Pin dropzone.js to 5.5.1
fabmiz Apr 16, 2021
61699bf
Fix tests
fabmiz Apr 16, 2021
3745b95
Fix use-ember-data-rfc-395-imports
fabmiz Apr 19, 2021
e22f310
Fix more eslint errors with --fix flag
fabmiz Apr 19, 2021
6fc213c
Fix more eslint errors
fabmiz Apr 19, 2021
03c77ac
Fix use-ember-data-rfc-395-imports: part 2
fabmiz Apr 20, 2021
7e2ea65
Revert/Defer converting DS.PromiseObject,PromiseManyArray usage
fabmiz Apr 21, 2021
e1c31b7
Run tslint-to-eslint & add plugins
fabmiz Apr 22, 2021
0d29a4c
Remove tslint plugins; tslint.json config
fabmiz Apr 22, 2021
4cd4861
Remove @typescript-eslint/eslint-plugin-tslint
fabmiz Apr 22, 2021
2d7d0e0
Add node/js file overrides; off some rules
fabmiz Apr 22, 2021
4d42490
Fix .js linting errors
fabmiz Apr 22, 2021
22bb87d
Fix @typescript-eslint/no-inferrable-types
fabmiz Apr 22, 2021
38adb7e
Fix remaining ts linting errors
fabmiz Apr 23, 2021
a2d1ce3
Remove ember-data types; use @ember-data types
fabmiz Apr 26, 2021
4c8bb94
Fix typecheck errors
fabmiz Apr 26, 2021
6a1aca9
Run codemods
fabmiz Apr 26, 2021
b09f604
Bump to latest stable v3.26 via ember-cli-update
fabmiz Apr 26, 2021
7c03128
Fix linting errors in tests
fabmiz Apr 27, 2021
30fac89
Bump ember-engines to latest
fabmiz Apr 28, 2021
fad21f8
Fix acceptance tests; Use router service instead of route._router
fabmiz Apr 28, 2021
6505b5b
Catch and silence deprecations
fabmiz Apr 28, 2021
22ae445
Fix tests; silence deprecations
fabmiz May 4, 2021
9116fbd
Fix issues with nodelicense validations
fabmiz May 4, 2021
3a78804
Rename hbs lint script
fabmiz May 4, 2021
4eeec6b
Off some ember:recommended rules for now
fabmiz May 4, 2021
8613a25
Fix template lint errors; off some rules for now
fabmiz May 5, 2021
13ca1a0
Do not lint blueprints files
fabmiz May 6, 2021
2a19d63
Refactor license validations; update tests
fabmiz May 6, 2021
ed096eb
Fix tests and linting errors
fabmiz May 6, 2021
7b3af76
Lint node files according to ecmaVersion 2018
fabmiz May 6, 2021
80bf286
Update CI workflow
fabmiz May 6, 2021
9a717e0
Async new tasks
fabmiz May 7, 2021
86a6748
Fix bad import
fabmiz May 10, 2021
530333a
rm -f yarn.lock && re-yarn
fabmiz May 10, 2021
219be05
Fix linting errors
fabmiz May 10, 2021
2946087
Upgrade ember-cli-babel to latest
fabmiz May 10, 2021
8386c80
Add && turn on CI (process.env.CI) flag
fabmiz May 10, 2021
8a1e388
Fix node linting error
fabmiz May 10, 2021
f5ba711
yarn install w/o --prefer-offline
fabmiz May 10, 2021
abedc39
Add re-exports to fix collisions btn .js and .ts
fabmiz May 10, 2021
175304a
Do not target IE 11 in prod or CI
fabmiz May 12, 2021
ac9782f
Refresh yarn.lock
fabmiz May 12, 2021
5355a86
debug: do fresh install; do not cache node modules
fabmiz May 12, 2021
d35cd27
Fix workflow file
fabmiz May 12, 2021
7a81131
Add workaround to allow invalidating node_modules caches upon ember u…
fabmiz May 12, 2021
3531327
Remove outdated assert
fabmiz May 12, 2021
497f085
Address CR comments
fabmiz May 14, 2021
dae261d
Remove use of DS.Promise*
fabmiz May 17, 2021
660e18e
Fix some types
fabmiz May 17, 2021
aa163d1
Fix osf-navbar bc ember-bootstrap upgrade
fabmiz May 18, 2021
b384fb1
Merge latest develop; fix conflicts
fabmiz May 18, 2021
2e6bcc6
Remove extra import
fabmiz May 18, 2021
b722a47
Fix probabilistic failing test
fabmiz May 19, 2021
ded3b1d
percy: fix registration stage dropdown
fabmiz May 19, 2021
037371a
chore: fix missing social media fa icons
fabmiz May 19, 2021
8b2dec0
Do not use double single quotes inside html tags
fabmiz May 19, 2021
73923ff
percy: Fix status-banner css
fabmiz May 20, 2021
60b87f8
Respond to CR
fabmiz May 21, 2021
5cc249b
Fix linting errors
fabmiz May 24, 2021
26f227d
percy: fix missing navbar
fabmiz May 25, 2021
019fb6f
Fix ready service tests
fabmiz May 25, 2021
f67fb1f
Fix ready service tests
fabmiz May 25, 2021
aaec782
Fix institution carousel
fabmiz May 27, 2021
66e7eba
percy: Fix responsive-dropdown usage
fabmiz May 27, 2021
f3db489
percy: fix osf-dropdown auth-dropdown
fabmiz May 27, 2021
afaaddb
percy: fix connected emails form
fabmiz May 27, 2021
9835159
Merge branch 'develop' into ember-24-lts
fabmiz May 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
34 changes: 25 additions & 9 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
!.eslintrc.js
!.template-lintrc.js
/coverage/**
/dist/**
/docs/**
/tmp/**
/vendor/**
/blueprints/*/files/**
/blueprints/*/engine-files/**
# unconventional js
/blueprints/*/files/
/blueprints/*/engine-files/
/node-tests/fixtures/blueprints/
/vendor/
/config/local.js
/handbook-docs/
/docs/

# compiled output
/dist/
/tmp/

# dependencies
/bower_components/
/node_modules/

# misc
/coverage/
!.*
.eslintcache

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
289 changes: 267 additions & 22 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,234 @@
'use strict';

module.exports = {
globals: {
server: true,
},
root: true,
env: {
browser: true,
es6: true,
},
extends: [
'eslint:recommended',
'plugin:ember/recommended',
'plugin:@typescript-eslint/recommended',
// 'ember-concurrency', TODO: turn on ember-concurrency rules and fix errors.
// 'eslint-plugin-qunit', TODO: add eslint-plugin-qunit
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2017,
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
legacyDecorators: true,
},
},
extends: '@centerforopenscience/eslint-config/ember',
plugins: [
'ember',
'@typescript-eslint',
'eslint-plugin-import',
],
env: {
browser: true,
es6: true,
},
rules: {
'arrow-parens': ['error', 'as-needed'],
'class-methods-use-this': 'off',
'@typescript-eslint/array-type': [
'error',
{
default: 'array-simple',
},
],
'@typescript-eslint/consistent-type-assertions': 'error',
'@typescript-eslint/consistent-type-definitions': 'error',
'@typescript-eslint/member-delimiter-style': [
'error',
{
overrides: {
interface: {
multiline: {
delimiter: 'semi',
requireLast: true,
},
singleline: {
delimiter: 'semi',
requireLast: false,
},
},
typeLiteral: {
multiline: {
delimiter: 'comma',
requireLast: true,
},
singleline: {
delimiter: 'comma',
requireLast: false,
},
},
},
},
],
'@typescript-eslint/ban-ts-comment': [
'error',
{
'ts-ignore': 'allow-with-description',
},
],
'@typescript-eslint/no-shadow': [
'error',
{
hoist: 'all',
},
],
'@typescript-eslint/no-unused-expressions': 'error',
'@typescript-eslint/no-empty-function': 'error',
'@typescript-eslint/prefer-for-of': 'error',
'@typescript-eslint/prefer-function-type': 'error',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/quotes': [
'error',
'single',
{
avoidEscape: true,
},
],
'@typescript-eslint/semi': [
'error',
'always',
],
'@typescript-eslint/triple-slash-reference': [
'error',
{
path: 'always',
types: 'prefer-import',
lib: 'always',
},
],
'@typescript-eslint/unified-signatures': 'error',
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/indent': [
'off', // currently broken: https://github.com/typescript-eslint/typescript-eslint/issues/1824
4,
{
FunctionDeclaration: {
parameters: 'first',
},
FunctionExpression: {
parameters: 'first',
},
},
],
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/member-ordering': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-parameter-properties': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/prefer-optional-chain': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
// ember
'ember/new-module-imports': 'error',
'ember/no-attrs-in-components': 'error',
'ember/no-old-shims': 'error',
'ember/no-private-routing-service': 'error',
'ember/use-ember-data-rfc-395-imports': 'off',
'ember/no-test-support-import': 'off',
'ember/no-jquery': 'off',
'ember/named-functions-in-promises': 'off',
'ember/routes-segments-snake-case': 'off',
'ember/no-classic-components': 'off',
'ember/require-tagless-components': 'off',
'ember/require-super-in-lifecycle-hooks': 'off',
'ember/no-component-lifecycle-hooks': 'off',
'ember/no-computed-properties-in-native-classes': 'off',
'ember/classic-decorator-hooks': 'off',
'ember/classic-decorator-no-classic-methods': 'off',
'ember/no-classic-classes': 'off',
'ember/no-get': 'off',
'ember/no-controller-access-in-routes': 'off',
'ember/no-assignment-of-untracked-properties-used-in-tracking-contexts': 'off',
// ember-concurrency
'ember-concurrency/no-perform-without-catch': 'off',
'ember-concurrency/require-task-name-suffix': 'off',
'ember-concurrency/no-native-promise-helpers': 'off',
'arrow-body-style': 'error',
'arrow-parens': [
'error',
'as-needed',
],
'brace-style': [
'error',
'1tbs',
],
'comma-dangle': [
'error',
'always-multiline',
],
'constructor-super': 'error',
curly: 'error',
'eol-last': 'error',
eqeqeq: [
'error',
'smart',
],
'guard-for-in': 'error',
'id-denylist': [
'error',
'any',
'Number',
'number',
'String',
'string',
'Boolean',
'boolean',
'Undefined',
'undefined',
],
'id-match': 'error',
'import/order': 'error',
'max-len': ['error', { code: 120 }],
strict: 'off',
'new-parens': 'error',
'no-bitwise': 'error',
'no-caller': 'error',
'no-cond-assign': 'error',
'no-console': 'error',
'no-debugger': 'error',
'no-empty': 'error',
'no-eval': 'error',
'no-multiple-empty-lines': 'error',
'no-new-wrappers': 'error',
'no-throw-literal': 'error',
'no-trailing-spaces': 'error',
'no-undef-init': 'error',
'no-unsafe-finally': 'error',
'no-unused-labels': 'error',
'no-var': 'error',
'object-shorthand': 'error',
'one-var': [
'error',
'never',
],
'prefer-const': 'error',
'quote-props': [
'error',
'as-needed',
],
radix: 'error',
'spaced-comment': [
'error',
'always',
{
markers: [
'/',
],
},
],
'use-isnan': 'error',
'max-classes-per-file': 'off',
complexity: 'off',
'no-fallthrough': 'off',
'no-invalid-this': 'off',
'valid-typeof': 'off',
// old rules
indent: ['error', 4],
'function-paren-newline': ['error', 'consistent'],
'prefer-rest-params': 'error',
'generator-star-spacing': ['error', 'before'],
Expand All @@ -32,29 +238,25 @@ module.exports = {
ImportDeclaration: { multiline: true, consistent: true },
ExportDeclaration: { multiline: true, consistent: true },
}],
'ember/named-functions-in-promises': 'off',
'ember/new-module-imports': 'error',
'ember/no-attrs-in-components': 'error',
'ember/no-old-shims': 'error',
'ember/routes-segments-snake-case': 'off',
'import/export': 'off',
'import/prefer-default-export': 'off',
'no-restricted-globals': 'off',
'space-before-function-paren': ['error', {
anonymous: 'never',
named: 'never',
asyncArrow: 'always',
}],
'no-underscore-dangle': 'off',
'linebreak-style': ['error', (process.platform === 'win32' ? 'windows' : 'unix')],
strict: 'off',
'class-methods-use-this': 'off',
'import/export': 'off',
'import/prefer-default-export': 'off',
'no-restricted-globals': 'off',
'no-underscore-dangle': 'off',
'lines-between-class-members': 'off',
},
overrides: [
{
files: ['**/config/environment.d.ts'],
rules: {
indent: 'off',
'indent-legacy': 'error',
},
},
{
Expand All @@ -71,7 +273,11 @@ module.exports = {
rules: {
'no-useless-constructor': 'off',
'space-infix-ops': 'off',
'no-shadow': 'off',
'max-len': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/member-ordering': 'off',
'@typescript-eslint/no-shadow': 'off',
},
},
{
Expand All @@ -98,6 +304,7 @@ module.exports = {
files: ['lib/*/index.js'],
rules: {
'ember/avoid-leaking-state-in-ember-objects': 'off',
'@typescript-eslint/no-var-requires': 'off',
},
},
{
Expand All @@ -106,6 +313,44 @@ module.exports = {
'ember/avoid-leaking-state-in-ember-objects': 'off',
},
},
{
files: [
'.eslintrc.js',
'.prettierrc.js',
'.template-lintrc.js',
'ember-cli-build.js',
'testem.js',
'run-node-test.js',
'lib/**/environment.js',
'lib/**/index.js',
'blueprints/*/index.js',
'blueprints/**/*.js',
'node-tests/**/*.js',
'config/**/*.js',
],
parserOptions: {
sourceType: 'script',
ecmaVersion: 2018,
},
env: {
browser: false,
node: true,
},
plugins: ['node'],
extends: ['plugin:node/recommended'],
rules: {
'no-undef': 'off',
'id-denylist': 'off',
'node/no-unpublished-require': 'off',
'node/no-extraneous-require': 'off',
'node/no-unsupported-features/es-syntax': 'off',
'node/no-missing-import': 'off',
'ember/no-string-prototype-extensions': 'off',
'ember/no-classic-classes': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
},
],
settings: {
'import/extensions': ['error', 'never'],
Expand Down
Loading