Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: fb55/css-what
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: fd6b9f62146efec8e17ee80ddaebdfb6ede21d7b
Choose a base ref
...
head repository: fb55/css-what
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e9106aa26ece8efbdf85e3219a9f8513897160ab
Choose a head ref
Loading
Showing with 31,082 additions and 16,553 deletions.
  1. +72 −0 .eslintrc.json
  2. +2 −0 .github/FUNDING.yml
  3. +16 −0 .github/dependabot.yml
  4. +3 −0 .gitignore
  5. +3 −0 .prettierignore
  6. +5 −6 .travis.yml
  7. +0 −267 index.js
  8. +11,746 −0 package-lock.json
  9. +52 −41 package.json
  10. +50 −26 readme.md
  11. +17,283 −0 src/__fixtures__/out.json
  12. +998 −0 src/__fixtures__/tests.ts
  13. +3 −0 src/index.ts
  14. +65 −0 src/parse.spec.ts
  15. +601 −0 src/parse.ts
  16. +24 −0 src/stringify.spec.ts
  17. +120 −0 src/stringify.ts
  18. +0 −55 stringify.js
  19. +0 −15,740 tests/out.json
  20. +0 −418 tests/test.js
  21. +5 −0 tsconfig.eslint.json
  22. +34 −0 tsconfig.json
72 changes: 72 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"extends": ["eslint:recommended", "plugin:node/recommended", "prettier"],
"env": {
"node": true,
"es6": true
},
"rules": {
"eqeqeq": [2, "smart"],
"no-caller": 2,
"dot-notation": 2,
"no-var": 2,
"prefer-const": 2,
"prefer-arrow-callback": [2, { "allowNamedFunctions": true }],
"arrow-body-style": [2, "as-needed"],
"object-shorthand": 2,
"prefer-template": 2,
"one-var": [2, "never"],
"prefer-destructuring": [2, { "object": true }],
"capitalized-comments": 2,
"multiline-comment-style": [2, "starred-block"],
"spaced-comment": 2,
"yoda": [2, "never"],
"curly": [2, "multi-line"],
"no-else-return": 2,

"node/no-unsupported-features/es-syntax": [
2,
{ "ignores": ["modules"] }
]
},
"overrides": [
{
"files": "*.ts",
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.eslint.json"
},
"settings": {
"node": {
"tryExtensions": [".js", ".json", ".node", ".ts"]
}
},
"rules": {
"@typescript-eslint/prefer-for-of": 0,
"@typescript-eslint/member-ordering": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-use-before-define": [
2,
{ "functions": false }
],
"@typescript-eslint/consistent-type-definitions": [
2,
"interface"
],
"@typescript-eslint/prefer-function-type": 2,
"@typescript-eslint/no-unnecessary-type-arguments": 2,
"@typescript-eslint/prefer-string-starts-ends-with": 2,
"@typescript-eslint/prefer-readonly": 2,
"@typescript-eslint/prefer-includes": 2,
"@typescript-eslint/no-unnecessary-condition": 2,
"@typescript-eslint/switch-exhaustiveness-check": 2,
"@typescript-eslint/prefer-nullish-coalescing": 2
}
}
]
}
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [fb55]
tidelift: npm/css-what
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "13:00"
timezone: America/Los_Angeles
open-pull-requests-limit: 10
ignore:
- dependency-name: "@types/node"
versions:
- 15.0.0
- dependency-name: eslint-config-prettier
versions:
- 8.0.0
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
coverage/
lib/
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
coverage/
lib/
11 changes: 5 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
sudo: false
language: node_js
arch:
- amd64
- ppc64le
node_js:
- 0.8
- "0.10"
- 0.11
before_install:
- npm install -g npm
- lts/*
after_success: npm run coverage
267 changes: 0 additions & 267 deletions index.js

This file was deleted.

Loading