diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md new file mode 100644 index 00000000..1941e39f --- /dev/null +++ b/.github/CODE_OF_CONDUCT.md @@ -0,0 +1,82 @@ +# Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to make 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, socio-economic 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: + +- 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 within all project spaces, and it also applies when +an individual is representing the project or its community in public spaces. +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. + +This Code of Conduct also applies outside the project spaces when there is a +reasonable belief that an individual's behavior may have a negative impact on +the project or its community. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team at . 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 + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see +https://www.contributor-covenant.org/faq diff --git a/apps/docs/components/examples/dev-install.js b/apps/docs/components/examples/dev-install.js index 3c0ecc65..1146fd2b 100644 --- a/apps/docs/components/examples/dev-install.js +++ b/apps/docs/components/examples/dev-install.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ + import React from 'react'; import CodeBlock from '@theme/CodeBlock'; import {versionTag} from '../VersionTag'; diff --git a/apps/nextjs-example/app/Card.tsx b/apps/nextjs-example/app/Card.tsx index db8e5d80..44e6078f 100644 --- a/apps/nextjs-example/app/Card.tsx +++ b/apps/nextjs-example/app/Card.tsx @@ -1,3 +1,11 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + import stylex from '@stylexjs/stylex'; import { globalTokens as $, spacing, text } from './globalTokens.stylex'; import '@stylexjs/open-props/lib/colors.stylex'; diff --git a/apps/nextjs-example/app/globalTokens.stylex.ts b/apps/nextjs-example/app/globalTokens.stylex.ts index f3539dc2..082c8fb7 100644 --- a/apps/nextjs-example/app/globalTokens.stylex.ts +++ b/apps/nextjs-example/app/globalTokens.stylex.ts @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import stylex from '@stylexjs/stylex'; /** diff --git a/apps/nextjs-example/app/globals.css b/apps/nextjs-example/app/globals.css index d94d4168..e825f4a6 100644 --- a/apps/nextjs-example/app/globals.css +++ b/apps/nextjs-example/app/globals.css @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + * { box-sizing: border-box; padding: 0; diff --git a/apps/nextjs-example/app/layout.tsx b/apps/nextjs-example/app/layout.tsx index cc9156aa..effee8ea 100644 --- a/apps/nextjs-example/app/layout.tsx +++ b/apps/nextjs-example/app/layout.tsx @@ -1,3 +1,11 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + import './globals.css'; import { globalTokens as $ } from './globalTokens.stylex'; import * as stylex from '@stylexjs/stylex'; diff --git a/apps/nextjs-example/app/page.tsx b/apps/nextjs-example/app/page.tsx index ab59202a..6ca055c4 100644 --- a/apps/nextjs-example/app/page.tsx +++ b/apps/nextjs-example/app/page.tsx @@ -1,3 +1,11 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + import stylex from '@stylexjs/stylex'; import Card from './Card'; import { globalTokens as $, spacing, text } from './globalTokens.stylex'; diff --git a/apps/rollup-example/index.js b/apps/rollup-example/index.js index b08f737d..74bc7348 100644 --- a/apps/rollup-example/index.js +++ b/apps/rollup-example/index.js @@ -1,4 +1,9 @@ -// index.js +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ 'use strict'; diff --git a/apps/rollup-example/lotsOfStyles.js b/apps/rollup-example/lotsOfStyles.js index 23c5ffd0..5f7d69fc 100644 --- a/apps/rollup-example/lotsOfStyles.js +++ b/apps/rollup-example/lotsOfStyles.js @@ -1,4 +1,9 @@ -// lotsOfStyles.js +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ 'use strict'; diff --git a/apps/rollup-example/rollup.config.mjs b/apps/rollup-example/rollup.config.mjs index 25593cdf..86811c24 100644 --- a/apps/rollup-example/rollup.config.mjs +++ b/apps/rollup-example/rollup.config.mjs @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import stylexPlugin from '@stylexjs/rollup-plugin'; const config = { diff --git a/apps/webpack-example/js/index.js b/apps/webpack-example/js/index.js index 67b33533..c392652f 100644 --- a/apps/webpack-example/js/index.js +++ b/apps/webpack-example/js/index.js @@ -1,4 +1,9 @@ -// index.js +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ 'use strict'; diff --git a/apps/webpack-example/js/npmStyles.js b/apps/webpack-example/js/npmStyles.js index 55c246e4..485d44bf 100644 --- a/apps/webpack-example/js/npmStyles.js +++ b/apps/webpack-example/js/npmStyles.js @@ -1,4 +1,9 @@ -// npmStyles.js +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ 'use strict'; diff --git a/apps/webpack-example/js/otherStyles.js b/apps/webpack-example/js/otherStyles.js index 3ac4cce3..5b55e91e 100644 --- a/apps/webpack-example/js/otherStyles.js +++ b/apps/webpack-example/js/otherStyles.js @@ -1,4 +1,9 @@ -// otherStyles.js +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ 'use strict';