Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist
node_modules
node_modules
!.eslintrc.js
15 changes: 6 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,32 @@ module.exports = {
settings: {
'import/extensions': extensions,
'import/resolver': {
node: { extensions: extensions },
node: { extensions },
},
},
rules: {
'no-console': 0,
'no-param-reassign': [2, { props: false }],
'no-use-before-define': 0,

// prettier
'prettier/prettier': 2,

// typescript
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-use-before-define': 0,
},
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
// prefer consistency
'@typescript-eslint/no-inferrable-types': 0,
'@typescript-eslint/explicit-function-return-type': 2,
},
},
{
files: ['*.test.ts'],
extends: ['plugin:jest/recommended'],
plugins: ['jest'],
env: {
jest: true,
Expand All @@ -41,16 +45,9 @@ module.exports = {
'import/no-unresolved': 0,

// jest
'jest/expect-expect': 2,
'jest/no-disabled-tests': 2,
'jest/no-focused-tests': 2,
'jest/no-identical-title': 2,
'jest/no-jest-import': 2,
'jest/no-test-callback': 2,
'jest/prefer-to-be-null': 2,
'jest/prefer-to-be-undefined': 2,
'jest/prefer-to-have-length': 2,
'jest/valid-expect': 2,
},
},
],
Expand Down
46 changes: 22 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
],
"scripts": {
"postinstall": "lerna bootstrap",
"clean": "lerna exec -- rm -rf ./{dist,*.tsbuildinfo}",
"clean:prune": "yarn clean && lerna exec -- rm -rf ./node_modules && rm -rf ./{node_modules,coverage,*.lock,*.log}",
"clean": "lerna exec \"rm -rf ./{dist,*.tsbuildinfo}\"",
"clean:prune": "rm -rf ./{,*/,**/*/}{node_modules,coverage,*.lock,*.log,*.tsbuildinfo,dist}",
"build": "yarn clean && lerna run build --ignore=@email-types/scripts && yarn types",
"dev": "run-p dev:* ",
"dev:all": "lerna run dev --parallel",
Expand All @@ -16,24 +16,22 @@
"jest": "jest --colors --logHeapUsage",
"jest:coverage": "yarn run jest --coverage",
"lint": "yarn run eslint .",
"eslint": "eslint --color --ext .ts,.js --report-unused-disable-directives",
"pretty": "prettier ./{,*/,**/}*.{js,ts,md,json} --write",
"eslint": "eslint --ext js,jsx,ts,tsx --max-warnings=0 --report-unused-disable-directives",
"prettier": "prettier \"**/*.{js,jsx,ts,tsx,md,mdx,json}\" --write",
"types": "tsc --build packages/*/tsconfig.json",
"release": "yarn build && lerna publish",
"prepublishOnly": "NODE_ENV=production yarn run build",
"release": "lerna publish",
"release:publish": "lerna publish from-git",
"release:version": "lerna version --conventional-commits --changelog-preset conventional-changelog-beemo --create-release github --push",
"canary:version": "lerna version prerelease --preid canary --conventional-commits --changelog-preset conventional-changelog-beemo --create-release github --push",
"emailtypes": "yarn workspace @email-types/scripts build"
},
"lint-staged": {
"**/*.md": [
"yarn run prettier",
"git add"
"**/*.{js,jsx,ts,tsx,md,mdx,json}": [
"yarn run prettier"
],
"**/*.ts": [
"yarn run prettier",
"yarn run lint --fix",
"git add"
"**/*.{js,jsx,ts,tsx}": [
"yarn run lint --fix"
]
},
"husky": {
Expand All @@ -49,30 +47,30 @@
"@babel/preset-react": "^7.7.0",
"@babel/preset-typescript": "^7.7.2",
"@postmates/eslint-config": "^5.1.1",
"@types/eslint": "^6.1.1",
"@types/jest": "^24.0.22",
"@types/node": "^12.11.1",
"@types/eslint": "^6.1.3",
"@types/jest": "^24.0.23",
"@types/node": "^12.12.8",
"@types/prettier": "^1.18.3",
"@typescript-eslint/eslint-plugin": "^2.6.0",
"@typescript-eslint/parser": "^2.6.0",
"@typescript-eslint/eslint-plugin": "^2.7.0",
"@typescript-eslint/parser": "^2.7.0",
"babel-plugin-dynamic-import-node": "^2.3.0",
"conventional-changelog-beemo": "^1.5.1",
"conventional-changelog-beemo": "^1.5.3",
"eslint": "^6.6.0",
"eslint-config-prettier": "^6.5.0",
"eslint-config-prettier": "^6.6.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^23.0.2",
"eslint-plugin-jest": "^23.0.4",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-react": "^7.16.0",
"eslint-plugin-react-hooks": "^1.7.0",
"husky": "^3.0.9",
"jest": "^24.9.0",
"jest-emotion": "^10.0.17",
"lerna": "^3.18.3",
"lint-staged": "^9.4.2",
"lerna": "^3.18.4",
"lint-staged": "^10.0.0-1",
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2",
"typescript": "^3.6.4"
"prettier": "^1.19.1",
"typescript": "^3.7.2"
},
"keywords": [
"css-in-js",
Expand Down
10 changes: 7 additions & 3 deletions packages/data/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 1.0.0-canary.1 - 2019-11-10

#### 🚀 Updates

- **[stylis-plugin-mso]** Stylis plugin that adds support for the mso- css vendor prefix (#1) ([399ef59](https://github.com/email-types/email-types/tree/master/packages/data/commit/399ef59)), closes [#1](https://github.com/email-types/email-types/tree/master/packages/data/issues/1)
- **[stylis-plugin-mso]** Stylis plugin that adds support for the mso- css
vendor prefix (#1)
([399ef59](https://github.com/email-types/email-types/tree/master/packages/data/commit/399ef59)),
closes
[#1](https://github.com/email-types/email-types/tree/master/packages/data/issues/1)

**Note:** Version bump only for package @email-types/data
25 changes: 17 additions & 8 deletions packages/data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,21 @@ yarn add --dev @email-types/data

## Data

| | Description | Exports |
| :-------------- | :----------------------------------------------------- | :---------------------------------------------- |
| [**mso**](#mso) | Data about the different features of the MSO language. | • `properties` <br> • `syntaxes` <br> • `types` | `AlternativePropertiesHyphen` |
| **features** | _todo_ | _todo_ |
| **providers** | _todo_ | _todo_ |
| | Description | Exports |
| :-------------- | :----------------------------------------------------- | :----------------------------------------------------------------------------------- |
| [**mso**](#mso) | Data about the different features of the MSO language. | • `properties` <br> • `syntaxes` <br> • `operators` <br> • `types` <br> • `versions` | `AlternativePropertiesHyphen` |
| **features** | _todo_ | _todo_ |
| **providers** | _todo_ | _todo_ |

### MSO

#### Properties

Data for MSO (Microsoft Office), including data for the `mso-` CSS vendor
prefix. There are 3 categories of data.
Property data for MSO (Microsoft Office), including data for the `mso-` CSS
vendor prefix. There are 2 categories of property data.

- **`alternatives`** - Properties that end with an `-alt` postfix that are
direct alternatives to a standard CSS property.
- **`fonts`** - Properties for the different MSO font features.
- **`standard`** - Properties that correspond to a Microsoft Office feature.
While these do not have a CSS equivalent, they may or may not have an effect
on Microsoft Outlook
Expand All @@ -46,7 +45,17 @@ color: {
}
```

#### Operators

Operator syntax that can be used to create MSO conditional expressions,
comments.

#### Types

CSS basic data types, such as `<sting>` and `<length>`, that are acceptable
values that can be used by MSO properties.

#### Versions

MSO version vectors that map to specific Outlook clients. This is commonly used
to target specific versions of Outlook with conditional comments.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { MSOProperties } from '../types';
import { Properties } from '../types/mso';

export const alternatives: MSOProperties = {
export const alternatives: Properties = {
'mso-border-alt': {
syntax: '<border-art> | <border-style> | <color> | <length> | <line-width>',
description:
Expand Down
172 changes: 0 additions & 172 deletions packages/data/src/mso/data/fonts.ts

This file was deleted.

Loading