Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge doiuse2 into doiuse #157

Merged
merged 26 commits into from
May 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
99255bd
dev: create [email protected] package
clshortfuse Mar 7, 2022
a7c3e8b
chore(npm): add missing eslint package
clshortfuse Mar 7, 2022
57ebf72
fix(node): fix v12 support
clshortfuse Mar 7, 2022
7cb9edb
npm: v5.0.1
clshortfuse Mar 7, 2022
b8b9c86
fix(dev): fix CommonJS support
clshortfuse Mar 8, 2022
67af6db
npm: bump v5.0.2
clshortfuse Mar 8, 2022
8f57c31
fix(stream): avoid double error emit
clshortfuse Mar 8, 2022
5dad532
feat(ts): add automatic types
clshortfuse Mar 8, 2022
5ab8085
npm: v5.0.3
clshortfuse Mar 8, 2022
edbd510
fix(dev): fix default export for CJS
clshortfuse Mar 12, 2022
7cc8a90
chore(doc): fix wrong date
clshortfuse Mar 12, 2022
fd352da
chore(dev): remove console.log
clshortfuse Mar 12, 2022
0dc4e61
feat(feature): extract checks into individual files
clshortfuse Mar 13, 2022
9b39328
chore(types): remove unused type
clshortfuse Mar 13, 2022
b878f5a
fix(flexbox): fix bad check
clshortfuse Mar 13, 2022
5451b59
feat(css-grid): add missing properties
clshortfuse Mar 13, 2022
c722fa6
test(border-image): add test
clshortfuse Mar 13, 2022
99b996f
fix(legacy): add main entry
clshortfuse Mar 14, 2022
4e3d2f2
npm: v5.1.0
clshortfuse Mar 14, 2022
d5263df
fix(flexbox): fix display:flex typo
clshortfuse Mar 14, 2022
b0dcbb7
npm: v5.1.1
clshortfuse Mar 14, 2022
809c5ae
dev(npm): ignore coverage folder
clshortfuse Mar 14, 2022
17fe0de
feat(features): add new checks
clshortfuse Mar 17, 2022
6a26c09
npm: v6.0.0
clshortfuse Feb 28, 2023
90d94f1
test: drop node 12, support 16 and 18
clshortfuse Feb 28, 2023
67698bf
restore package name
RJWadley May 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
270 changes: 270 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,270 @@
{
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"plugin:jsdoc/recommended",
"plugin:n/recommended",
"plugin:unicorn/recommended",
"plugin:import/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"impliedStrict": true
},
"ecmaVersion": 2019,
"sourceType": "module",
"project": "./jsconfig.json"
},
"plugins": [
"@typescript-eslint",
"canonical",
"jsdoc",
"n",
"unicorn",
"import"
],
"root": true,
"rules": {
"prefer-destructuring": [
"error",
{
"AssignmentExpression": {
"array": false,
"object": false
},
"VariableDeclarator": {
"array": false,
"object": true
}
},
{
"enforceForRenamedProperties": false
}
],
"sort-imports": [
"error",
{
"ignoreDeclarationSort": true
}
],
"spaced-comment": [
"error",
"always",
{
"block": {
"balanced": true,
"exceptions": [
"-",
"+"
],
"markers": [
"=",
"!",
":",
"::"
]
},
"line": {
"exceptions": [
"-",
"+"
],
"markers": [
"=",
"!",
"/"
]
}
}
],
"max-len": [
"error",
120,
2,
{
"ignoreComments": true,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreUrls": true
}
],
"consistent-return": "warn",
"no-console": [
"error",
{
"allow": [
"warn",
"error",
"time",
"timeEnd"
]
}
],
"no-plusplus": [
"off"
],
"no-continue": 0,
"no-restricted-syntax": 0,
"require-await": 0,
"no-return-await": 0,
"eslint-comments/no-use": 0,
"prettier/prettier": 0,
"i18n-text/no-en": 0,
"import/no-extraneous-dependencies": 0,
"import/no-namespace": 0,
"import/namespace": 0,
"no-unused-vars": 0,
"no-constructor-return": 0,
"default-case-last": 0,
"no-undef": 0,
"import/named": 0,
"no-process-exit": 0,
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"no-promise-executor-return": 0,
"canonical/filename-match-regex": ["error","^(?:.?[A-Z]?[a-z]+(?:[A-Z][a-z]+)*)*$",false],
"canonical/filename-no-index": 0,
"canonical/filename-match-exported": ["error", "pascal", null],
"@typescript-eslint/ban-ts-comment": [
"warn",
{
"ts-ignore": "allow-with-description"
}
],
"@typescript-eslint/naming-convention": ["error",
{
"selector": "typeLike",
"format": ["PascalCase"]
}
],
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/require-await": "error",
"@typescript-eslint/return-await": [
"error",
"always"
],
"import/extensions": [
"error",
"always",
{
"js": "always",
"mjs": "never"
}
],
"import/no-useless-path-segments": [
"error",
{
"noUselessIndex": false
}
],
"import/order": [
"error",
{
"alphabetize": {
"caseInsensitive": false,
"order": "asc"
},
"groups": [
"builtin",
"external",
"parent",
"sibling",
"index"
],
"newlines-between": "always",
"pathGroups": [
{
"group": "external",
"pattern": "@dataprocs/**",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": [
"builtin"
]
}
],
"import/prefer-default-export": 0,
"unicorn/switch-case-braces": 0,
"unicorn/import-style": 0,
"unicorn/no-useless-undefined": 0,
"unicorn/no-array-for-each": 0,
"unicorn/prefer-spread": 0,
"unicorn/no-null": 0,
"unicorn/prefer-node-protocol": 0,
"unicorn/filename-case": 0,
"unicorn/prefer-dom-node-append": 0,
"unicorn/prevent-abbreviations": 0,
"unicorn/explicit-length-check": 0,
"unicorn/catch-error-name": 0,
"unicorn/prefer-dom-node-dataset": 0,
"unicorn/no-array-reduce": 0,
"unicorn/no-this-assignment": 0,
"unicorn/prefer-ternary": [
"error",
"only-single-line"
],
"unicorn/no-empty-file": 0,
"unicorn/prefer-query-selector": 0,
"unicorn/prefer-dom-node-remove": 0,
"unicorn/no-for-loop": 0,
"jsdoc/newline-after-description": [
"warn",
"never"
],
"jsdoc/no-undefined-types": 0,
"jsdoc/require-param-description": 0,
"jsdoc/require-property-description": 0,
"jsdoc/require-returns": [
0,
{
"forceRequireReturn": false,
"forceReturnsWithAsync": true
}
],
"jsdoc/require-returns-description": 0,
"jsdoc/valid-types": 0,

"node/no-unsupported-features/es-syntax": [
"off",
{
"ignores": [],
"version": ">=14.0.0"
}
]
},
"settings": {
"jsdoc": {
"preferredTypes": {
"array": "Array",
"object": "Object",
"object.": "Object<>",
"object<>": "Object<>",
"symbol": "Symbol"
},
"tagNamePreference": {
"augment": "extends",
"constant": "const",
"property": "prop",
"returns": "return"
}
}
},
"overrides": [
{
"files": [
"*.cjs"
],
"rules": {
"import/no-nodejs-modules": 0,
"@typescript-eslint/no-var-requires": 0
}
}
]
}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 10, 12, 14 ]
node-version: [ 14, 16, 18 ]
steps:
- uses: actions/checkout@v2
- name: Use Node ${{ matrix.node-version }}
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.idea
lib
coverage
node_modules
**/*.cjs
types/**
.nyc_output
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ src/
.gitignore
.npmignore
CONTRIBUTING.md
coverage
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"javascript.preferences.importModuleSpecifierEnding": "js",
"typescript.preferences.importModuleSpecifierEnding": "js",
"eslint.runtime": "node",
}
62 changes: 61 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,67 @@

## Unreleased

...
* Use MDN

## 6.0.0 (2023-02-28)
* BREAKING: Drop Node v12 support
* Add caniuse features
* * `css-conic-gradients`
* * `css-container-queries-style`
* * `css-container-query-units`
* * `css-font-palette`
* * `css-grid-animation`
* * `css-matches-pseudo`
* * `css-math-functions`
* * `css-media-range-syntax`
* * `css-motion-paths`
* * `css-print-color-adjust`
* * `mdn-css-unicode-bidi-isolate`
* * `mdn-css-unicode-bidi-isolate-override`
* * `mdn-css-unicode-bidi-plaintext`
* * `mdn-text-decoration-color`
* * `mdn-text-decoration-line`
* * `mdn-text-decoration-shorthand`
* * `mdn-text-decoration-style`
* Update dependencies
* * browserlist
* * caniuse-lite
* * postcss
* * source-map
* * yargs
* Update dev dependencies

## 5.1.1 (2022-03-12)
* Fix flexbox typo

## 5.1.0 (2022-03-12)
* Add legacy support with `main` in package.json
* Use individual files for feature checks
* Add missing css-grid values

## 5.0.4 (2022-03-12)
* Fixed CommonJS support
* Replaced `esbuild` to `rollup` for CommonJS support

## 5.0.3 (2022-03-07)
* Fixed extra errors being emitted
* Add `types/**/*.d.ts`

## 5.0.2 (2022-03-07)
* Fixed CommonJS support

## 5.0.1 (2022-03-07)
* Fixed Node v12 support

## 5.0.0 (2022-03-07)
* Rewrite all files to ES Modules
* Fold `css-rule-stream` into package
* Drop support for Node v10
* Drop `tape` for `tap`
* Drop `through2` for native `Passthrough`
* Remove `babel`
* Add coverage (`c8`)
* Add `eslint` rules

## 4.4.1 (2021-01-26)

Expand Down
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
```sh
git clone [email protected]:anandthakker/doiuse.git
cd doiuse
npm install
npm run babel
npm ci
```

That last step transpiles the ES6 from src/ to ES5 in lib/. Already happens as a `pretest` step for `npm test`.
Expand Down
Loading