|
1 | 1 | {
|
2 | 2 | "private": true,
|
3 | 3 | "scripts": {
|
4 |
| - "build": "yarn run clean && lerna exec --scope '@create-figma-plugin/{build,common}' --scope create-figma-plugin 'babel src --copy-files --delete-dir-on-start --out-dir lib --root-mode upward'", |
| 4 | + "build": "lerna run build --ignore @create-figma-plugin/ui", |
5 | 5 | "bump": "node scripts/bump-dependencies.js",
|
6 |
| - "clean": "rimraf .nyc_output '*.log' 'packages/*/lib' 'packages/**/fixtures/**/{build,figma-plugin,manifest.json,node_modules}' 'packages/create-figma-plugin/{docs,README.md}' packages/ui/build", |
| 6 | + "clean": "rimraf .nyc_output '*.log' 'packages/*/{lib,tsconfig.tsbuildinfo}' 'packages/**/fixtures/**/{build,figma-plugin,manifest.json,node_modules}' 'packages/create-figma-plugin/{docs,README.md}' packages/ui/build", |
7 | 7 | "coverage": "yarn run build && nyc --exclude 'packages/*/lib' -- ava",
|
8 | 8 | "docs": "node scripts/insert-toc.js",
|
9 |
| - "fix": "concurrently --raw 'yarn run fix-css' 'yarn run fix-js'", |
10 |
| - "fix-css": "prettier --write 'packages/*/src/**/*.scss'", |
11 |
| - "fix-js": "prettier-standard '*.js' 'scripts/**/*.js' 'packages/*/{.storybook,src,test}/**/*.js'", |
12 |
| - "lint": "concurrently --raw 'yarn run lint-css' 'yarn run lint-js'", |
13 |
| - "lint-css": "stylelint 'packages/*/src/**/*.scss'", |
14 |
| - "lint-js": "standardx '*.js' 'scripts/**/*.js' 'packages/*/{.storybook,src,test}/**/*.js'", |
| 9 | + "fix": "prettier-standard 'scripts/**/*.js' 'packages/*/{.storybook,src,test}/**/*.ts' && prettier --write '*.json' 'packages/*/*.json' 'packages/*/src/**/*.scss'", |
| 10 | + "lint": "standardx 'scripts/**/*.js' 'packages/*/{.storybook,src,test}/**/*.ts' && stylelint 'packages/*/src/**/*.scss'", |
15 | 11 | "postinstall": "yarn run build",
|
16 | 12 | "publish": "yarn run build && cpy 'docs/**/*.md' README.md packages/create-figma-plugin --parents && lerna publish from-package",
|
17 | 13 | "reset": "yarn run clean && lerna clean --yes && rimraf yarn.lock node_modules 'packages/*/node_modules' && yarn install && yarn run build",
|
|
20 | 16 | "watch": "chokidar '*.js' 'packages/*/src/**/*.js' --command 'yarn build' --initial --silent"
|
21 | 17 | },
|
22 | 18 | "devDependencies": {
|
23 |
| - "@babel/cli": "^7.8.4", |
24 |
| - "@babel/core": "^7.9.6", |
25 |
| - "@babel/plugin-transform-modules-commonjs": "^7.9.6", |
26 |
| - "@babel/plugin-transform-react-jsx": "^7.9.4", |
27 | 19 | "@figma/plugin-typings": "^1.15.0",
|
28 | 20 | "@storybook/addon-storysource": "^5.3.18",
|
29 | 21 | "@storybook/preact": "^5.3.18",
|
30 | 22 | "@storybook/source-loader": "^5.3.18",
|
31 | 23 | "@storybook/storybook-deployer": "^2.8.5",
|
| 24 | + "@typescript-eslint/eslint-plugin": "^2.31.0", |
| 25 | + "@typescript-eslint/parser": "^2.31.0", |
32 | 26 | "ava": "^3.8.1",
|
33 |
| - "babel-loader": "^8.1.0", |
34 |
| - "babel-plugin-require-context-hook": "^1.0.0", |
35 | 27 | "chokidar-cli": "^2.1.0",
|
36 |
| - "concurrently": "^5.2.0", |
37 | 28 | "cpy-cli": "^3.1.0",
|
38 | 29 | "eslint-plugin-react-hooks": "^4.0.0",
|
39 | 30 | "esm": "^3.2.25",
|
|
53 | 44 | "standardx": "^5.0.0",
|
54 | 45 | "stylelint": "^13.3.3",
|
55 | 46 | "stylelint-config-prettier": "^8.0.1",
|
56 |
| - "stylelint-prettier": "^1.1.2" |
| 47 | + "stylelint-prettier": "^1.1.2", |
| 48 | + "typescript": "^3.8.3", |
| 49 | + "typescript-plugin-css-modules": "^2.3.0" |
57 | 50 | },
|
58 | 51 | "ava": {
|
59 | 52 | "files": [
|
60 | 53 | "packages/*/test/**/*.js",
|
61 | 54 | "!**/fixtures/**"
|
62 | 55 | ],
|
63 | 56 | "require": [
|
64 |
| - "esm", |
65 |
| - "./packages/common/src/silence-logging.js" |
| 57 | + "esm" |
66 | 58 | ],
|
67 | 59 | "timeout": "30s",
|
68 | 60 | "verbose": true
|
|
77 | 69 | "rules": {
|
78 | 70 | "indent": "off",
|
79 | 71 | "no-console": "error",
|
| 72 | + "no-unused-vars": "off", |
| 73 | + "@typescript-eslint/no-unused-vars": "error", |
80 | 74 | "react-hooks/rules-of-hooks": "error",
|
81 | 75 | "react-hooks/exhaustive-deps": "warn"
|
82 | 76 | }
|
|
96 | 90 | "prettier"
|
97 | 91 | ]
|
98 | 92 | },
|
| 93 | + "standardx": { |
| 94 | + "parser": "@typescript-eslint/parser", |
| 95 | + "plugins": [ |
| 96 | + "@typescript-eslint/eslint-plugin" |
| 97 | + ] |
| 98 | + }, |
99 | 99 | "stylelint": {
|
100 | 100 | "extends": [
|
101 | 101 | "stylelint-prettier/recommended"
|
|
0 commit comments