-
Notifications
You must be signed in to change notification settings - Fork 27
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 #7678 from jrjohnson/lint-from-packages
Move linting into workspaces
- Loading branch information
Showing
41 changed files
with
909 additions
and
483 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,14 +3,12 @@ | |
"license": "MIT", | ||
"author": "The Ilios Team ([email protected])", | ||
"scripts": { | ||
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", | ||
"lint:css": "stylelint \"**/*.scss\"", | ||
"lint:css:fix": "stylelint \"**/*.scss\" --fix", | ||
"lint:hbs": "ember-template-lint .", | ||
"lint:hbs:fix": "ember-template-lint . --fix", | ||
"lint:js": "eslint . --cache", | ||
"lint:js:fix": "eslint . --fix", | ||
"preinstall": "npx only-allow pnpm", | ||
"lint": "pnpm run --parallel /^lint:.*/", | ||
"lint:js": "pnpm run --parallel lint:js", | ||
"lint:hbs": "pnpm run --parallel lint:hbs", | ||
"lint:css": "pnpm run --parallel lint:css", | ||
"lint:fix": "pnpm run --parallel lint:fix", | ||
"start": "pnpm --filter frontend exec ember serve", | ||
"start:lti-course-manager": "pnpm --filter lti-course-manager exec ember serve", | ||
"start:lti-dashboard": "pnpm --filter lti-dashboard exec ember serve", | ||
|
@@ -20,25 +18,6 @@ | |
"test:lti-dashboard": "pnpm run --filter lti-dashboard test", | ||
"test:test-app": "pnpm run --filter test-app test" | ||
}, | ||
"devDependencies": { | ||
"@babel/eslint-parser": "7.23.3", | ||
"@babel/plugin-proposal-decorators": "^7.23.6", | ||
"concurrently": "^8.2.2", | ||
"ember-template-lint": "^5.13.0", | ||
"eslint": "^8.57.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-ember": "^12.0.0", | ||
"eslint-plugin-n": "^16.4.0", | ||
"eslint-plugin-prettier": "^5.0.1", | ||
"eslint-plugin-qunit": "^8.0.1", | ||
"eslint-plugin-yml": "^1.12.2", | ||
"prettier": "^3.1.1", | ||
"stylelint": "^15.11.0", | ||
"stylelint-config-recommended-scss": "^13.0.0", | ||
"stylelint-config-standard": "^34.0.0", | ||
"stylelint-prettier": "^4.1.0", | ||
"stylelint-scss": "^5.0.0" | ||
}, | ||
"engines": { | ||
"node": ">= 20", | ||
"yarn": "use pnpm", | ||
|
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,13 @@ | ||
# unconventional js | ||
/blueprints/*/files/ | ||
|
||
# compiled output | ||
/dist/ | ||
|
||
# misc | ||
/coverage/ | ||
!.* | ||
.*/ | ||
|
||
# ember-try | ||
/.node_modules.ember-try/ |
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,8 @@ | ||
# unconventional files | ||
/blueprints/*/files/ | ||
|
||
# compiled output | ||
/dist/ | ||
|
||
# addons | ||
/.node_modules.ember-try/ |
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# unconventional js | ||
/blueprints/*/files/ | ||
|
||
# compiled output | ||
/dist/ | ||
|
||
# misc | ||
/coverage/ | ||
!.* | ||
.*/ | ||
|
||
# ember-try | ||
/.node_modules.ember-try/ |
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,53 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
root: true, | ||
parser: '@babel/eslint-parser', | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
requireConfigFile: false, | ||
babelOptions: { | ||
plugins: [['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }]], | ||
}, | ||
}, | ||
plugins: ['ember'], | ||
extends: ['eslint:recommended', 'plugin:ember/recommended', 'plugin:prettier/recommended'], | ||
env: { | ||
browser: true, | ||
}, | ||
rules: { | ||
'ember/no-get': 0, | ||
'ember/no-runloop': 0, | ||
}, | ||
overrides: [ | ||
// node files | ||
{ | ||
files: [ | ||
'./.eslintrc.js', | ||
'./.prettierrc.js', | ||
'./.stylelintrc.js', | ||
'./.template-lintrc.js', | ||
'./ember-cli-build.js', | ||
'./index.js', | ||
'./testem.js', | ||
'./blueprints/*/index.js', | ||
'./config/**/*.js', | ||
'./tests/dummy/config/**/*.js', | ||
], | ||
parserOptions: { | ||
sourceType: 'script', | ||
}, | ||
env: { | ||
browser: false, | ||
node: true, | ||
}, | ||
extends: ['plugin:n/recommended'], | ||
}, | ||
{ | ||
// test files | ||
files: ['tests/**/*-test.{js,ts}'], | ||
extends: ['plugin:qunit/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,13 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
overrides: [ | ||
{ | ||
files: '*.{js,ts}', | ||
options: { | ||
singleQuote: true, | ||
printWidth: 100, | ||
}, | ||
}, | ||
], | ||
}; |
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,8 @@ | ||
# unconventional files | ||
/blueprints/*/files/ | ||
|
||
# compiled output | ||
/dist/ | ||
|
||
# addons | ||
/.node_modules.ember-try/ |
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,8 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
extends: ['stylelint-config-recommended-scss', 'stylelint-prettier/recommended'], | ||
rules: { | ||
'property-disallowed-list': ['font-size', 'line-height'], | ||
}, | ||
}; |
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,11 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
extends: 'recommended', | ||
rules: { | ||
'no-implicit-this': { | ||
//our helpers which do not take arguments have to be listed here | ||
allow: ['browser-timezone', 'noop'], | ||
}, | ||
}, | ||
}; |
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.