babel / Eslint Plugin Babel
Licence: other
An ESlint rule plugin companion to babel-eslint
Stars: ✭ 391
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to Eslint Plugin Babel
Eslint Config Auto
Automatically configure ESLint based on project dependencies
Stars: ✭ 302 (-22.76%)
Mutual labels: eslint, eslint-plugin, babel
Sowing Machine
🌱A React UI toolchain & JSX alternative
Stars: ✭ 64 (-83.63%)
Mutual labels: eslint, eslint-plugin, babel
React Bolt
⚡ The most simple & robust boilerplate for your React projects.
Stars: ✭ 298 (-23.79%)
Mutual labels: eslint, babel
Webpack React Boilerplate
Minimal React 16 and Webpack 4 boilerplate with babel 7, using the new webpack-dev-server, react-hot-loader, CSS-Modules
Stars: ✭ 358 (-8.44%)
Mutual labels: eslint, babel
Eslint Plugin Testing Library
ESLint plugin to follow best practices and anticipate common mistakes when writing tests with Testing Library
Stars: ✭ 384 (-1.79%)
Mutual labels: eslint, eslint-plugin
Apollo Upload Examples
A full stack demo of file uploads via GraphQL mutations using Apollo Server and apollo-upload-client.
Stars: ✭ 358 (-8.44%)
Mutual labels: eslint, babel
Eslint Plugin Functional
ESLint rules to disable mutation and promote fp in JavaScript and TypeScript.
Stars: ✭ 282 (-27.88%)
Mutual labels: eslint, eslint-plugin
Web Configs
Common configurations for building web apps at Shopify
Stars: ✭ 302 (-22.76%)
Mutual labels: eslint, babel
Next Shopify Storefront
🛍 A real-world Shopping Cart built with TypeScript, NextJS, React, Redux, Apollo Client, Shopify Storefront GraphQL API, ... and Material UI.
Stars: ✭ 317 (-18.93%)
Mutual labels: eslint, babel
Electron React Boilerplate
A Foundation for Scalable Cross-Platform Apps
Stars: ✭ 18,727 (+4689.51%)
Mutual labels: eslint, babel
Eslint Plugin Vue
Official ESLint plugin for Vue.js
Stars: ✭ 3,592 (+818.67%)
Mutual labels: eslint, eslint-plugin
Babel Eslint
🗼 A wrapper for Babel's parser used for ESLint (renamed to @babel/eslint-parser)
Stars: ✭ 2,966 (+658.57%)
Mutual labels: eslint, babel
Eslint Plugin Proper Arrows
ESLint rules to ensure proper arrow function definitions
Stars: ✭ 271 (-30.69%)
Mutual labels: eslint, eslint-plugin
React Redux Sass Starter
Everything you need to get started with a basic React application
Stars: ✭ 293 (-25.06%)
Mutual labels: eslint, babel
React Native Navigation Redux Starter Kit
React Native Navigation(v2) Starter Kit with Redux, Saga, ESLint, Babel, Jest and Facebook SDK 😎
Stars: ✭ 271 (-30.69%)
Mutual labels: eslint, babel
Threejs Webpack Es6 Boilerplate
A basic boilerplate for a Three.js project compiled with Webpack and transpiled via Babel to enable using ES6 syntax.
Stars: ✭ 267 (-31.71%)
Mutual labels: eslint, babel
Eslint Plugin Typescript
TypeScript plugin for ESLint
Stars: ✭ 342 (-12.53%)
Mutual labels: eslint, eslint-plugin
eslint-config-satya164
An ESLint config with automatic overrides for common environments such as TypeScript, Jest etc.
Stars: ✭ 45 (-88.49%)
Mutual labels: babel, eslint
react-enterprise-starter-kit
Highly Scalable Awesome React Starter Kit for an enterprise application with a very easy maintainable codebase. 🔥
Stars: ✭ 55 (-85.93%)
Mutual labels: babel, eslint
Eslint Plugin Import
ESLint plugin with rules that help validate proper imports.
Stars: ✭ 3,722 (+851.92%)
Mutual labels: eslint-plugin, eslint
eslint-plugin-babel
@babel/eslint-plugin
and has moved into the Babel monorepo.
NOTE: eslint-plugin-babel is now An eslint
plugin companion to babel-eslint
. babel-eslint
does a great job at adapting eslint
for use with Babel, but it can't change the built in rules to support experimental features.
eslint-plugin-babel
re-implements problematic rules so they do not give false positives or negatives.
Requires Node 4 or greater
Install
npm install eslint-plugin-babel --save-dev
Load the plugin in your .eslintrc
file:
{
"plugins": [
"babel"
]
}
Finally enable all the rules you would like to use (remember to disable the original ones as well!).
{
"rules": {
"babel/new-cap": 1,
"babel/camelcase": 1,
"babel/no-invalid-this": 1,
"babel/object-curly-spacing": 1,
"babel/quotes": 1,
"babel/semi": 1,
"babel/no-unused-expressions": 1,
"babel/valid-typeof": 1
}
}
Rules
Each rule corresponds to a core eslint
rule, and has the same options.
🛠: means it's autofixable with --fix
.
-
babel/new-cap
: Ignores capitalized decorators (@Decorator
) -
babel/camelcase
: doesn't complain about optional chaining (var foo = bar?.a_b;
) -
babel/no-invalid-this
: doesn't fail when inside class properties (class A { a = this.b; }
) -
babel/object-curly-spacing
: doesn't complain aboutexport x from "mod";
orexport * as x from "mod";
(🛠) -
babel/quotes
: doesn't complain about JSX fragment shorthand syntax (<>foo</>;
) -
babel/semi
: doesn't fail when usingfor await (let something of {})
. Includes class properties (🛠) -
babel/no-unused-expressions
: doesn't fail when usingdo
expressions or optional chaining (a?.b()
). -
babel/valid-typeof
: doesn't complain when used with BigInt (typeof BigInt(9007199254740991) === 'bigint'
).
Deprecated
Rule | Notes |
---|---|
babel/generator-star-spacing |
Use generator-star-spacing since [email protected] |
babel/object-shorthand |
Use object-shorthand since [email protected] |
babel/arrow-parens |
Use arrow-parens since [email protected] |
babel/func-params-comma-dangle |
Use comma-dangle since [email protected] |
babel/array-bracket-spacing |
Use array-bracket-spacing since [email protected] |
babel/flow-object-type |
Use flowtype/object-type-delimiter since [email protected] |
babel/no-await-in-loop |
Use no-await-in-loop since [email protected] |
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].