1.0.2 and github release

This commit is contained in:
Rick van Lieshout 2022-09-04 23:37:00 +02:00
parent 8add49fd5e
commit 3e8e1b7275
6 changed files with 3764 additions and 1 deletions

27
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Release
env:
NPM_ACCESS_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
run: npm run publish

39
.gitignore vendored Normal file
View File

@ -0,0 +1,39 @@
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
publish/
build/Release
coverage
lib-cov
# deps
node_modules/
__pycache__/
# Logs
logs
*.log*
# Runtime data
pids
*.pid
*.seed
# Mac files
.DS_Store
# randoms
*.pyc
dbdata
old
yarn-error.log
dist
*/test-results

View File

@ -1,3 +1,28 @@
# eslint-config # eslint-config
My personal (base) eslint-config My personal (base) eslint-config
## Table of Contents
<!-- toc -->
- [install](#install)
- [usage](#usage)
<!-- tocstop -->
## install
```sh
npm install --save-dev @mastermindzh/eslint-config
```
## usage
Extend it in your eslint config:
```json
{
"extends": "@mastermindzh/eslint-config"
}
```

79
index.js Normal file
View File

@ -0,0 +1,79 @@
module.exports = {
env: {
browser: false,
node: true,
jest: true,
es6: true,
},
parserOptions: {
ecmaVersion: 6,
sourceType: "module",
},
plugins: ["import"],
extends: ["eslint:recommended", "prettier"],
overrides: [
{
files: ["**/*.spec.*"],
plugins: ["jest"],
extends: ["plugin:jest/recommended"],
rules: {
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error",
},
},
],
rules: {
"no-console": [
"error",
{
allow: ["debug", "error"],
},
],
"no-eval": "error",
"import/first": "error",
camelcase: [
"error",
{
ignoreImports: true,
ignoreDestructuring: true,
},
],
"consistent-return": "warn",
"comma-dangle": ["warn", "always-multiline"],
"constructor-super": "error",
curly: "error",
"eol-last": "warn",
eqeqeq: ["error", "smart"],
"import/order": 1,
"new-parens": "error",
"no-debugger": "error",
"no-fallthrough": "off",
"max-len": [
"warn",
{
code: 120,
},
],
"no-shadow": [
"error",
{
hoist: "all",
},
],
"no-trailing-spaces": "warn",
"no-underscore-dangle": "error",
"no-unsafe-finally": "error",
"no-var": "error",
"object-shorthand": "error",
"one-var": ["error", "never"],
"prefer-arrow/prefer-arrow-functions": "off",
"prefer-const": "error",
radix: "off",
"space-in-parens": ["off", "never"],
"import/no-named-as-default": ["off"],
"import/prefer-default-export": ["off"],
},
};

3557
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

36
package.json Normal file
View File

@ -0,0 +1,36 @@
{
"name": "@mastermindzh/eslint-config",
"version": "1.0.2",
"description": "My default eslint config",
"keywords": [
"eslint",
"config"
],
"repository": {
"type": "git",
"url": "git@git.mastermindzh.tech:mastermindzh/eslint-config.git"
},
"license": "MIT",
"author": "Mastermindzh <info@rickvanlieshout.com> (http://rickvanlieshout.com/)",
"main": "index.js",
"scripts": {
"organize-package-json": "npx format-package -w && npx sort-package-json",
"release": "npm publish --access public"
},
"prettier": "@mastermindzh/prettier-config",
"dependencies": {
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.0.1",
"prettier": "^2.7.1"
},
"devDependencies": {
"@mastermindzh/prettier-config": "^1.0.0",
"eslint": "^8.23.0",
"eslint-config-prettier": "^8.5.0",
"prettier": "^2.7.1"
},
"peerDependencies": {
"eslint": "^8.23.0",
"prettier": "^2.7.1"
}
}