🌜
🌞
eslint-config-xo

eslint-config-xo

v0.41.0

ESLint shareable config for XO

npm install eslint-config-xo

README

eslint-config-xo

ESLint shareable config for XO

This is for advanced users. You probably want to use XO directly.

See eslint-plugin-unicorn for some additional useful rules.

Use the XO issue tracker instead of this one.

Install

$ npm install --save-dev eslint-config-xo

Usage

Add some ESLint config to your package.json:

{
    "name": "my-awesome-project",
    "eslintConfig": {
        "extends": "xo"
    }
}

Or to .eslintrc:

{
    "extends": "xo"
}

This package also exposes xo/browser if you're in the browser:

{
    "extends": "xo/browser"
}

Use the XO CLI instead

XO is an ESLint wrapper with great defaults.

Here are some reason why you should use the XO CLI instead of this config:

tl;dr You miss out on a lot by just using this config.

Release Notes

0.41.0
By Sindre Sorhus • Published on May 17, 2022

https://github.com/xojs/eslint-config-xo/compare/v0.40.0...v0.41.0

0.40.0
By Sindre Sorhus • Published on February 9, 2022

Breaking

  • Require ESLint 8 and Node.js 12 da1fd09

Improvements

  • Remove default-param-last rule 5f341e2
  • Avoid explicit return arrows in object-shorthand rule (#76) db4809a

https://github.com/xojs/eslint-config-xo/compare/v0.39.0...v0.40.0

0.39.0
By Sindre Sorhus • Published on October 2, 2021
  • Use 'latest' for ecmaVersion 66bc17e
  • Add no-bitwise rule 9d9eae9

https://github.com/xojs/eslint-config-xo/compare/v0.38.0...v0.39.0

0.38.0
By Sindre Sorhus • Published on August 8, 2021
  • Add option to no-unsafe-negation rule e5c4861

https://github.com/xojs/eslint-config-xo/compare/v0.37.0...v0.38.0

0.37.0
By Sindre Sorhus • Published on June 15, 2021
  • Add arrow-body-style rule ed15b23
  • Change operator-linebreak rule to enforce operators before d038b0c
  • Enable comma-dangle rule for multiline (#60) 6313099

https://github.com/xojs/eslint-config-xo/compare/v0.36.0...v0.37.0

0.36.0
By Sindre Sorhus • Published on April 14, 2021

Breaking

  • Get rid of esnext config dd613d3

Improvements

  • Add more deprecated Node.js modules to no-restricted-imports eafbd8f
  • Remove unnecessary no-restricted-syntax rule (#69) 23a5718

https://github.com/xojs/eslint-config-xo/compare/v0.35.0...v0.36.0

0.35.0
By Sindre Sorhus • Published on February 20, 2021
  • Add enforceForJSX option to no-unused-expressions 0cd5082

https://github.com/xojs/eslint-config-xo/compare/v0.34.0...v0.35.0

0.34.0
By Sindre Sorhus • Published on January 2, 2021
0.33.1
By Sindre Sorhus • Published on October 17, 2020
  • Revert "Disable tabs except for indentation" (#68) 1bb8251

https://github.com/xojs/eslint-config-xo/compare/v0.33.0...v0.33.1

0.33.0
By Sindre Sorhus • Published on October 17, 2020
  • Disable tabs except for indentation (#67) 142defc

https://github.com/xojs/eslint-config-xo/compare/v0.32.1...v0.33.0

General

License
MIT
Typescript Types
None found
Tree-shakeable
No

Popularity

GitHub Stargazers
236
Community Interest
284
Number of Forks
46

Maintenance

Commits
10/219/2204
Last Commit
Open Issues
0
Closed Issues
38
Open Pull Requests
0
Closed Pull Requests
13

Versions

Versions Released
10/219/2201
Latest Version Released
May 17, 2022
Current Tags
latest0.41.0

Dependencies

Contributors

sindresorhus
sindresorhus
Commits: 273
fregante
fregante
Commits: 3
yangmingshan
yangmingshan
Commits: 2
nikersify
nikersify
Commits: 1
chalkygames123
chalkygames123
Commits: 1
jamesplease
jamesplease
Commits: 1
jneidel
jneidel
Commits: 1
justinhelmer
justinhelmer
Commits: 1
ntwb
ntwb
Commits: 1
pvdlg
pvdlg
Commits: 1
BarryThePenguin
BarryThePenguin
Commits: 1
marionebl
marionebl
Commits: 1
gurpreetatwal
gurpreetatwal
Commits: 1
papb
papb
Commits: 1
joakimbeng
joakimbeng
Commits: 1