Skip to content

Commit 5f860c1

Browse files
committed
build: config lint, ci, and cd
1 parent 1ca57d8 commit 5f860c1

File tree

7 files changed

+12540
-48
lines changed

7 files changed

+12540
-48
lines changed

.dependabot/config.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 1
2+
update_configs:
3+
- package_manager: "javascript"
4+
directory: "/"
5+
update_schedule: "live"
6+
commit_message:
7+
prefix: "fix"
8+
prefix_development: "chore"
9+
include_scope: true
10+
automerged_updates:
11+
- match:
12+
dependency_type: "all"
13+
update_type: "all"

.eslintrc.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
extends: [
3+
"eslint:recommended",
4+
"plugin:@typescript-eslint/eslint-recommended",
5+
"plugin:@typescript-eslint/recommended",
6+
"plugin:prettier/recommended",
7+
"prettier",
8+
"prettier/@typescript-eslint",
9+
"plugin:react/recommended",
10+
"prettier/react"
11+
],
12+
settings: {
13+
react: {
14+
version: "detect" // React version. "detect" automatically picks the version you have installed.
15+
}
16+
},
17+
env: {
18+
node: true
19+
}
20+
};

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: node_js
2+
3+
node_js:
4+
- "node"
5+
- "lts/*"
6+
7+
jobs:
8+
include:
9+
# Define the release stage that runs semantic-release
10+
- stage: release
11+
node_js: lts/*
12+
script: skip
13+
deploy:
14+
provider: script
15+
skip_cleanup: true
16+
script:
17+
- npm run release

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# jest-serializer-json-ld-script
22

3-
[![Build Status](https://travis-ci.org/keplersj/jest-serializer-json-ld-script.svg?branch=master)](https://travis-ci.org/keplersj/jest-preset-gatsby)
4-
[![npm version](https://badge.fury.io/js/jest-serializer-json-ld-script.svg)](https://badge.fury.io/js/jest-preset-gatsby)
3+
[![Build Status](https://travis-ci.org/keplersj/jest-serializer-json-ld-script.svg?branch=master)](https://travis-ci.org/keplersj/jest-serializer-json-ld-script)
4+
[![npm version](https://badge.fury.io/js/jest-serializer-json-ld-script.svg)](https://badge.fury.io/js/jest-serializer-json-ld-script)
55

66
Jest Snapshot serializer to better visualize React `<script>` elements containing LD+JSON data.
77

jest.config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
projects: [
3+
{
4+
runner: "prettier",
5+
displayName: "lint:prettier",
6+
moduleFileExtensions: ["js", "tsx", "json", "md"],
7+
testMatch: ["**/*.js", "**/*.tsx", "**/*.json", "**/*.md"],
8+
testPathIgnorePatterns: ["/node_modules/", "/dist/"]
9+
},
10+
{
11+
runner: "eslint",
12+
displayName: "lint:eslint",
13+
moduleFileExtensions: ["js", "tsx"],
14+
testMatch: ["**/*.js", "**/*.tsx"],
15+
testPathIgnorePatterns: ["/node_modules/", "/dist/"]
16+
}
17+
]
18+
};

0 commit comments

Comments
 (0)