Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sdu-react-scripts

Package Overview
Dependencies
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sdu-react-scripts

Generic scripts and config files for your next React project

  • 3.1.0-develop.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by133.33%
Maintainers
4
Weekly downloads
 
Created
Source

sdu-react-scripts

Generic scripts and config files for your next React project

Contents

  • Eslint Config

Installation

npm install -D sdu-react-scripts

Features

Extending ESLint

If you want to use this ESLint configuration in a React project, you can install it with the following steps.

First, install this package, ESLint and the necessary plugins. Just copy this line and paste in your terminal.

npm install --save-dev eslint@7.x @typescript-eslint/eslint-plugin@4.x @typescript-eslint/parser@4.x eslint-config-standard@16.x eslint-import-resolver-typescript@2.x eslint-plugin-import@2.x eslint-plugin-jsx-a11y@6.x eslint-plugin-node@11.x eslint-plugin-promise@4.x eslint-plugin-react@7.x eslint-plugin-react-hooks@4.x eslint-plugin-simple-import-sort@7.x eslint-plugin-standard@4.x typescript@4.x

Then create a file named .eslintrc.json with following contents in the root folder of your project:

module.exports = {
  extends: ['./node_modules/sdu-react-scripts/config/eslint'], 
}

Babel plugin: transform-titan-pure-annotations

With this babel plugin you can transform @elseu/sdu-titan to make it export only pure functions. Since sdu-titan exports a hoc names withTitan, many frameworks don't recognize this as a pure function. You can use this babel plugin with rollup like this:

// .babelrc
{
  "plugins": [
    "./node_modules/sdu-react-scripts/plugins/babel/transform-titan-pure-annotations"
  ]
}
// rollup.config.js
import { getBabelOutputPlugin } from '@rollup/plugin-babel';

getBabelOutputPlugin({
  configFile: path.resolve(__dirname, '.babelrc'),
}),

Ejecting from ESLint

You can add or overwrite the ESLint rules if you want to. But if you totally wish to eject from sdu-react-scripts run npx sdu-react-scripts eslint-eject

FAQs

Package last updated on 18 Mar 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc