Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
antistatique-frontend
Advanced tools
Antistatique opinionated frontend development configuration (linters, tests,...)
Antistatique truth source and opinionated configuration.
If you're just to lazy to read the README 😏👉 npx antistatique-frontend@latest
Others resources
Currently provides:
Requirement:
First, create your project using the dedicated scaffolding tool for your project's technologies. Here are some usefull commands that you can use :
$ npx -p antistatique-frontend@latest next # Cool, right?
$ npx create-react-app my-app --template typescript
$ npx create-next-app --example with-typescript-types my-app
Then, to get this amazing environment, simply execute the following command and answer the questions:
$ npx antistatique-frontend@latest
.
├── .eslintrc 👉 ESLint configuration
├── .github
│ └── workflows 👉 Github Actions Workflow for Tests
├── .husky 👉 Husky (pre-commit) configuration
├── .lintstagedrc 👉 lint-staged (for pre-commits) configuration
├── .storybook
│ ├── main.js 👉 Storybook configuration
│ └── preview.js 👉 Where you load you global CSS
├── .stylelintrc 👉 Stylelint configuration
├── .vscode
│ ├── extensions.json 👉 Recommended plugins to install
│ └── settings.json 👉 Encourage you to format-on-save ESLint
├── cypress
│ ├── fixtures
│ ├── integration 👉 The place to put your E2E website tests
│ ├── plugins
│ ├── screenshots
│ ├── support
│ ├── tsconfig.json
│ └── videos
├── cypress.json 👉 Cypress configuration
├── jest.config.js 👉 Jest configuration
├── package.json 👉 Your package.json, with new devDepencies and new scripts
└── tsconfig.json 👉 TypeScript configuration
Now that you've get all the good stuff that you need, you have some new NPM scripts at your disposal:
yarn lint:js
: Lint your TypeScript filesyarn lint:css
: Lint your CSS/PostCSS filesyarn fix:js
: Fix JS/TS lint errorsyarn fix:css
: Fix CSS/PostCSS lint errorsyarn cypress:open
: Open Cypress (for TDD)yarn cypress:run
: Run Cypress tests (website + storybook)yarn jest:start
: Start Jest serveryarn jest:run
: Run Jest testsyarn storybook:start
: Start Storybook serveryarn storybook:build
: Build static StorybookThe process above has been to ensure consistent quality of our code, regardless of the project. If you want to make your life easier and not always have surprises when you try to commit, make sure that your IDE is properly configured to handle those linters to highlight (and even fix) warnings and errors when editing a file. It's just a friendly advice.
Some ressources:
And just in case, ask your colleagues, they surely have great tips for you 😉
[1.3.1] - 2022-09-05
FAQs
Antistatique opinionated frontend development configuration (linters, tests,...)
The npm package antistatique-frontend receives a total of 14 weekly downloads. As such, antistatique-frontend popularity was classified as not popular.
We found that antistatique-frontend demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.