Skip to content

Commit

Permalink
breaking(vest, enforce): prepare next major
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Nov 10, 2021
1 parent dab8e00 commit e8652bc
Show file tree
Hide file tree
Showing 514 changed files with 10,814 additions and 13,301 deletions.
10 changes: 10 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
STABLE_BRANCH=stable
LATEST_BRANCH=latest
RELEASE_BRANCH=release
INTEGRATION_BRANCH=integration
CURRENT_BRANCH=vest-4-integration-branch
GITHUB_REPOSITORY=vest
PUBLIC_REPO_TOKEN=123
EMAIL_ADDRESS=code@ealush.com
GIT_NAME=ealush
GITHUB_SHA=234135234523452345
56 changes: 30 additions & 26 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
const jsconfig = require('./jsconfig.json');

const paths = jsconfig.compilerOptions.paths;

const aliases = Object.keys(paths);

module.exports = {
env: {
es6: true,
Expand All @@ -22,54 +16,54 @@ module.exports = {
__DEV__: true,
__LIB_VERSION__: true,
ENV_DEVELOPMENT: true,
LIBRARY_NAME: true,
},
ignorePatterns: ['playground'],
ignorePatterns: ['*.d.ts'],

overrides: [
{
files: ['./packages/*/src/**/*.js'],
excludedFiles: '*.test.js',
files: ['./packages/*/src/**/*.(t|j)s'],
excludedFiles: '*__tests__/**/*.(t|j)s',
rules: {
'import/no-relative-parent-imports': 2,
'max-depth': [1, { max: 4 }],
'max-lines-per-function': [1, { max: 20 }],
'max-nested-callbacks': [1, { max: 3 }],
'max-statements': [1, { max: 10 }],
},
},
],
parser: 'babel-eslint',
parserOptions: {
babelOptions: {
configFile: 'config/babel/babel.config.js',
},
ecmaFeatures: {
impliedStrict: true,
{
files: ['*.ts'],
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/typescript',
],
},
ecmaVersion: 10,
sourceType: 'module',
},
],
parser: '@typescript-eslint/parser',
plugins: ['jest'],

rules: {
complexity: [2, { max: 5 }],
'import/extensions': [2, 'never'],
'import/first': 2,
'import/newline-after-import': 1,
'import/no-self-import': 2,
'import/no-unresolved': [2, { ignore: aliases }],
'import/no-unresolved': [2],
'import/no-useless-path-segments': 2,

'import/order': [
'error',
{
alphabetize: {
order: 'asc',
},
'newlines-between': 'always',
pathGroups: [{ pattern: `*(${aliases.join('|')})`, group: 'internal' }],
pathGroupsExcludedImportTypes: ['builtin'],
},
],
'jest/expect-expect': 0,
'jest/no-identical-title': 0,
'jest/no-standalone-expect': 0,
'max-params': [2, { max: 3 }],
'max-params': [1, { max: 3 }],
'no-console': 2,
'no-duplicate-imports': 2,
'no-implicit-globals': 2,
Expand All @@ -95,4 +89,14 @@ module.exports = {
},
],
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
typescript: {
project: 'packages/*/tsconfig.json',
},
},
},
};
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
jsconfig.json linguist-generated
rules.ts linguist-generated
tsconfig.json linguist-generated
22 changes: 0 additions & 22 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

9 changes: 0 additions & 9 deletions .github/dependabot.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/docs.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/pull_request.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/release.yml

This file was deleted.

136 changes: 118 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,119 @@
node_modules
.vscode
.DS_Store
packages/*/index.js
packages/*/umd/
packages/*/cjs/
packages/*/*.tgz

playground.*

# Logs
logs
*.log
packages/vest/utilities/
packages/n4s/extended/
playground.mjs
package-lock.json

# build artifacts
packages/*/dist
packages/*/esm
packages/*/*.js
packages/*/*.js.map
packages/*/*.d.ts
packages/*/*.mjs

# Unignore direct js files
!jest.config.js
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

Loading

0 comments on commit e8652bc

Please sign in to comment.