eslint-config-prettier VS eslint-plugin-jsx-a11y

Compare eslint-config-prettier vs eslint-plugin-jsx-a11y and see what are their differences.

eslint-config-prettier

Turns off all rules that are unnecessary or might conflict with Prettier. (by prettier)

eslint-plugin-jsx-a11y

Static AST checker for a11y rules on JSX elements. (by jsx-eslint)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
eslint-config-prettier eslint-plugin-jsx-a11y
17 17
5,225 3,326
0.6% 0.6%
6.6 7.1
14 days ago 16 days ago
JavaScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

eslint-config-prettier

Posts with mentions or reviews of eslint-config-prettier. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-01.
  • Adding code formatting, linting, pre-commit hooks and beyond...
    5 projects | dev.to | 1 Nov 2023
    As I was reading the Prettier documentation I stumbled upon this blob which talks about how to make ESLint and Prettier play nicely with each other. It instructed to install eslint-config-prettier dependency in my project using the command npm install --save-dev eslint-config-prettier. Then I added prettier as part of the .eslintrc.cjs' extends array making prettier dependency part of the linting process. Lastly, I ran its cmd line helper npx eslint-config-prettier path/to/main.js to check if there were any ESLint rules which are unnecessary or would conflict with Prettier. The test results came out fine with no unnecessary or conflicting rules. The use case on how it works and why to use it is mentioned here.
  • It Takes 6 Days to Change 1 Line of Code
    2 projects | news.ycombinator.com | 16 Jul 2023
    I wouldn’t say they’re arguing something completely different. A large subset of linting rules are by nature purely formatting rules. You can enforce line length with either prettier or a linter and both can auto fix the issue.

    Because of this things like [`eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier) exist to ensure conflicting eslint formatting rules are disabled if they can be handled by prettier.

  • [AskJS] Does anyone enjoy using Eslint?
    1 project | /r/javascript | 23 May 2023
    If you use Prettier you should disable any and all eslint formatting rules. It's just not worth the hassle trying to make them "compatible". Fortunately there's an easy way to do that with a plugin.
  • ESLint and Prettier conflict
    1 project | /r/learnjavascript | 14 May 2023
  • Looking to improve... Review my code??
    3 projects | /r/reactjs | 14 May 2023
    Also add this eslint plugin, which makes eslint play nice with prettier: https://github.com/prettier/eslint-config-prettier
  • Any way to disable prettier diagnostics in eslint-lsp
    1 project | /r/neovim | 19 Apr 2023
    If you don’t care about the diagnostics, you should be using this instead. Prettier even says so.
  • React Library Builder using Rollup.js and Storybook
    5 projects | dev.to | 17 Jan 2023
    Linting is an important step in maintaining code quality, The React Library Builder uses ESLint and eslint-config-prettier for linting. You can modify linting rules by overriding them in the .eslintrc file.
  • Setting up ESLint & Prettier in ViteJS
    10 projects | dev.to | 11 Aug 2022
    eslint-config-prettier: An ESLint configuration which disables the formatting rules in ESLint that Prettier is going to be responsible for handling, hence avoiding any clashes.
  • Do you use eslint and/or prettier?
    1 project | /r/webdev | 3 May 2022
    You can use both Eslint and Prettier if you care greatly about both linting and code formatting. Prettier had a plugin to disable Eslint's formatting rules.
  • Modern, faster alternatives to ESLint
    10 projects | dev.to | 3 May 2022
    The eslint-config-prettier package disables all ESLint rules that might conflict with Prettier. This lets us use ESLint configurations without letting it get in the way when using Prettier. We can then use the eslint-plugin-prettier package to integrate Prettier rules into ESLint rules. Finally, we must set the Prettier rules in the ESLint configuration file. Add the following configuration to the .eslintrc file in the root directory of the application:

eslint-plugin-jsx-a11y

Posts with mentions or reviews of eslint-plugin-jsx-a11y. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-21.
  • Tailwind Handbook - Part II
    1 project | dev.to | 27 Apr 2024
  • Speeding up the JavaScript ecosystem – Polyfills gone rogue
    11 projects | news.ycombinator.com | 21 Sep 2023
    I try to focus on the issues rather than individuals, but the root of the problems in the listed eslint plugin libraries points to ljharb.

    If you do some simple digging into these libraries, you will find that these types of commits are quite common within them.

    https://github.com/jsx-eslint/eslint-plugin-react/commit/e1d...

    https://github.com/jsx-eslint/jsx-ast-utils/commit/bad51d062...

    https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/...

    He would rather see the download count of these polyfill libraries https://github.com/ljharb/ljharb#projects-i-maintain increase, compared to assessing the health of the JavaScript ecosystem.

  • The Best ESLint Rules for React Projects
    8 projects | dev.to | 15 Sep 2023
    jsx-a11y is all about ensuring your DOM elements are accessible. This plugin will prompt you to include the correct ARIA attributes such as labels and roles, in addition to things like alt text.
  • Create React UI Lib 1.1: Ladle and ESLint
    7 projects | dev.to | 8 Jul 2023
    You can also add ESLint now (props to @femincan for the suggestion). It comes with recommended settings for these plugins: typescript, prettier, react, react-hooks, jsx-a11y.
  • Light UI component library but as good as MUI (or atleast close to it)?
    3 projects | /r/reactjs | 3 Jul 2023
    WAI-ARIA is important if you are writing custom components and do not follow the general rules for HTML tags. For example, if you are using a `div` as a button, you would need to add tags for accessibility. Yes, there are some other instances, like adding alt text to images or adding a title to an iframe, but these can all be handled with warnings in the editor using the jsx-a11y eslint plugin. Some other nuance will be up to the developer to make sure they follow the proper accessibility structure, but most use cases are outlined in the Daisy UI tailwind examples, they do a great job of using HTML properly and give fully accessible examples for their components. Take a look at the accordion example, you can tab into the accordion and use the arrow keys to navigate.
  • Introducing react.dev: the new React docs site!
    5 projects | /r/reactjs | 16 Mar 2023
    jsx-a11 (ESLint plugin) checks a couple other things.
  • Newbie question about ARIA/ADA Compliance
    2 projects | /r/webdev | 10 Oct 2022
    When using react, I've been using the recommended rules from eslint-plugin-jsx-a11y. Am I naive for relying a lot on that to get a11y right? Of course I try to write semantic html too and do research for each topic, but it's a bit overwhelming and I feel like the eslint rules help me a lot.
  • Can someone help me locate documentation where this eslint rule is talked about?
    1 project | /r/learnprogramming | 30 Sep 2022
    I found the documentation but no solution here: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/label-has-associated-control.md
  • Setting up ESLint & Prettier in ViteJS
    10 projects | dev.to | 11 Aug 2022
    eslint-plugin-jsx-a11y: Checks for accessiblity issues.
  • Introduction to Web Accessibility (A11Y)
    2 projects | dev.to | 18 Mar 2022
    For example, Deque's open-source Axe project can help identify issues such as common HTML semantic errors, contrast problems, and more. There are even libraries that help integrate Axe into your project's linters, such as one for React called eslint-plugin-jsx-a11y.

What are some alternatives?

When comparing eslint-config-prettier and eslint-plugin-jsx-a11y you can also consider the following projects:

eslint-config-google - ESLint shareable config for the Google JavaScript style guide

chakra-ui - ⚡️ Simple, Modular & Accessible UI Components for your React Applications

eslint-plugin-prettier - ESLint plugin for Prettier formatting

jest-axe - Custom Jest matcher for aXe for testing accessibility ♿️🃏

react-webpack-5-tailwind-2 - React 17 Boilerplate with Webpack 6, Tailwind 2, using babel, SASS/PostCSS, HMR, dotenv and an optimized production build

svelte-navigator - Simple, accessible routing for Svelte

webpack-react-typescript-starter - React App with Typescript, using webpack5 and styled-components

vite - Next generation frontend tooling. It's fast!

prettier-eslint-cli - CLI for prettier-eslint

agnostic-axe - Framework agnostic accessibility reporter, powered by axe-core

vitte - A non SSR Starter Template using Svelte, Vite, Tailwind JIT. And Routify.

react-a11y-announcer - React Announcer for Screen Reader Accessibility