mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
add eslint for jspsych package
This commit is contained in:
parent
6e345b8dbd
commit
c039e1465d
22
eslint.config.js
Normal file
22
eslint.config.js
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import eslint from "@eslint/js";
|
||||||
|
import tslint from "typescript-eslint";
|
||||||
|
|
||||||
|
export default tslint.config(
|
||||||
|
{
|
||||||
|
ignores: [
|
||||||
|
"docs/*",
|
||||||
|
"examples/*",
|
||||||
|
"packages/*",
|
||||||
|
"!packages/jspsych",
|
||||||
|
"packages/jspsych/*",
|
||||||
|
"!packages/jspsych/src",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
eslint.configs.recommended,
|
||||||
|
...tslint.configs.recommended,
|
||||||
|
{
|
||||||
|
rules: {
|
||||||
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
);
|
961
package-lock.json
generated
961
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -27,13 +27,18 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@changesets/changelog-github": "^0.4.7",
|
"@changesets/changelog-github": "^0.4.7",
|
||||||
"@changesets/cli": "^2.25.2",
|
"@changesets/cli": "^2.25.2",
|
||||||
|
"@eslint/js": "^9.9.1",
|
||||||
"@jspsych/config": "^1.3.2",
|
"@jspsych/config": "^1.3.2",
|
||||||
|
"@types/eslint__js": "^8.42.3",
|
||||||
|
"eslint": "^9.9.1",
|
||||||
"husky": "^8.0.2",
|
"husky": "^8.0.2",
|
||||||
"import-sort-style-module": "^6.0.0",
|
"import-sort-style-module": "^6.0.0",
|
||||||
"lint-staged": "^13.0.3",
|
"lint-staged": "^13.0.3",
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
"prettier-plugin-import-sort": "^0.0.7",
|
"prettier-plugin-import-sort": "^0.0.7",
|
||||||
"turbo": "^1.6.3"
|
"turbo": "^1.6.3",
|
||||||
|
"typescript": "^5.5.4",
|
||||||
|
"typescript-eslint": "^8.3.0"
|
||||||
},
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"printWidth": 100
|
"printWidth": 100
|
||||||
|
Loading…
Reference in New Issue
Block a user