All Projects → moxystudio → eslint-config

moxystudio / eslint-config

Licence: MIT license
MOXY eslint configuration to be used across several JavaScript projects

Programming Languages

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

Projects that are alternatives of or similar to eslint-config

eslint-config-naver
Naver JavaScript Coding Conventions rules for eslint
Stars: ✭ 184 (+1214.29%)
Mutual labels:  coding-standards, eslint-config
cscs
A curated list of Coding Style Conventions and Standards.
Stars: ✭ 1,486 (+10514.29%)
Mutual labels:  coding-standards, coding-style
Coding-Standards
Coding Guidelines for C#
Stars: ✭ 125 (+792.86%)
Mutual labels:  coding-standards, coding-style
XS-Labs-Style-Guide
XS-Labs Coding Style Guide for C, C++, Objective-C and x86 Assembly
Stars: ✭ 20 (+42.86%)
Mutual labels:  coding-standards, coding-style
eslint-config-javascript
Write bulletproof JavaScript like a pro! 😎
Stars: ✭ 34 (+142.86%)
Mutual labels:  coding-standards, coding-style
Codor
Custom PHPCS sniffs to find Code Smells
Stars: ✭ 40 (+185.71%)
Mutual labels:  coding-standards, coding-style
codingstyle
Java coding style and template project used at Munich university of applied sciences
Stars: ✭ 19 (+35.71%)
Mutual labels:  coding-standards, coding-style
verilog-coding-style
Verilog (SystemVerilog) coding style
Stars: ✭ 36 (+157.14%)
Mutual labels:  coding-standards, coding-style
OpenStaticAnalyzer
OpenStaticAnalyzer is a source code analyzer tool, which can perform deep static analysis of the source code of complex systems.
Stars: ✭ 19 (+35.71%)
Mutual labels:  coding-standards, coding-style
phpcs-psr4-sniff
[READ-ONLY] PHP_CodeSniffer sniff that checks class name matches PSR-4 project structure.
Stars: ✭ 23 (+64.29%)
Mutual labels:  coding-standards, coding-style
coding-standard
Official Coding Standards for CodeIgniter
Stars: ✭ 24 (+71.43%)
Mutual labels:  coding-standards
eslint-plugin-stedi-aws-rules
Best practices around using AWS SDK & Lambda runtime in JavaScript / TypeScript projects by Stedi.
Stars: ✭ 30 (+114.29%)
Mutual labels:  eslint-config
development-best-practices
程序员开发规范,其中包括Java、JavaScript、CSS、Oracle、MySQL的开发编码规范和规约
Stars: ✭ 14 (+0%)
Mutual labels:  coding-standards
eslint-config-leapfrog
Set of ESLint rules for JavaScript projects at Leapfrog.
Stars: ✭ 15 (+7.14%)
Mutual labels:  eslint-config
eslint-config-mingelz
A shared ESLint configuration with Chinese comments. 一份带有完整中文注释的 ESLint 规则。
Stars: ✭ 15 (+7.14%)
Mutual labels:  eslint-config
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 (+92.86%)
Mutual labels:  eslint-config
symfony-custom-coding-standard
Customized Symfony coding standard
Stars: ✭ 13 (-7.14%)
Mutual labels:  coding-standards
coding-standard
🐽 Tuned & very strict coding standards for PHP projects
Stars: ✭ 13 (-7.14%)
Mutual labels:  coding-standards
sprint tutorial
Tutorial and mock repository to teach people to contribute to open source
Stars: ✭ 18 (+28.57%)
Mutual labels:  coding-standards
wpcs-docs
WordPress Coding Standards Docs
Stars: ✭ 59 (+321.43%)
Mutual labels:  coding-standards

eslint-config

Build Status Coverage Status

MOXY's set of ESLint configuration packages to be used across several JavaScript projects.

How it works

This repository contains two sets of ESLint configurations to be used in JavaScript projects:

  • the base configuration, which defines the common ESLint rules, the ECMAScript version and the module system.
  • the enhancers, which contain specific settings for different frameworks, like React or Vue.

By using one or more of these packages, you can enforce the desired code styles for each type of project.

For more information on how to use each package and their specific configurations, please read the package's README by following the links below. You may also check the examples listed in Typical Configs to see how the packages may be combined for the most common scenarios.

Base config

The base config is published as @moxy/eslint-config-base, check out its README to know how to use it.

Enhancer configs

There are several enhancer packages, which are intended to be used in conjunction with the base configuration:

Typical configs

Standard JavaScript project
{
    "root": true,
    "env": {
        "browser": true
    },
    "extends": [
        "@moxy/eslint-config-base/esm",
        "@moxy/eslint-config-babel",
        "@moxy/eslint-config-jest"
    ]
}

ℹ️ If your project is isomorphic / universal, you may want to enable the node environment as well.

React web project
{
    "root": true,
    "env": {
        "browser": true
    },
    "extends": [
        "@moxy/eslint-config-base/esm",
        "@moxy/eslint-config-babel",
        "@moxy/eslint-config-react",
        "@moxy/eslint-config-react-web-a11y",
        "@moxy/eslint-config-jest"
    ]
}

ℹ️ If your project is Isomorphic / Universal, you may want to enable the node environment as well.

Node.js project
{
    "root": true,
    "env": {
        "node": true
    },
    "extends": [
        "@moxy/eslint-config-base/cjs/es2019",
        "@moxy/eslint-config-jest"
    ]
}

⚠️ In the above example, we choose the es2019 version instead of the latest ECMAScript version because there's no Babel compilation and we are restricted to what the Node.js runtime supports. Please check node.green and select the most appropriate ECMAScript version based on the Node.js version you are targeting.

React Native apps
{
    "root": true,
    "extends": [
        "@moxy/eslint-config-base/esm",
        "@moxy/eslint-config-babel",
        "@moxy/eslint-config-react",
        "@moxy/eslint-config-react-native",
        "@moxy/eslint-config-react-native-a11y",
        "@moxy/eslint-config-jest"
    ]
}

Older versions

If you want to read the changelog of an older version, please check here.

License

MIT License

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].