Skip to content

Commit 67288f2

Browse files
committed
chore: update dependencies, linting and release config
1 parent 7f3db79 commit 67288f2

7 files changed

Lines changed: 5141 additions & 4691 deletions

File tree

.eslintrc.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,18 @@ const engines = require('./package.json').engines
66
module.exports = {
77
root: true,
88
parserOptions: {
9-
ecmaVersion: 2018,
9+
ecmaVersion: 2019,
1010
sourceType: 'module'
1111
},
1212
env: {
1313
node: true
1414
},
15-
plugins: [
16-
'node',
17-
'prettierx'
18-
],
15+
plugins: ['prettierx'],
1916
extends: [
17+
// order matters
2018
'eslint:recommended',
21-
'plugin:node/recommended',
22-
'standard',
23-
'plugin:prettierx/standardx'
19+
'standardize',
20+
'plugin:prettierx/standardize'
2421
],
2522
settings: {
2623
prettierx: {

.lintstagedrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"*.js": "./node_modules/.bin/eslint --fix"
2+
"*.js": "eslint --fix"
33
}

.prettierrc.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
"printWidth": 100,
33
"semi": false,
44
"singleQuote": true,
5+
"quoteProps": "consistent",
56
"jsxBracketSameLine": true,
7+
"jsxSingleQuote": true,
68
"endOfLine": "lf",
7-
"spaceBeforeFunctionParen": true
9+
"spaceBeforeFunctionParen": true,
10+
"trailingComma": "none",
11+
"arrowParens": "avoid",
12+
"bracketSpacing": true,
13+
"generatorStarSpacing": true,
14+
"yieldStarSpacing": true
815
}

.releaserc.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
'use strict'
2+
3+
const changelogFile = 'CHANGELOG.md'
4+
const writerOpts = { commitsSort: ['subject', 'scope'] }
5+
const assets = [changelogFile, 'docs/', 'package.json']
6+
const preset = 'conventionalcommits'
7+
8+
// //////////////////////////////////////////////
9+
10+
module.exports = {
11+
branches: [
12+
{
13+
name: 'master',
14+
prerelease: false,
15+
channel: 'stable'
16+
},
17+
{
18+
name: 'next',
19+
prerelease: 'rc',
20+
channel: 'next'
21+
}
22+
],
23+
plugins: [
24+
['@semantic-release/commit-analyzer', { preset }],
25+
['@semantic-release/release-notes-generator', { preset, writerOpts }],
26+
['@semantic-release/changelog', { changelogFile }],
27+
['@semantic-release/git', { assets }],
28+
'@semantic-release/github',
29+
'@semantic-release/npm'
30+
]
31+
}

.releaserc.json

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)