|
1 | 1 | { |
2 | 2 | "private": true, |
3 | | - "workspaces": [ |
4 | | - "src/*/assets" |
5 | | - ], |
| 3 | + "workspaces": ["src/*/assets"], |
6 | 4 | "scripts": { |
7 | 5 | "build": "node bin/build_javascript.js && node bin/build_styles.js", |
8 | 6 | "test": "bin/run-vitest-all.sh", |
9 | | - "lint": "yarn workspaces run eslint src test", |
10 | | - "format": "prettier src/*/assets/src/*.ts src/*/assets/test/*.js {,src/*/}*.{json,md} --write", |
11 | | - "check-lint": "yarn lint --no-fix", |
12 | | - "check-format": "yarn format --no-write --check" |
| 7 | + "lint": "yarn workspaces run biome lint src test --apply", |
| 8 | + "format": "biome format src/*/assets/src/*.ts src/*/assets/test/*.js {,src/*/}*.{json,md} --write", |
| 9 | + "check-lint": "yarn workspaces run biome lint src test", |
| 10 | + "check-format": "biome format src/*/assets/src/*.ts src/*/assets/test/*.js {,src/*/}*.{json,md}" |
13 | 11 | }, |
14 | 12 | "devDependencies": { |
15 | 13 | "@babel/core": "^7.15.8", |
16 | 14 | "@babel/preset-env": "^7.15.8", |
17 | 15 | "@babel/preset-react": "^7.15.8", |
18 | 16 | "@babel/preset-typescript": "^7.15.8", |
| 17 | + "@biomejs/biome": "^1.7.3", |
19 | 18 | "@rollup/plugin-commonjs": "^23.0.0", |
20 | 19 | "@rollup/plugin-node-resolve": "^15.0.0", |
21 | 20 | "@rollup/plugin-typescript": "^10.0.0", |
22 | 21 | "@symfony/stimulus-testing": "^2.0.1", |
23 | | - "@typescript-eslint/eslint-plugin": "^5.2.0", |
24 | | - "@typescript-eslint/parser": "^5.2.0", |
25 | 22 | "clean-css-cli": "^5.6.2", |
26 | | - "eslint": "^8.1.0", |
27 | | - "eslint-config-prettier": "^8.0.0", |
28 | | - "prettier": "^2.2.1", |
29 | 23 | "rollup": "^3.7.0", |
30 | 24 | "tslib": "^2.3.1", |
31 | 25 | "typescript": "^4.4.4", |
32 | 26 | "vitest": "^0.34.6" |
33 | | - }, |
34 | | - "eslintConfig": { |
35 | | - "root": true, |
36 | | - "parser": "@typescript-eslint/parser", |
37 | | - "plugins": [ |
38 | | - "@typescript-eslint" |
39 | | - ], |
40 | | - "extends": [ |
41 | | - "eslint:recommended", |
42 | | - "prettier", |
43 | | - "plugin:@typescript-eslint/eslint-recommended", |
44 | | - "plugin:@typescript-eslint/recommended" |
45 | | - ], |
46 | | - "rules": { |
47 | | - "@typescript-eslint/no-explicit-any": "off", |
48 | | - "@typescript-eslint/no-empty-function": "off", |
49 | | - "@typescript-eslint/ban-ts-comment": "off", |
50 | | - "quotes": [ |
51 | | - "error", |
52 | | - "single" |
53 | | - ] |
54 | | - }, |
55 | | - "env": { |
56 | | - "browser": true |
57 | | - }, |
58 | | - "overrides": [ |
59 | | - { |
60 | | - "files": [ |
61 | | - "src/*/assets/test/**/*.ts" |
62 | | - ] |
63 | | - } |
64 | | - ] |
65 | | - }, |
66 | | - "prettier": { |
67 | | - "printWidth": 120, |
68 | | - "trailingComma": "es5", |
69 | | - "tabWidth": 4, |
70 | | - "bracketSameLine": true, |
71 | | - "singleQuote": true |
72 | 27 | } |
73 | 28 | } |
0 commit comments