mirror of
https://github.com/scratchfoundation/eslint-config-scratch.git
synced 2025-08-28 22:40:13 -04:00
commit
1499e0b42d
8 changed files with 10758 additions and 3392 deletions
26
.circleci/config.yml
Normal file
26
.circleci/config.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
version: 2.1
|
||||
orbs:
|
||||
commitlint: conventional-changelog/commitlint@1.0.0
|
||||
node: circleci/node@5.0.3
|
||||
alias:
|
||||
- &defaults
|
||||
docker:
|
||||
- image: cimg/node:lts
|
||||
executor: node/default
|
||||
jobs:
|
||||
main-job:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- checkout
|
||||
- node/install-packages
|
||||
- run: npm test
|
||||
- run: npx semantic-release
|
||||
workflows:
|
||||
version: 2
|
||||
commitlint:
|
||||
jobs:
|
||||
- commitlint/lint:
|
||||
target-branch: master
|
||||
main-workflow:
|
||||
jobs:
|
||||
- main-job
|
1
.husky/.gitattributes
vendored
Normal file
1
.husky/.gitattributes
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
* text eol=lf
|
4
.husky/commit-msg
Executable file
4
.husky/commit-msg
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
npx --no-install commitlint --edit "$1"
|
12
.travis.yml
12
.travis.yml
|
@ -1,12 +0,0 @@
|
|||
sudo: false
|
||||
language: node_js
|
||||
notifications:
|
||||
email: false
|
||||
node_js:
|
||||
- lts/*
|
||||
install: npm ci --production=false
|
||||
after_success:
|
||||
- npx semantic-release
|
||||
branches:
|
||||
except:
|
||||
- /^v\d+\.\d+\.\d+$/
|
4
commitlint.config.js
Normal file
4
commitlint.config.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
module.exports = {
|
||||
extends: ['@commitlint/config-conventional'],
|
||||
ignores: [message => message.startsWith('chore(release):')]
|
||||
};
|
14084
package-lock.json
generated
14084
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
@ -4,6 +4,7 @@
|
|||
"description": "Shareable ESLint config for Scratch",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"prepare": "husky install",
|
||||
"test": "eslint ."
|
||||
},
|
||||
"eslintConfig": {
|
||||
|
@ -33,12 +34,15 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@babel/eslint-parser": "7.17.0",
|
||||
"cz-conventional-changelog": "3.0.2",
|
||||
"eslint": "8.15.0"
|
||||
"@commitlint/cli": "17.1.2",
|
||||
"@commitlint/config-conventional": "17.1.0",
|
||||
"eslint": "8.15.0",
|
||||
"husky": "8.0.1",
|
||||
"scratch-semantic-release-config": "1.0.5"
|
||||
},
|
||||
"config": {
|
||||
"commitizen": {
|
||||
"path": "./node_modules/cz-conventional-changelog"
|
||||
"path": "cz-conventional-changelog"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
9
release.config.js
Normal file
9
release.config.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
module.exports = {
|
||||
extends: 'scratch-semantic-release-config',
|
||||
branches: [
|
||||
{
|
||||
name: 'master'
|
||||
// default channel
|
||||
}
|
||||
]
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue