All Projects → satya164 → eslint-config-satya164

satya164 / eslint-config-satya164

Licence: other
An ESLint config with automatic overrides for common environments such as TypeScript, Jest etc.

Programming Languages

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

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

eslint-config
My shared ESLint & Prettier configuration for projects
Stars: ✭ 12 (-73.33%)
Mutual labels:  eslint, eslint-config
eslint-config-adjunct
A reasonable collection of plugins to use alongside your main esLint configuration
Stars: ✭ 39 (-13.33%)
Mutual labels:  eslint, eslint-config
eslint-define-config
Provide a defineConfig function for .eslintrc.js files
Stars: ✭ 61 (+35.56%)
Mutual labels:  eslint, eslint-config
Asts Workshop
Improved productivity 💯 with the practical 🤓 use of the power 💪 of Abstract Syntax Trees 🌳 to lint ⚠️ and transform 🔀 your code
Stars: ✭ 253 (+462.22%)
Mutual labels:  babel, eslint
eslint-config-get-off-my-lawn
A highly opinionated, sharable config of ESLint rules to produce beautiful, readable JavaScript.
Stars: ✭ 44 (-2.22%)
Mutual labels:  eslint, eslint-config
Express Mongoose Es6 Rest Api
💥 A boilerplate application for building RESTful APIs Microservice in Node.js using express and mongoose in ES6 with code coverage and JsonWebToken Authentication
Stars: ✭ 2,811 (+6146.67%)
Mutual labels:  babel, eslint
webpack-gulp-wordpress-starter-theme
A WordPress theme with Webpack & Gulp
Stars: ✭ 110 (+144.44%)
Mutual labels:  babel, eslint
Yarsk
Don't use this, use Create React App
Stars: ✭ 199 (+342.22%)
Mutual labels:  babel, eslint
Webpack-Starter-Kit
Webpack 4 stater kit with SCSS, PostCSS, Babel & ESLint
Stars: ✭ 41 (-8.89%)
Mutual labels:  babel, eslint
gulp-webpack-boilerplate
A good foundation for your next frontend project.
Stars: ✭ 56 (+24.44%)
Mutual labels:  babel, eslint
starbase
⭐ Production-ready website boilerplate made with webpack 5, modern JS (via Babel 7) & Sass
Stars: ✭ 70 (+55.56%)
Mutual labels:  babel, eslint
eslint-plugin
Enforcing best practices for Effector
Stars: ✭ 69 (+53.33%)
Mutual labels:  eslint, eslint-config
React Starter Kit
React, Redux, Webpack, Material UI, Boostrap 4, Code Splitting, HMR
Stars: ✭ 229 (+408.89%)
Mutual labels:  babel, eslint
eslint-config-hardcore
The most strict (yet practical) ESLint config. 34 plugins. 1047 rules.
Stars: ✭ 168 (+273.33%)
Mutual labels:  eslint, eslint-config
Front End Guide
📚 Study guide and introduction to the modern front end stack.
Stars: ✭ 14,073 (+31173.33%)
Mutual labels:  babel, eslint
frontplate-cli
フロントエンドビルドCLI
Stars: ✭ 25 (-44.44%)
Mutual labels:  babel, eslint
React Redux Webpack Starter
Learning react
Stars: ✭ 189 (+320%)
Mutual labels:  babel, eslint
Sharec
📦 Store your configs in one place and share between projects without any pain
Stars: ✭ 198 (+340%)
Mutual labels:  babel, eslint
2life-server
💌 双生:遇见另一半的美好:)(服务端)
Stars: ✭ 66 (+46.67%)
Mutual labels:  babel, eslint
eslint-config
ClearTax's ESLint Config
Stars: ✭ 27 (-40%)
Mutual labels:  eslint, eslint-config

eslint-config-satya164

This is my personal ESLint config. I try to avoid rules which are purely stylistic and based on personal opinions. I'm tryin to keep it non-intrusive and aimed towards catching actual errors.

Features

The config includes these plugins by default:

The config uses the overrides feature of ESLint to automatically adjust the config based on the filename. For example, typescript support is enabled for .ts and .tsx files, the jest environment is set for test files and more.

Prettier is used for formatting.

Usage

First, install the required packages:

yarn add --dev prettier eslint eslint-config-satya164

If you're using TypeScript, also install the TypeScript compiler:

yarn add --dev typescript

Now extend the config in .eslintrc.json:

{
  "extends": "satya164"
}

To lint your files, you can add the following script to your package.json:

"scripts": {
  "lint": "eslint \"**/*.{js,ts,tsx}\""
}

To show lint errors in your editor, you'll need to configure your editor. To configure VSCode, add the following in settings.json:

"eslint.validate": [
  {
    "language": "javascript",
    "autoFix": true
  },
  {
    "language": "javascriptreact",
    "autoFix": true
  },
  {
    "language": "typescript",
    "autoFix": true
  },
  {
    "language": "typescriptreact",
    "autoFix": true
  }
],

On Mac OS, you can open settings.json file from Code > Preferences > Settings or via the keyboard shortcut ⌘,.

This config sets autoFix to true to automatically fix lint errors on save. You can set it to false if you don't want this behaviour.

Happy linting 🎉

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