|
1 | 1 | { |
2 | | - "name": "@tw-in-js/typescript-plugin", |
| 2 | + "name": "@twind/typescript-plugin", |
3 | 3 | "version": "0.0.1", |
4 | | - "description": "TypeScript language service plugin that adds IntelliSense for tailwindjs", |
| 4 | + "description": "TypeScript language service plugin that adds IntelliSense for twind", |
| 5 | + "//": "mark as private to prevent accidental publish - use 'yarn release'", |
| 6 | + "private": true, |
5 | 7 | "keywords": [ |
6 | 8 | "TypeScript", |
7 | 9 | "tw-in-js", |
8 | 10 | "tailwind-in-js", |
9 | 11 | "tailwind" |
10 | 12 | ], |
11 | 13 | "homepage": "https://github.com/tw-in-js/typescript-plugin#readme", |
12 | | - "bugs": { |
13 | | - "url": "https://github.com/tw-in-js/typescript-plugin/issues" |
14 | | - }, |
15 | | - "repository": { |
16 | | - "type": "git", |
17 | | - "url": "git+https://github.com/tw-in-js/typescript-plugin.git" |
18 | | - }, |
| 14 | + "bugs": "https://github.com/tw-in-js/typescript-plugin/issues", |
| 15 | + "repository": "github:tw-in-js/typescript-plugin", |
19 | 16 | "license": "MIT", |
20 | 17 | "contributors": [ |
21 | 18 | "Luke Jackson (lukejacksonn.github.io)", |
22 | 19 | "Sascha Tandel (https://github.com/sastan)" |
23 | 20 | ], |
24 | | - "main": "dist/node/typescript-plugin.js", |
| 21 | + "main": "dist/node/twind_typescript-plugin.js", |
25 | 22 | "source": "src/index.ts", |
26 | 23 | "browser": false, |
27 | 24 | "scripts": { |
28 | | - "build": "nps", |
29 | | - "ci": "nps", |
30 | | - "format": "nps", |
31 | | - "prelink": "yarn build", |
32 | | - "link": "cd dist && yarn link", |
33 | | - "release": "np", |
34 | | - "test": "nps", |
35 | | - "version": "nps build.package" |
| 25 | + "build": "./scripts/esbundle.js", |
| 26 | + "format": "prettier --write --ignore-path .gitignore .", |
| 27 | + "lint": "eslint --ext .js,.ts --ignore-path .gitignore .", |
| 28 | + "lint:fix": "yarn lint -- --fix", |
| 29 | + "release": "npx np --contents dist", |
| 30 | + "version": "yarn build" |
36 | 31 | }, |
37 | | - "prettier": "@carv/prettier-config", |
38 | | - "eslintConfig": { |
39 | | - "extends": "@carv/eslint-config", |
40 | | - "root": true |
| 32 | + "prettier": { |
| 33 | + "printWidth": 100, |
| 34 | + "semi": false, |
| 35 | + "singleQuote": true, |
| 36 | + "trailingComma": "all", |
| 37 | + "bracketSpacing": true |
41 | 38 | }, |
42 | | - "jest": { |
43 | | - "preset": "@carv/jest-preset" |
| 39 | + "eslintConfig": { |
| 40 | + "root": true, |
| 41 | + "parserOptions": { |
| 42 | + "ecmaVersion": 2020, |
| 43 | + "sourceType": "module" |
| 44 | + }, |
| 45 | + "env": { |
| 46 | + "es6": true, |
| 47 | + "shared-node-browser": true |
| 48 | + }, |
| 49 | + "extends": [ |
| 50 | + "eslint:recommended", |
| 51 | + "plugin:prettier/recommended" |
| 52 | + ], |
| 53 | + "overrides": [ |
| 54 | + { |
| 55 | + "files": [ |
| 56 | + "scripts/*.js" |
| 57 | + ], |
| 58 | + "env": { |
| 59 | + "node": true |
| 60 | + }, |
| 61 | + "parserOptions": { |
| 62 | + "ecmaVersion": 2019, |
| 63 | + "sourceType": "script" |
| 64 | + } |
| 65 | + }, |
| 66 | + { |
| 67 | + "files": [ |
| 68 | + "**/*.ts" |
| 69 | + ], |
| 70 | + "parser": "@typescript-eslint/parser", |
| 71 | + "plugins": [ |
| 72 | + "@typescript-eslint" |
| 73 | + ], |
| 74 | + "extends": [ |
| 75 | + "plugin:@typescript-eslint/recommended" |
| 76 | + ] |
| 77 | + } |
| 78 | + ] |
44 | 79 | }, |
45 | 80 | "dependencies": { |
46 | | - "@carv/esbundle": "^1.1.6", |
47 | | - "@carv/eslint-config": "^1.6.0", |
48 | | - "@carv/jest-preset": "^1.1.6", |
49 | | - "@carv/prettier-config": "^1.1.0", |
50 | | - "@carv/tsconfig": "^1.3.0", |
51 | 81 | "dlv": "^1.1.3", |
52 | | - "eslint": "^7.3.1", |
53 | | - "jest": "^26.1.0", |
54 | | - "np": "^7.0.0", |
55 | | - "nps": "^5.9.12", |
56 | | - "prettier": "^2.0.5", |
57 | 82 | "tailwindcss": "^2.0.1", |
58 | 83 | "typescript": "^4.1.0", |
59 | 84 | "typescript-template-language-service-decorator": "^2.2.0", |
60 | 85 | "vscode-languageserver-types": "^3.13.0" |
61 | 86 | }, |
62 | 87 | "devDependencies": { |
63 | | - "nps": "^5.9.12" |
| 88 | + "@typescript-eslint/eslint-plugin": "^4.9.1", |
| 89 | + "@typescript-eslint/parser": "^4.9.1", |
| 90 | + "execa": "^5.0.0", |
| 91 | + "prettier": "^2.0.5", |
| 92 | + "esbuild": "^0.8.23", |
| 93 | + "eslint": "^7.15.0", |
| 94 | + "eslint-config-prettier": "^7.0.0", |
| 95 | + "eslint-plugin-prettier": "^3.2.0" |
64 | 96 | }, |
65 | 97 | "publishConfig": { |
66 | 98 | "access": "public", |
67 | 99 | "registry": "https://registry.npmjs.com/" |
68 | | - }, |
69 | | - "np": { |
70 | | - "contents": "dist" |
71 | 100 | } |
72 | 101 | } |
0 commit comments