Skip to content

Commit

Permalink
fix: place holding
Browse files Browse the repository at this point in the history
  • Loading branch information
Farenheith committed Apr 7, 2023
1 parent 66e8835 commit 88b282c
Show file tree
Hide file tree
Showing 11 changed files with 312 additions and 147 deletions.
282 changes: 159 additions & 123 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,129 +1,165 @@
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
overrides: [{
files: ['test/*.ts', 'test/**/*.ts'],
rules: {
'no-magic-numbers': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
}, ],
ignorePatterns: ['dist/**', 'build/**', 'bin/**', 'templates/**', '*.py', ".eslintrc.js"],
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['tsconfig.json', 'tsconfig.test.json'],
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'unused-imports'],
rules: {
'@typescript-eslint/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'semi',
requireLast: true,
},
singleline: {
delimiter: 'semi',
requireLast: false,
},
},
],
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-empty-function': 'error',
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/no-unused-expressions': 'warn',
'@typescript-eslint/no-use-before-define': 'error',
'@typescript-eslint/quotes': [
'error',
'single',
{
avoidEscape: true,
},
],
'@typescript-eslint/semi': ['error', 'always'],
camelcase: 'error',
'comma-dangle': ['error', 'always-multiline'],
complexity: [
'off',
{
max: 11,
},
],
curly: ['error', 'multi-line'],
'default-case': 'error',
'eol-last': 'error',
eqeqeq: ['error', 'smart'],
'guard-for-in': 'error',
'id-blacklist': 'error',
'id-match': 'error',
'linebreak-style': ['error', 'unix'],
'max-classes-per-file': ['off', 1],
'max-lines': ['off', 300],
'new-parens': 'error',
'no-bitwise': 'error',
'no-caller': 'error',
'no-cond-assign': 'error',
'no-console': 'off',
'no-constant-condition': 'error',
'no-control-regex': 'error',
'no-debugger': 'error',
'no-empty': 'error',
'no-eval': 'error',
'no-fallthrough': 'error',
'no-invalid-regexp': 'error',
'no-invalid-this': 'off',
'no-magic-numbers': [
'error',
{
ignore: [0, 1, -1],
},
],
'no-multiple-empty-lines': [
'error',
{
max: 2,
},
],
'no-new-wrappers': 'error',
'no-redeclare': 'off',
"@typescript-eslint/no-redeclare": ["error"],
'no-regex-spaces': 'error',
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
'no-throw-literal': 'error',
'no-trailing-spaces': 'error',
'no-underscore-dangle': 'error',
'no-unsafe-finally': 'error',
'no-unused-labels': 'error',
'no-var': 'error',
'object-shorthand': 'error',
'one-var': ['error', 'never'],
'@typescript-eslint/no-unused-vars': 'off',
env: {
browser: true,
es6: true,
node: true,
},
overrides: [
{
files: ['test/*.ts', 'test/**/*.ts'],
rules: {
'no-magic-numbers': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/consistent-type-assertions': 'off',
},
},
],
ignorePatterns: [
'dist/**',
'build/**',
'bin/**',
'templates/**',
'*.py',
'.eslintrc.js',
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['tsconfig.json', 'tsconfig.test.json'],
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'unused-imports'],
rules: {
'@typescript-eslint/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'semi',
requireLast: true,
},
singleline: {
delimiter: 'semi',
requireLast: false,
},
},
],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'error',
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-use-before-define': 'error',
'@typescript-eslint/quotes': [
'error',
'single',
{
avoidEscape: true,
},
],
'@typescript-eslint/semi': ['error', 'always'],
camelcase: 'error',
'comma-dangle': ['error', 'always-multiline'],
complexity: [
'off',
{
max: 11,
},
],
curly: ['error', 'multi-line'],
'default-case': 'error',
'eol-last': 'error',
eqeqeq: ['error', 'smart'],
'guard-for-in': 'error',
'id-blacklist': 'error',
'id-match': 'error',
'linebreak-style': ['error', 'unix'],
'max-classes-per-file': ['off', 1],
'max-lines': ['off', 300],
'new-parens': 'error',
'no-bitwise': 'error',
'no-caller': 'error',
'no-cond-assign': 'error',
'no-console': 'off',
'no-constant-condition': 'error',
'no-control-regex': 'error',
'no-debugger': 'error',
'no-empty': 'error',
'no-eval': 'error',
'no-fallthrough': 'error',
'no-invalid-regexp': 'error',
'no-invalid-this': 'off',
'no-magic-numbers': [
'error',
{
ignore: [0, 1, -1],
},
],
'no-multiple-empty-lines': [
'error',
{
max: 2,
},
],
'no-new-wrappers': 'error',
'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': ['error'],
'no-regex-spaces': 'error',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
'no-throw-literal': 'error',
'no-trailing-spaces': 'error',
'no-underscore-dangle': 'off',
'no-unsafe-finally': 'error',
'no-unused-labels': 'error',
'no-var': 'error',
'object-shorthand': 'error',
'one-var': ['error', 'never'],
'@typescript-eslint/no-unused-vars': 'off',
'unused-imports/no-unused-imports-ts': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'error',
'@typescript-eslint/no-unsafe-call': 'error',
'@typescript-eslint/no-unsafe-return': 'error',
'@typescript-eslint/no-explicit-any': 'error',
'no-return-await': 'off',
'@typescript-eslint/return-await': 'error',
'@typescript-eslint/consistent-type-assertions': [
'error',
{
assertionStyle: 'as',
objectLiteralTypeAssertions: 'never',
},
],
'unused-imports/no-unused-vars-ts': [
'error',
{ 'vars': 'all', 'varsIgnorePattern': '^_', 'args': 'after-used', 'argsIgnorePattern': '^_' }
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_',
},
],
'prefer-const': [
'error',
{
destructuring: 'any',
},
],
'quote-props': ['error', 'as-needed'],
radix: 'error',
'spaced-comment': [
'error',
'always',
{
markers: ['/'],
},
],
'prefer-const': [
'error',
{
destructuring: 'any',
},
],
'quote-props': ['error', 'as-needed'],
radix: 'error',
'spaced-comment': [
'error',
'always',
{
markers: ['/'],
},
],
'use-isnan': 'error',
},
'use-isnan': 'error',
},
};
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

name: build
on:
push:
branches: [master]
pull_request:
branches: [master]

Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

name: lint
on:
push:
branches: [master]
pull_request:
branches: [master]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/semantic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: semantic-release

on:
push:
branches: [masterIgnore]
branches: [master]

jobs:
semantic:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

name: test
on:
push:
branches: [master]
pull_request:
branches: [master, develop]

Expand All @@ -27,4 +25,4 @@ jobs:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm run test:coverage
coverageLocations: ${{github.workspace}}/coverage/lcov.info:lcov
coverageLocations: ${{github.workspace}}/coverage/lcov.info:lcov
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[![Actions Status](https://github.com/Codibre/boilerplate-base/workflows/build/badge.svg)](https://github.com/Codibre/boilerplate-base/actions)
[![Actions Status](https://github.com/Codibre/boilerplate-base/workflows/test/badge.svg)](https://github.com/Codibre/boilerplate-base/actions)
[![Actions Status](https://github.com/Codibre/boilerplate-base/workflows/lint/badge.svg)](https://github.com/Codibre/boilerplate-base/actions)
[![Test Coverage](https://api.codeclimate.com/v1/badges/65e41e3018643f28168e/test_coverage)](https://codeclimate.com/github/Codibre/boilerplate-base/test_coverage)
[![Maintainability](https://api.codeclimate.com/v1/badges/65e41e3018643f28168e/maintainability)](https://codeclimate.com/github/Codibre/boilerplate-base/maintainability)
[![Packages](https://david-dm.org/Codibre/boilerplate-base.svg)](https://david-dm.org/Codibre/boilerplate-base)
[![npm version](https://badge.fury.io/js/%40codibre%2Fboilerplate-base.svg)](https://badge.fury.io/js/%40codibre%2Fboilerplate-base)
[![Actions Status](https://github.com/Codibre/sonic-date/workflows/build/badge.svg)](https://github.com/Codibre/sonic-date/actions)
[![Actions Status](https://github.com/Codibre/sonic-date/workflows/test/badge.svg)](https://github.com/Codibre/sonic-date/actions)
[![Actions Status](https://github.com/Codibre/sonic-date/workflows/lint/badge.svg)](https://github.com/Codibre/sonic-date/actions)
[![Test Coverage](https://api.codeclimate.com/v1/badges/65e41e3018643f28168e/test_coverage)](https://codeclimate.com/github/Codibre/sonic-date/test_coverage)
[![Maintainability](https://api.codeclimate.com/v1/badges/65e41e3018643f28168e/maintainability)](https://codeclimate.com/github/Codibre/sonic-date/maintainability)
[![Packages](https://david-dm.org/Codibre/sonic-date.svg)](https://david-dm.org/Codibre/sonic-date)
[![npm version](https://badge.fury.io/js/%40codibre%2Fsonic-date.svg)](https://badge.fury.io/js/%40codibre%2Fsonic-date)

Never forget to write your readme! Also, don't forget to add codeclimate key to your github environment variables (as **CC_TEST_REPORTER_ID**) and to update the url here with the one provided by them!

## How to Install

```
npm i boilerplate-base
npm i sonic-date
```

## License
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 88b282c

Please sign in to comment.