All Projects → callstack → eslint-config-callstack

callstack / eslint-config-callstack

Licence: MIT license
ESLint preset extending Flow, Prettier and Jest

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to eslint-config-callstack

eslint-config-ns
ESLint config ready to be used in multiple projects. Based on Airbnb's code style with prettier, jest and react support.
Stars: ✭ 27 (-40%)
Mutual labels:  prettier
promotion-web
基于React: v18.x.x/Webpack: v5.x.x/React Router v6.x.x/ Antd: v5..x.x/Fetch Api/ Typescript: v4.x.x 等最新版本进行构建...
Stars: ✭ 374 (+731.11%)
Mutual labels:  prettier
flowbite
The most popular and open-source library of Tailwind CSS components
Stars: ✭ 3,727 (+8182.22%)
Mutual labels:  prettier
ultimate-hot-boilerplate
🚀 node-react universal app boilerplate with everything on hot reload, SSR, GraphQL, Flow included
Stars: ✭ 35 (-22.22%)
Mutual labels:  prettier
api-with-express
🌈 API with Express
Stars: ✭ 25 (-44.44%)
Mutual labels:  prettier
the-art-of-unit-testing
Repository that contains code in Node.js from the book The Art of Unit Testing, Second Edition by Roy Osherove
Stars: ✭ 22 (-51.11%)
Mutual labels:  prettier
spec
🐣 easy to use eslint/stylelint/tslint/prettier/...
Stars: ✭ 60 (+33.33%)
Mutual labels:  prettier
website-template
静的Webサイト制作を少しモダンにするためのテンプレート
Stars: ✭ 62 (+37.78%)
Mutual labels:  prettier
create-next-stack
Create Next Stack is a website and CLI tool used to easily set up the boilerplate of new Next.js apps.
Stars: ✭ 149 (+231.11%)
Mutual labels:  prettier
healthier
🧘‍♀️ Healthier is an opinionated style agnostic code linter – a friendly companion to Prettier
Stars: ✭ 78 (+73.33%)
Mutual labels:  prettier
webpack-boilerplate
Webpack 4 boilerplate (babel, eslint, prettier, jest, sass, postcss, hmr, browsersync)
Stars: ✭ 33 (-26.67%)
Mutual labels:  prettier
invig
🌿 Invig automatically converts ES5 & CoffeeScript codebases to ES6 with Aligned JavaScript Standard Style
Stars: ✭ 62 (+37.78%)
Mutual labels:  prettier
prettier-config-solidity
Prettier config optimized to reduce AST churn & conform to solidity spec
Stars: ✭ 28 (-37.78%)
Mutual labels:  prettier
microbundle-ts-pkg
A TypeScript npm package skeleton/starter project with microbundle, node:test and prettier
Stars: ✭ 20 (-55.56%)
Mutual labels:  prettier
nextjs-with-chakra-ui-boilerplate
Next.js with Chakra UI boilerplate. PWA ready with storybook and tests configured.
Stars: ✭ 48 (+6.67%)
Mutual labels:  prettier
handwritten-digit-recognition-tensorflowjs
In-Browser Digit recognition with Tensorflow.js and React using Mnist dataset
Stars: ✭ 40 (-11.11%)
Mutual labels:  prettier
prettier.el
Prettier code formatting for Emacs.
Stars: ✭ 129 (+186.67%)
Mutual labels:  prettier
microservice nodejs template
🦄 Microservice Starter Kit by Nodejs + Typescript + Docker + Lerna + Eslint + Prettier
Stars: ✭ 49 (+8.89%)
Mutual labels:  prettier
react-you-do-you
How I use React + Redux + Material-UI + TypeScript – you do you 💖
Stars: ✭ 103 (+128.89%)
Mutual labels:  prettier
vital
Starter template for Vite with React (TypeScript). Supports Tailwind with CSS-Modules. Jest and @react/testing-library configured and ready to go. Also ESLint, Prettier, Husky, Commit-lint and Atomic Design for components.
Stars: ✭ 151 (+235.56%)
Mutual labels:  prettier

@callstack/eslint-config

Callstack ESLint config for React Native, React and Node.js projects, utilizing Flow, TypeScript, Prettier and Jest with sensible defaults.

Installation

With Yarn:

yarn add --dev eslint @callstack/eslint-config

Or with npm:

npm install --save-dev eslint @callstack/eslint-config

Usage

You can choose one of the following environments to work with by extending your ESLint config (.eslintrc, or eslintConfig field in package.json) with @callstack config tailored to your project.

React Native config

Usage:

{
  "extends": "@callstack"
}

Plugins used:

Additionally, it sets "react-native/react-native" environment and native platform extensions to resolve.

React config

Usage:

{
  "extends": "@callstack/eslint-config/react"
}

Plugins used:

Node config

Usage:

{
  "extends": "@callstack/eslint-config/node"
}

Plugins used:

Additionally, it sets es6 and node environments.

Example of extending the configuration

{
  "extends": "@callstack",
  "rules": {
    "global-require": 0,
    "prefer-destructuring": 0
  }
}

TypeScript

TypeScript is supported out-of-the-box, including importing JS files from TS files and vice-versa. All you need to do is to make sure you have typescript module installed.

Then when running ESLint add --ext '.js,.ts' (you might need also .jsx, .tsx) option, for example:

yarn eslint --ext '.js,.ts' ./src

VSCode

If you're VSCode user, you may find adding this config to your .vscode/settings.json helpful:

{
  "eslint.validate": [
    {
      "language": "javascript",
      "autoFix": true
    },
    {
      "language": "javascriptreact",
      "autoFix": true
    },
    {
      "language": "typescript",
      "autoFix": true
    },
    {
      "language": "typescriptreact",
      "autoFix": true
    }
  ]
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].