Skip to content

Commit

Permalink
chore: updating prettier to use prettier-config-moon (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
bclark-p44 authored Sep 28, 2022
1 parent ad55dc6 commit bdd6444
Show file tree
Hide file tree
Showing 320 changed files with 20,490 additions and 20,359 deletions.
7 changes: 6 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.0.0/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "project44/manifest" }],
"changelog": [
"@changesets/changelog-github",
{
"repo": "project44/manifest"
}
],
"commit": false,
"fixed": [],
"linked": [],
Expand Down
2 changes: 2 additions & 0 deletions .changeset/olive-fishes-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
12 changes: 10 additions & 2 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{
"buildCommand": "build",
"node": "16",
"packages": ["/packages/design-tokens", "/packages/react", "/packages/system", "/packages/theme"],
"sandboxes": ["/examples/create-react-app", "/examples/create-react-app-typescript"]
"packages": [
"/packages/design-tokens",
"/packages/react",
"/packages/system",
"/packages/theme"
],
"sandboxes": [
"/examples/create-react-app",
"/examples/create-react-app-typescript"
]
}
234 changes: 117 additions & 117 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,119 +1,119 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: 'tsconfig.options.json',
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
],
plugins: ['import', '@typescript-eslint'],
env: {
es6: true,
browser: true,
node: true,
},
globals: {
__DEV__: 'readonly',
__PROD__: 'readonly',
},
rules: {
'no-param-reassign': 'off',
'no-use-before-define': 0,
'import/first': 'error',
'import/prefer-default-export': 'off',
'import/newline-after-import': 'error',
'import/no-amd': 'error',
'import/no-extraneous-dependencies': 'off',
'import/order': [
'error',
{
groups: [],
'newlines-between': 'never',
},
],
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/prefer-as-const': 'error',
'@typescript-eslint/prefer-nullish-coalescing': 'error',
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/unbound-method': 'off',
},
overrides: [
{
files: ['*.tsx'],
extends: [
'plugin:react-hooks/recommended',
'plugin:react/recommended',
'plugin:jsx-a11y/recommended',
],
plugins: ['jsx-a11y', 'react', 'react-hooks', 'react-perf'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'react/display-name': 'off',
'react/forbid-prop-types': 'off',
'react/jsx-props-no-spreading': 'off',
'react/prop-types': 'off',
'react/require-default-props': 'off',
'react/sort-prop-types': 'off',
'react-hooks/exhaustive-deps': 'error',
'react-hooks/rules-of-hooks': 'error',
},
},
{
files: ['**/*.{spec,test}.*'],
env: {
jest: true,
'jest/globals': true,
},
extends: ['plugin:jest/recommended'],
plugins: ['jest'],
rules: {
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'jest/no-alias-methods': 'error',
'jest/no-disabled-tests': 'warn',
'jest/no-done-callback': 'error',
'jest/no-export': 'error',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/no-if': 'error',
'jest/no-jasmine-globals': 'error',
'jest/no-jest-import': 'error',
'jest/no-standalone-expect': 'error',
'jest/no-test-prefixes': 'error',
'jest/no-test-return-statement': 'error',
'jest/prefer-hooks-on-top': 'error',
'jest/prefer-spy-on': 'error',
'jest/prefer-to-be': 'warn',
'jest/prefer-to-contain': 'warn',
'jest/prefer-to-have-length': 'warn',
'jest/prefer-todo': 'error',
'jest/valid-expect': 'error',
'jest/valid-title': 'error',
},
},
],
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: 'tsconfig.options.json',
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
],
plugins: ['import', '@typescript-eslint'],
env: {
es6: true,
browser: true,
node: true,
},
globals: {
__DEV__: 'readonly',
__PROD__: 'readonly',
},
rules: {
'no-param-reassign': 'off',
'no-use-before-define': 0,
'import/first': 'error',
'import/prefer-default-export': 'off',
'import/newline-after-import': 'error',
'import/no-amd': 'error',
'import/no-extraneous-dependencies': 'off',
'import/order': [
'error',
{
groups: [],
'newlines-between': 'never',
},
],
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/prefer-as-const': 'error',
'@typescript-eslint/prefer-nullish-coalescing': 'error',
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/unbound-method': 'off',
},
overrides: [
{
files: ['*.tsx'],
extends: [
'plugin:react-hooks/recommended',
'plugin:react/recommended',
'plugin:jsx-a11y/recommended',
],
plugins: ['jsx-a11y', 'react', 'react-hooks', 'react-perf'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'react/display-name': 'off',
'react/forbid-prop-types': 'off',
'react/jsx-props-no-spreading': 'off',
'react/prop-types': 'off',
'react/require-default-props': 'off',
'react/sort-prop-types': 'off',
'react-hooks/exhaustive-deps': 'error',
'react-hooks/rules-of-hooks': 'error',
},
},
{
files: ['**/*.{spec,test}.*'],
env: {
jest: true,
'jest/globals': true,
},
extends: ['plugin:jest/recommended'],
plugins: ['jest'],
rules: {
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'jest/no-alias-methods': 'error',
'jest/no-disabled-tests': 'warn',
'jest/no-done-callback': 'error',
'jest/no-export': 'error',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/no-if': 'error',
'jest/no-jasmine-globals': 'error',
'jest/no-jest-import': 'error',
'jest/no-standalone-expect': 'error',
'jest/no-test-prefixes': 'error',
'jest/no-test-return-statement': 'error',
'jest/prefer-hooks-on-top': 'error',
'jest/prefer-spy-on': 'error',
'jest/prefer-to-be': 'warn',
'jest/prefer-to-contain': 'warn',
'jest/prefer-to-have-length': 'warn',
'jest/prefer-todo': 'error',
'jest/valid-expect': 'error',
'jest/valid-title': 'error',
},
},
],
};
24 changes: 16 additions & 8 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ Manifest Design System packages follow [semantic versioning](https://semver.org/

## Pull Requests

If this is your first pull request into an open source project, please take a moment and watch this free video series:
If this is your first pull request into an open source project, please take a moment and watch this
free video series:

[How to Contribute to an Open Source Project on GitHub](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github)

Before working on an issue or feature please review any tickets, pr's, and discussions to be certain that no one is actively working on the same issue or feature.
Before working on an issue or feature please review any tickets, pr's, and discussions to be certain
that no one is actively working on the same issue or feature.

### Making a Pull Request

Expand All @@ -44,7 +46,8 @@ easily searchable.

## Development

Before you begin development, please make sure that you have [Node](https://nodejs.org/en/) and [Yarn](https://yarnpkg.com/) setup on your machine.
Before you begin development, please make sure that you have [Node](https://nodejs.org/en/) and
[Yarn](https://yarnpkg.com/) setup on your machine.

1. Install dependencies

Expand All @@ -66,26 +69,31 @@ yarn dev

## Testing

We use [jest](https://jestjs.io/) as our test runner along with [react testing library](https://testing-library.com/docs/react-testing-library/intro/) for our react code base.
Please be sure to add or update unit tests for any code changes. Run `yarn test` to run jest.
We use [jest](https://jestjs.io/) as our test runner along with
[react testing library](https://testing-library.com/docs/react-testing-library/intro/) for our react
code base. Please be sure to add or update unit tests for any code changes. Run `yarn test` to run
jest.

It is also recommended to verify you changes by running the local development server.

## Code Formatting

For code formatting we use [Prettier](https://prettier.io/), run `yarn format` to automatically format your code.
For code formatting we use [Prettier](https://prettier.io/), run `yarn format` to automatically
format your code.

## Linting

Code linting is controlled by [ESLint](https://eslint.org/) and can be run with `yarn lint`.

## Type Checking

Our codebase is written in [Typescript](https://www.typescriptlang.org/) and can be check by running `yarn type-check`.
Our codebase is written in [Typescript](https://www.typescriptlang.org/) and can be check by running
`yarn type-check`.

## Releasing

Releases are controlled automatically via [changesets](https://github.com/changesets/changesets) in our github workflows.
Releases are controlled automatically via [changesets](https://github.com/changesets/changesets) in
our github workflows.

## License

Expand Down
11 changes: 7 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ body:
id: reproduction
attributes:
label: Link to reproduction
description: Provide us a reproduction of the issue using [codeSandbox](https://codesandbox.io/).
description:
Provide us a reproduction of the issue using [codeSandbox](https://codesandbox.io/).
validations:
required: true
- type: textarea
Expand All @@ -36,8 +37,10 @@ body:
label: Code of Conduct
description: Please confirm the following
options:
- label: I agree to the [Code of
- label:
I agree to the [Code of
Conduct](https://github.com/project44/manifest/blob/main/.github/CODE_OF_CONDUCT.md).
required: true
- label: I have reviewed the [current issues](https://github.com/project44/manifest/issues)
for duplicate tickets.
- label:
I have reviewed the [current issues](https://github.com/project44/manifest/issues) for
duplicate tickets.
8 changes: 5 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ body:
label: Code of Conduct
description: Please confirm the following
options:
- label: I agree to the [Code of
- label:
I agree to the [Code of
Conduct](https://github.com/project44/manifest/blob/main/.github/CODE_OF_CONDUCT.md).
required: true
- label: I have reviewed the [current issues](https://github.com/project44/manifest/issues)
for duplicate tickets.
- label:
I have reviewed the [current issues](https://github.com/project44/manifest/issues) for
duplicate tickets.
Loading

1 comment on commit bdd6444

@vercel
Copy link

@vercel vercel bot commented on bdd6444 Sep 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.