-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: transmute @xunnamius/projector into @projector-js w/o a circle
- Loading branch information
Showing
126 changed files
with
38,942 additions
and
1,671 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
coverage: | ||
range: '70...100' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# When running a (projector) pipeline via GHA/Vercel, all required env vars must | ||
# be defined as repo secrets. With projector, the sync command handles this. | ||
|
||
# Codecov test analysis token | ||
# | ||
# Required: if deploying | ||
# Matches: ^[a-f0-9-]+$ | ||
# On-Sync: mirror | ||
# | ||
# The token used during CI/CD to analyze and upload build artifact code quality | ||
# data to Codecov. | ||
CODECOV_TOKEN= | ||
|
||
# GitHub deploy token | ||
# | ||
# Alias: GH_TOKEN | ||
# Required: if deploying | ||
# Matches: ^[a-f0-9]+$ | ||
# On-Sync: mirror | ||
# | ||
# The token used during CI/CD to interact with GitHub's API. | ||
GITHUB_TOKEN= | ||
|
||
# GPG private key passphrase | ||
# | ||
# Required: if deploying with CI/CD | ||
# On-Sync: mirror | ||
# | ||
# The passphrase used to unlock GPG_PRIVATE_KEY. Not referenced during non-CI/CD | ||
# (i.e. local, manual) deployments. | ||
GPG_PASSPHRASE= | ||
|
||
# GPG private key | ||
# | ||
# Required: if deploying with CI/CD | ||
# On-Sync: mirror | ||
# | ||
# The GPG key used to sign all git commits and releases. Not referenced during | ||
# non-CI/CD (i.e. local, manual) deployments. | ||
GPG_PRIVATE_KEY= | ||
|
||
# NPM deploy token | ||
# | ||
# Required: if deploying with CI/CD | ||
# Matches: ^[a-f0-9-]+$ | ||
# On-Sync: mirror | ||
# | ||
# The token used during CD to login to NPM. Not referenced during non-CI/CD | ||
# (i.e. local, manual) deployments. | ||
NPM_TOKEN= | ||
|
||
# Fossa API token | ||
# | ||
# Matches: ^[a-f0-9-]+$ | ||
# On-Sync: mirror | ||
# | ||
# The token used with FOSSA license info and compliance service integration. | ||
FOSSA_API_KEY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,144 @@ | ||
'use strict'; | ||
|
||
const debug = require('debug')( | ||
`${require(`${process.cwd()}/package.json`).name}:eslint-config` | ||
); | ||
const restrictedGlobals = require('confusing-browser-globals'); | ||
|
||
module.exports = { | ||
'parser': 'babel-eslint', | ||
'plugins': [ | ||
'flowtype', | ||
'react', | ||
'jsx-a11y' | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['jest', '@typescript-eslint', 'import'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:import/errors', | ||
'plugin:import/warnings', | ||
'plugin:import/typescript' | ||
], | ||
parserOptions: { | ||
ecmaVersion: 8, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
impliedStrict: true, | ||
experimentalObjectRestSpread: true, | ||
jsx: true | ||
}, | ||
extraFileExtensions: ['.mjs', '.cjs'], | ||
project: 'tsconfig.eslint.json' | ||
}, | ||
env: { | ||
es6: true, | ||
node: true, | ||
jest: true, | ||
'jest/globals': true, | ||
browser: true, | ||
webextensions: true | ||
}, | ||
rules: { | ||
'no-console': 'warn', | ||
'no-return-await': 'warn', | ||
'no-await-in-loop': 'warn', | ||
'import/no-unresolved': [ | ||
'error', | ||
{ | ||
commonjs: true | ||
// ? Once Node 12 dies, these can be used safely | ||
/*ignore: ['fs/promises', 'dns/promises']*/ | ||
} | ||
], | ||
'no-restricted-globals': ['warn'].concat(restrictedGlobals), | ||
'no-extra-boolean-cast': 'off', | ||
'no-empty': 'off', | ||
'@typescript-eslint/camelcase': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/prefer-ts-expect-error': 'warn', | ||
'@typescript-eslint/no-floating-promises': [ | ||
'error', | ||
{ ignoreVoid: true, ignoreIIFE: true } | ||
], | ||
'@typescript-eslint/ban-ts-comment': [ | ||
'warn', | ||
{ | ||
'ts-expect-error': 'allow-with-description', | ||
minimumDescriptionLength: 6 | ||
} | ||
], | ||
'extends': [ | ||
'eslint:recommended', | ||
'plugin:flowtype/recommended', | ||
'plugin:react/recommended', | ||
'react-app', | ||
'plugin:jsx-a11y/recommended' | ||
'@typescript-eslint/no-unused-vars': [ | ||
'warn', | ||
{ | ||
argsIgnorePattern: '^_+', | ||
varsIgnorePattern: '^_+', | ||
caughtErrorsIgnorePattern: '^ignored?\\d*$', | ||
caughtErrors: 'all' | ||
} | ||
], | ||
'parserOptions': { | ||
'ecmaVersion': 8, | ||
'sourceType': 'module', | ||
'ecmaFeatures': { | ||
'impliedStrict': true, | ||
'experimentalObjectRestSpread': true, | ||
'jsx': true, | ||
} | ||
// ? Ever since v4, we will rely on TypeScript to catch these | ||
'no-undef': 'off', | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'no-unused-vars': 'off' | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.test.*'], | ||
extends: ['plugin:jest/all', 'plugin:jest/style'], | ||
rules: { | ||
'jest/lowercase': 'off', | ||
'jest/consistent-test-it': 'off', | ||
'jest/require-top-level-describe': 'off', | ||
'jest/valid-describe': 'off', | ||
'jest/no-hooks': 'off', | ||
'jest/require-to-throw-message': 'off', | ||
'jest/prefer-called-with': 'off', | ||
'jest/prefer-spy-on': 'off', | ||
'jest/no-if': 'off', | ||
'jest/no-disabled-tests': 'warn', | ||
'jest/no-commented-out-tests': 'warn', | ||
'jest/no-alias-methods': 'off' | ||
} | ||
} | ||
], | ||
settings: { | ||
react: { | ||
version: 'detect' | ||
}, | ||
'env': { | ||
'es6': true, | ||
'node': true, | ||
'jest': true, | ||
'browser': true, | ||
'webextensions': true, | ||
'import/extensions': ['.ts', '.tsx', '.js', '.jsx'], | ||
// ? Switch parsers depending on which type of file we're looking at | ||
'import/parsers': { | ||
'@typescript-eslint/parser': ['.ts', '.tsx'], | ||
'@babel/eslint-parser': ['.js', '.jsx'] | ||
}, | ||
'rules': { | ||
'flowtype/space-after-type-colon': 'off', | ||
'no-console': 'off', | ||
'no-unused-vars': 'warn', | ||
'no-restricted-globals': ['warn'].concat(restrictedGlobals), | ||
'react/prop-types': 'off', | ||
'jsx-a11y/anchor-is-valid': 'off', | ||
} | ||
'import/resolver': { | ||
alias: { | ||
map: [ | ||
// ! If changed, also update these aliases in tsconfig.json, | ||
// ! webpack.config.js, next.config.ts, and jest.config.js | ||
['universe', './src'], | ||
['multiverse', './lib'], | ||
['testverse', './test'], | ||
['pkgverse', './packages'], | ||
['externals', './external-scripts'], | ||
['types', './types'], | ||
['package', './package.json'] | ||
], | ||
extensions: ['.js', '.jsx', '.ts', '.tsx'] | ||
}, | ||
typescript: {} | ||
}, | ||
'import/ignore': [ | ||
// ? Don't go complaining about anything that we don't own | ||
'.*/node_modules/.*', | ||
'.*/bin/.*' | ||
] | ||
}, | ||
ignorePatterns: ['coverage', 'dist', 'bin', 'build', '/next.config.js'], | ||
globals: { | ||
page: true, | ||
browser: true, | ||
context: true, | ||
jestPuppeteer: true | ||
} | ||
}; | ||
|
||
debug('exports: %O', module.exports); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Generated by FOSSA CLI (https://github.com/fossas/fossa-cli) | ||
# Visit https://fossa.com to learn more | ||
|
||
version: 2 | ||
cli: | ||
server: https://app.fossa.com | ||
fetcher: custom | ||
project: git@github.com:Xunnamius/projector.git | ||
analyze: | ||
modules: | ||
- name: projector | ||
type: npm | ||
target: . | ||
path: . | ||
- name: '@projector-js/config-babel' | ||
type: npm | ||
target: ./packages/config-conventional-changelog | ||
path: ./packages/config-conventional-changelog | ||
options: | ||
strategy: package.json | ||
- name: '@xunnamius/jest-types' | ||
type: npm | ||
target: ./packages/config-commitlint | ||
path: ./packages/config-commitlint | ||
options: | ||
strategy: package.json | ||
- name: '@xunnamius/next-types' | ||
type: npm | ||
target: ./packages/config-babel | ||
path: ./packages/config-babel | ||
options: | ||
strategy: package.json | ||
- name: '@xunnamius/types' | ||
type: npm | ||
target: ./packages/cli | ||
path: ./packages/cli | ||
options: | ||
strategy: package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# See https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/about-code-owners | ||
|
||
* @Xunnamius |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to making participation in our project and | ||
our community a harassment-free experience for everyone, regardless of age, body | ||
size, disability, ethnicity, sex characteristics, gender identity and | ||
expression, level of experience, education, socioeconomic status, nationality, | ||
personal appearance, race, religion, or sexual identity and orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment | ||
include: | ||
|
||
- Using welcoming and inclusive language | ||
- Being respectful of differing viewpoints and experiences | ||
- Gracefully accepting constructive criticism | ||
- Focusing on what is best for the community | ||
- Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
- Racism or sexism in any shape or form | ||
- The use of sexualized language or imagery and unwelcome sexual attention or | ||
advances | ||
- Trolling, insulting/derogatory comments, and personal or political attacks | ||
- Public or private harassment | ||
- Publishing others' private information, such as a physical or electronic | ||
address, without explicit permission | ||
- Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable | ||
behavior and are expected to take appropriate and fair corrective action in | ||
response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or reject | ||
comments, commits, code, wiki edits, issues, and other contributions that are | ||
not aligned to this Code of Conduct, or to ban temporarily or permanently any | ||
contributor for other behaviors that they deem inappropriate, threatening, | ||
offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces | ||
when an individual is representing the project or its community. Examples of | ||
representing a project or community include using an official project e-mail | ||
address, posting via an official social media account, or acting as an appointed | ||
representative at an online or offline event. Representation of a project may be | ||
further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at | ||
[Xunnamius@users.noreply.github.com][1]. All complaints will be reviewed and | ||
investigated and will result in a response that is deemed necessary and | ||
appropriate to the circumstances. The project team is obligated to maintain | ||
confidentiality with regard to the reporter of an incident. Further details of | ||
specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good | ||
faith may face temporary or permanent repercussions as determined by other | ||
members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], | ||
version 1.4, available at | ||
[https://www.contributor-covenant.org/version/1/4/code-of-conduct.html][2] | ||
|
||
For answers to common questions about this code of conduct, see | ||
[https://www.contributor-covenant.org/faq][3] | ||
|
||
[homepage]: https://www.contributor-covenant.org | ||
[1]: mailto:Xunnamius@users.noreply.github.com | ||
[2]: https://www.contributor-covenant.org/version/1/4/code-of-conduct.html | ||
[3]: https://www.contributor-covenant.org/faq |
Oops, something went wrong.